w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlogMsg.hpp
Go to the documentation of this file.
1// $Id: RlogMsg.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-16 1084 1.0.1 use =delete for noncopyable instead of boost
8// 2013-02-22 490 1.0 Initial version
9// ---------------------------------------------------------------------------
10
15#ifndef included_Retro_RlogMsg
16#define included_Retro_RlogMsg 1
17
18#include <sstream>
19
20namespace Retro {
21
22 class RlogFile; // forw decl to avoid circular incl
23
24 class RlogMsg {
25 public:
26 explicit RlogMsg(char tag = 0);
27 RlogMsg(RlogFile& lfile, char tag = 0);
28 ~RlogMsg();
29
30 RlogMsg(const RlogMsg&) = delete; // noncopyable
31 RlogMsg& operator=(const RlogMsg&) = delete; // noncopyable
32
33 void SetTag(char tag);
34 void SetString(const std::string& str);
35
36 char Tag() const;
37 std::string String() const;
38
39 std::ostream& operator()();
40
41 protected:
42 std::stringstream fStream;
44 char fTag;
45 };
46
47 template <class T>
48 std::ostream& operator<<(RlogMsg& lmsg, const T& val);
49
50} // end namespace Retro
51
52#include "RlogMsg.ipp"
53
54#endif
FIXME_docs.
Definition: RlogFile.hpp:34
FIXME_docs.
Definition: RlogMsg.hpp:24
RlogFile * fLfile
Definition: RlogMsg.hpp:43
~RlogMsg()
Destructor.
Definition: RlogMsg.cpp:49
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
RlogMsg(const RlogMsg &)=delete
RlogMsg & operator=(const RlogMsg &)=delete
std::string String() const
FIXME_docs.
Definition: RlogMsg.ipp:46
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47
std::ostream & operator<<(std::ostream &os, const RerrMsg &obj)