-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathRosPrintfBase.cpp
More file actions
46 lines (36 loc) · 1.06 KB
/
RosPrintfBase.cpp
File metadata and controls
46 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// $Id: RosPrintfBase.cpp 1186 2019-07-12 17:49:59Z mueller $
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// Revision History:
// Date Rev Version Comment
// 2018-12-22 1091 1.0.1 virtual dtor now outlined to streamline vtable
// 2011-02-25 364 1.0 Initial version
// ---------------------------------------------------------------------------
/*!
\brief Implemenation of RosPrintfBase .
*/
#include <sstream>
#include "RosPrintfBase.hpp"
using namespace std;
// all method definitions in namespace Retro
namespace Retro {
//------------------------------------------+-----------------------------------
/*!
\brief Destructor.
*/
RosPrintfBase::~RosPrintfBase()
{}
//------------------------------------------+-----------------------------------
/*!
\relates RosPrintfBase
\brief string insertion
*/
std::string& operator<<(std::string& os, const RosPrintfBase& obj)
{
std::ostringstream sos;
obj.ToStream(sos);
os += sos.str();
return os;
}
} // end namespace Retro