w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RosPrintfBase.cpp
Go to the documentation of this file.
1// $Id: RosPrintfBase.cpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-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-02-25 364 1.0 Initial version
9// ---------------------------------------------------------------------------
10
15#include <sstream>
16
17#include "RosPrintfBase.hpp"
18
19using namespace std;
20
21// all method definitions in namespace Retro
22namespace Retro {
23
24//------------------------------------------+-----------------------------------
30{}
31
32//------------------------------------------+-----------------------------------
38std::string& operator<<(std::string& os, const RosPrintfBase& obj)
39{
40 std::ostringstream sos;
41 obj.ToStream(sos);
42 os += sos.str();
43 return os;
44}
45
46} // end namespace Retro
Base class for print objects. **.
virtual void ToStream(std::ostream &os) const =0
Concrete implementation of the ostream insertion.
virtual ~RosPrintfBase()
Destructor.
std::string & operator<<(std::string &os, const RosPrintfBase &obj)
string insertion
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47