w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RosPrintfBase.ipp
Go to the documentation of this file.
1// $Id: RosPrintfBase.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2006-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-22 1091 1.0.1 virtual dtor now outlined to streamline vtable
8// 2011-01-30 357 1.0 Adopted from RosPrintfBase
9// 2006-04-16 - - Last change on RosPrintfBase
10// ---------------------------------------------------------------------------
11
16// all method definitions in namespace Retro
17namespace Retro {
18
23//------------------------------------------+-----------------------------------
29//------------------------------------------+-----------------------------------
38inline RosPrintfBase::RosPrintfBase(const char* form, int width, int prec)
39 : fForm(form),
40 fWidth(width),
41 fPrec(prec)
42{}
43
44//------------------------------------------+-----------------------------------
50inline std::ostream& operator<<(std::ostream& os, const RosPrintfBase& obj)
51{
52 obj.ToStream(os);
53 return os;
54}
55
56} // end namespace Retro
Base class for print objects. **.
virtual void ToStream(std::ostream &os) const =0
Concrete implementation of the ostream insertion.
std::ostream & operator<<(std::ostream &os, const RosPrintfBase &obj)
ostream insertion
RosPrintfBase(const char *form, int width, int prec)
Constructor.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47