w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlogMsg.ipp
Go to the documentation of this file.
1// $Id: RlogMsg.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2013-02-22 490 1.0 Initial version
8// ---------------------------------------------------------------------------
9
14// all method definitions in namespace Retro
15namespace Retro {
16
17//------------------------------------------+-----------------------------------
19
20inline void RlogMsg::SetTag(char tag)
21{
22 fTag = tag;
23 return;
24}
25
26//------------------------------------------+-----------------------------------
28
29inline void RlogMsg::SetString(const std::string& str)
30{
31 fStream.str(str);
32 return;
33}
34
35//------------------------------------------+-----------------------------------
37
38inline char RlogMsg::Tag() const
39{
40 return fTag;
41}
42
43//------------------------------------------+-----------------------------------
45
46inline std::string RlogMsg::String() const
47{
48 return fStream.str();
49}
50
51//------------------------------------------+-----------------------------------
53
54inline std::ostream& RlogMsg::operator()()
55{
56 return fStream;
57}
58
59//------------------------------------------+-----------------------------------
65template <class T>
66inline std::ostream& operator<<(RlogMsg& lmsg, const T& val)
67{
68 lmsg() << val;
69 return lmsg();
70}
71
72} // end namespace Retro
FIXME_docs.
Definition: RlogMsg.hpp:24
std::stringstream fStream
string stream
Definition: RlogMsg.hpp:42
void SetTag(char tag)
FIXME_docs.
Definition: RlogMsg.ipp:20
char Tag() const
FIXME_docs.
Definition: RlogMsg.ipp:38
void SetString(const std::string &str)
FIXME_docs.
Definition: RlogMsg.ipp:29
std::ostream & operator()()
FIXME_docs.
Definition: RlogMsg.ipp:54
std::ostream & operator<<(RlogMsg &lmsg, const T &val)
FIXME_docs.
Definition: RlogMsg.ipp:66
std::string String() const
FIXME_docs.
Definition: RlogMsg.ipp:46
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47