w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RosPrintfS.hpp
Go to the documentation of this file.
1// $Id: RosPrintfS.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2000-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-17 1088 1.1 add bool specialization (use c++11 std::boolalpha)
8// 2011-01-30 357 1.0 Adopted from CTBprintfS
9// 2000-10-29 - - Last change on CTBprintfS
10// ---------------------------------------------------------------------------
11
16#ifndef included_Retro_RosPrintfS
17#define included_Retro_RosPrintfS 1
18
19#include "RosPrintfBase.hpp"
20
21namespace Retro {
22
23 template <class T>
24 class RosPrintfS : public RosPrintfBase {
25 public:
26 RosPrintfS(T value, const char* form, int width, int prec);
27
28 virtual void ToStream(std::ostream& os) const;
29
30 protected:
32 };
33
34 template <>
35 void RosPrintfS<bool>::ToStream(std::ostream& os) const;
36 template <>
37 void RosPrintfS<char>::ToStream(std::ostream& os) const;
38 template <>
39 void RosPrintfS<int>::ToStream(std::ostream& os) const;
40 template <>
41 void RosPrintfS<const char*>::ToStream(std::ostream& os) const;
42 template <>
43 void RosPrintfS<const void*>::ToStream(std::ostream& os) const;
44
45} // end namespace Retro
46
47#endif
Base class for print objects. **.
virtual void ToStream(std::ostream &os) const
Concrete implementation of the ostream insertion.
Definition: RosPrintfS.cpp:51
T fValue
value to be printed
Definition: RosPrintfS.hpp:31
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47