w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RosPrintf.ipp
Go to the documentation of this file.
1// $Id: RosPrintf.ipp 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 CTBprintf
9// 2000-12-18 - - Last change on CTBprintf
10// ---------------------------------------------------------------------------
11
16// all method definitions in namespace Retro
17namespace Retro {
18
19//------------------------------------------+-----------------------------------
23//------------------------------------------+-----------------------------------
25
37inline RosPrintfS<bool>
38 RosPrintf(bool value, const char* form, int width, int prec)
39{
40 return RosPrintfS<bool>(value, form, width, prec);
41}
42
43//------------------------------------------+-----------------------------------
45
57inline RosPrintfS<char>
58 RosPrintf(char value, const char* form, int width, int prec)
59{
60 return RosPrintfS<char>(value, form, width, prec);
61}
62
63//------------------------------------------+-----------------------------------
65
77inline RosPrintfS<int>
78 RosPrintf(signed char value, const char* form, int width, int prec)
79{
80 return RosPrintfS<int>(value, form, width, prec);
81}
82
83//------------------------------------------+-----------------------------------
85
98 RosPrintf(unsigned char value, const char* form, int width, int prec)
99{
100 return RosPrintfS<unsigned int>(value, form, width, prec);
101}
102
103//------------------------------------------+-----------------------------------
105
117inline RosPrintfS<int>
118 RosPrintf(short value, const char* form, int width, int prec)
119{
120 return RosPrintfS<int>(value, form, width, prec);
121}
122
123//------------------------------------------+-----------------------------------
125
138 RosPrintf(unsigned short value, const char* form, int width, int prec)
139{
140 return RosPrintfS<unsigned int>(value, form, width, prec);
141}
142
143//------------------------------------------+-----------------------------------
145
157inline RosPrintfS<int>
158 RosPrintf(int value, const char* form, int width, int prec)
159{
160 return RosPrintfS<int>(value, form, width, prec);
161}
162
163//------------------------------------------+-----------------------------------
165
178 RosPrintf(unsigned int value, const char* form, int width, int prec)
179{
180 return RosPrintfS<unsigned int>(value, form, width, prec);
181}
182
183//------------------------------------------+-----------------------------------
185
197inline RosPrintfS<long>
198 RosPrintf(long value, const char* form, int width, int prec)
199{
200 return RosPrintfS<long>(value, form, width, prec);
201}
202
203//------------------------------------------+-----------------------------------
205
218 RosPrintf(unsigned long value, const char* form, int width, int prec)
219{
220 return RosPrintfS<unsigned long>(value, form, width, prec);
221}
222
223//------------------------------------------+-----------------------------------
225
237inline RosPrintfS<double>
238 RosPrintf(double value, const char* form, int width, int prec)
239{
240 return RosPrintfS<double>(value, form, width, prec);
241}
242
243//------------------------------------------+-----------------------------------
245
258 RosPrintf(const char* value, const char* form, int width, int prec)
259{
260 return RosPrintfS<const char*>(value, form, width, prec);
261}
262
263//------------------------------------------+-----------------------------------
265
278 RosPrintf(const void* value, const char* form, int width, int prec)
279{
280 return RosPrintfS<const void*>(value, form, width, prec);
281}
282
283} // end namespace Retro
Print object for scalar values . **.
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Definition: RosPrintf.ipp:38
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47