-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathRerrMsg.ipp
More file actions
72 lines (57 loc) · 1.63 KB
/
RerrMsg.ipp
File metadata and controls
72 lines (57 loc) · 1.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// $Id: RerrMsg.ipp 1186 2019-07-12 17:49:59Z mueller $
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// Revision History:
// Date Rev Version Comment
// 2011-02-06 359 1.1 use references in interface
// 2011-01-15 356 1.0 Initial version
// ---------------------------------------------------------------------------
/*!
\brief Implemenation (inline) of RerrMsg.
*/
// all method definitions in namespace Retro
namespace Retro {
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline void RerrMsg::SetMeth(const std::string& meth)
{
fMeth = meth;
return;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline void RerrMsg::SetText(const std::string& text)
{
fText = text;
return;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const std::string& RerrMsg::Meth() const
{
return fMeth;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const std::string& RerrMsg::Text() const
{
return fText;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline RerrMsg::operator std::string() const
{
return Message();
}
//------------------------------------------+-----------------------------------
/*!
\relates RerrMsg
\brief ostream insertion operator.
*/
inline std::ostream& operator<<(std::ostream& os, const RerrMsg& obj)
{
os << obj.Message();
return os;
}
} // end namespace Retro