OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librtools/] [RlogMsg.ipp] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RlogMsg.ipp 490 2013-02-22 18:43:26Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller 
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16
// 2013-02-22   490   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: RlogMsg.ipp 490 2013-02-22 18:43:26Z mueller $
22
  \brief   Implemenation (inline) of RlogMsg.
23
*/
24
 
25
// all method definitions in namespace Retro
26
namespace Retro {
27
 
28
//------------------------------------------+-----------------------------------
29
//! FIXME_docs
30
 
31
inline void RlogMsg::SetTag(char tag)
32
{
33
  fTag = tag;
34
  return;
35
}
36
 
37
//------------------------------------------+-----------------------------------
38
//! FIXME_docs
39
 
40
inline void RlogMsg::SetString(const std::string& str)
41
{
42
  fStream.str(str);
43
  return;
44
}
45
 
46
//------------------------------------------+-----------------------------------
47
//! FIXME_docs
48
 
49
inline char RlogMsg::Tag() const
50
{
51
  return fTag;
52
}
53
 
54
//------------------------------------------+-----------------------------------
55
//! FIXME_docs
56
 
57
inline std::string RlogMsg::String() const
58
{
59
  return fStream.str();
60
}
61
 
62
//------------------------------------------+-----------------------------------
63
//! FIXME_docs
64
 
65
inline std::ostream& RlogMsg::operator()()
66
{
67
  return fStream;
68
}
69
 
70
//------------------------------------------+-----------------------------------
71
/*!
72
  \relates RlogMsg
73
  \brief FIXME_docs
74
*/
75
 
76
template 
77
inline std::ostream& operator<<(RlogMsg& lmsg, const T& val)
78
{
79
  lmsg() << val;
80
  return lmsg();
81
}
82
 
83
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.