OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtools/] [RosPrintf.ipp] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RosPrintf.ipp 488 2013-02-16 18:49:47Z mueller $
2 10 wfjm
//
3
// Copyright 2000-2011 by Walter F.J. Mueller 
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16
// 2011-01-30   357   1.0    Adopted from CTBprintf
17
// 2000-12-18     -   -      Last change on CTBprintf
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 19 wfjm
  \version $Id: RosPrintf.ipp 488 2013-02-16 18:49:47Z mueller $
23 10 wfjm
  \brief   Implemenation (inline) of RosPrintf.
24
*/
25
 
26 19 wfjm
// all method definitions in namespace Retro
27
namespace Retro {
28
 
29 10 wfjm
//------------------------------------------+-----------------------------------
30
/*!
31
  \defgroup RosPrintf RosPrintf -- print format object creators
32
*/
33
//------------------------------------------+-----------------------------------
34
//! Creates a print object for the formatted output of a \c char value.
35
/*!
36
  \ingroup RosPrintf
37
 
38
  For a full description of the of the \c RosPrintf system look into
39
  \ref using_rosprintf.
40
 
41
  \param value  variable or expression to be printed
42
  \param form   format descriptor string
43
  \param width  field width
44
  \param prec   precision
45
*/
46
 
47 19 wfjm
inline RosPrintfS
48
  RosPrintf(char value, const char* form, int width, int prec)
49 10 wfjm
{
50 19 wfjm
  return RosPrintfS(value, form, width, prec);
51 10 wfjm
}
52
 
53
//------------------------------------------+-----------------------------------
54
//! Creates a print object for the formatted output of a signed char value.
55
/*!
56
  \ingroup RosPrintf
57
 
58
  For a full description of the of the \c RosPrintf system look into
59
  \ref using_rosprintf.
60
 
61
  \param value  variable or expression to be printed
62
  \param form   format descriptor string
63
  \param width  field width
64
  \param prec   precision
65
*/
66
 
67 19 wfjm
inline RosPrintfS
68
  RosPrintf(signed char value, const char* form, int width, int prec)
69 10 wfjm
{
70 19 wfjm
  return RosPrintfS(value, form, width, prec);
71 10 wfjm
}
72
 
73
//------------------------------------------+-----------------------------------
74
//! Creates a print object for the formatted output of a unsigned char value.
75
/*!
76
  \ingroup RosPrintf
77
 
78
  For a full description of the of the \c RosPrintf system look into
79
  \ref using_rosprintf.
80
 
81
  \param value  variable or expression to be printed
82
  \param form   format descriptor string
83
  \param width  field width
84
  \param prec   precision
85
*/
86
 
87 19 wfjm
inline RosPrintfS
88
  RosPrintf(unsigned char value, const char* form, int width, int prec)
89 10 wfjm
{
90 19 wfjm
  return RosPrintfS(value, form, width, prec);
91 10 wfjm
}
92
 
93
//------------------------------------------+-----------------------------------
94
//! Creates a print object for the formatted output of a \c short value.
95
/*!
96
  \ingroup RosPrintf
97
 
98
  For a full description of the of the \c RosPrintf system look into
99
  \ref using_rosprintf.
100
 
101
  \param value  variable or expression to be printed
102
  \param form   format descriptor string
103
  \param width  field width
104
  \param prec   precision
105
*/
106
 
107 19 wfjm
inline RosPrintfS
108
  RosPrintf(short value, const char* form, int width, int prec)
109 10 wfjm
{
110 19 wfjm
  return RosPrintfS(value, form, width, prec);
111 10 wfjm
}
112
 
113
//------------------------------------------+-----------------------------------
114
//! Creates a print object for the formatted output of a unsigned short value.
115
/*!
116
  \ingroup RosPrintf
117
 
118
  For a full description of the of the \c RosPrintf system look into
119
  \ref using_rosprintf.
120
 
121
  \param value  variable or expression to be printed
122
  \param form   format descriptor string
123
  \param width  field width
124
  \param prec   precision
125
*/
126
 
127 19 wfjm
inline RosPrintfS
128
  RosPrintf(unsigned short value, const char* form, int width, int prec)
129 10 wfjm
{
130 19 wfjm
  return RosPrintfS(value, form, width, prec);
131 10 wfjm
}
132
 
133
//------------------------------------------+-----------------------------------
134
//! Creates a print object for the formatted output of a \c int value.
135
/*!
136
  \ingroup RosPrintf
137
 
138
  For a full description of the of the \c RosPrintf system look into
139
  \ref using_rosprintf.
140
 
141
  \param value  variable or expression to be printed
142
  \param form   format descriptor string
143
  \param width  field width
144
  \param prec   precision
145
*/
146
 
147 19 wfjm
inline RosPrintfS
148
  RosPrintf(int value, const char* form, int width, int prec)
149 10 wfjm
{
150 19 wfjm
  return RosPrintfS(value, form, width, prec);
151 10 wfjm
}
152
 
153
//------------------------------------------+-----------------------------------
154
//! Creates a print object for the formatted output of a unsigned int value.
155
/*!
156
  \ingroup RosPrintf
157
 
158
  For a full description of the of the \c RosPrintf system look into
159
  \ref using_rosprintf.
160
 
161
  \param value  variable or expression to be printed
162
  \param form   format descriptor string
163
  \param width  field width
164
  \param prec   precision
165
*/
166
 
167 19 wfjm
inline RosPrintfS
168
  RosPrintf(unsigned int value, const char* form, int width, int prec)
169 10 wfjm
{
170 19 wfjm
  return RosPrintfS(value, form, width, prec);
171 10 wfjm
}
172
 
173
//------------------------------------------+-----------------------------------
174
//! Creates a print object for the formatted output of a \c long value.
175
/*!
176
  \ingroup RosPrintf
177
 
178
  For a full description of the of the \c RosPrintf system look into
179
  \ref using_rosprintf.
180
 
181
  \param value  variable or expression to be printed
182
  \param form   format descriptor string
183
  \param width  field width
184
  \param prec   precision
185
*/
186
 
187 19 wfjm
inline RosPrintfS
188
  RosPrintf(long value, const char* form, int width, int prec)
189 10 wfjm
{
190 19 wfjm
  return RosPrintfS(value, form, width, prec);
191 10 wfjm
}
192
 
193
//------------------------------------------+-----------------------------------
194
//! Creates a print object for the formatted output of an unsigned long value.
195
/*!
196
  \ingroup RosPrintf
197
 
198
  For a full description of the of the \c RosPrintf system look into
199
  \ref using_rosprintf.
200
 
201
  \param value  variable or expression to be printed
202
  \param form   format descriptor string
203
  \param width  field width
204
  \param prec   precision
205
*/
206
 
207 19 wfjm
inline RosPrintfS
208
  RosPrintf(unsigned long value, const char* form, int width, int prec)
209 10 wfjm
{
210 19 wfjm
  return RosPrintfS(value, form, width, prec);
211 10 wfjm
}
212
 
213
//------------------------------------------+-----------------------------------
214
//! Creates a print object for the formatted output of a \c double value.
215
/*!
216
  \ingroup RosPrintf
217
 
218
  For a full description of the of the \c RosPrintf system look into
219
  \ref using_rosprintf.
220
 
221
  \param value  variable or expression to be printed
222
  \param form   format descriptor string
223
  \param width  field width
224
  \param prec   precision
225
*/
226
 
227 19 wfjm
inline RosPrintfS
228
  RosPrintf(double value, const char* form, int width, int prec)
229 10 wfjm
{
230 19 wfjm
  return RosPrintfS(value, form, width, prec);
231 10 wfjm
}
232
 
233
//------------------------------------------+-----------------------------------
234
//! Creates a print object for the formatted output of a const char* value.
235
/*!
236
  \ingroup RosPrintf
237
 
238
  For a full description of the of the \c RosPrintf system look into
239
  \ref using_rosprintf.
240
 
241
  \param value  variable or expression to be printed
242
  \param form   format descriptor string
243
  \param width  field width
244
  \param prec   precision
245
*/
246
 
247 19 wfjm
inline RosPrintfS
248
  RosPrintf(const char* value, const char* form, int width, int prec)
249 10 wfjm
{
250 19 wfjm
  return RosPrintfS(value, form, width, prec);
251 10 wfjm
}
252
 
253
//------------------------------------------+-----------------------------------
254
//! Creates a print object for the formatted output of a \c const void* value.
255
/*!
256
  \ingroup RosPrintf
257
 
258
  For a full description of the of the \c RosPrintf system look into
259
  \ref using_rosprintf.
260
 
261
  \param value  variable or expression to be printed
262
  \param form   format descriptor string
263
  \param width  field width
264
  \param prec   precision
265
*/
266
 
267 19 wfjm
inline RosPrintfS
268
  RosPrintf(const void* value, const char* form, int width, int prec)
269 10 wfjm
{
270 19 wfjm
  return RosPrintfS(value, form, width, prec);
271 10 wfjm
}
272
 
273 19 wfjm
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.