-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathRlogMsg.cpp
More file actions
54 lines (41 loc) · 1.11 KB
/
RlogMsg.cpp
File metadata and controls
54 lines (41 loc) · 1.11 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
47
48
49
50
51
52
53
54
// $Id: RlogMsg.cpp 1186 2019-07-12 17:49:59Z mueller $
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// Revision History:
// Date Rev Version Comment
// 2013-02-22 490 1.0 Initial version
// ---------------------------------------------------------------------------
/*!
\brief Implemenation of RlogMsg.
*/
#include "RlogFile.hpp"
#include "RlogMsg.hpp"
using namespace std;
/*!
\class Retro::RlogMsg
\brief FIXME_docs
*/
// all method definitions in namespace Retro
namespace Retro {
//------------------------------------------+-----------------------------------
//! Default constructor
RlogMsg::RlogMsg(char tag)
: fStream(),
fLfile(0),
fTag(tag)
{}
//------------------------------------------+-----------------------------------
//! FIXME_docs
RlogMsg::RlogMsg(RlogFile& lfile, char tag)
: fStream(),
fLfile(&lfile),
fTag(tag)
{}
//------------------------------------------+-----------------------------------
//! Destructor
RlogMsg::~RlogMsg()
{
if (fLfile) *fLfile << *this;
}
} // end namespace Retro