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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtools/] [RlogMsg.hpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RlogMsg.hpp 490 2013-02-22 18:43:26Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
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.hpp 490 2013-02-22 18:43:26Z mueller $
22
  \brief   Declaration of class RlogMsg.
23
*/
24
 
25
#ifndef included_Retro_RlogMsg
26
#define included_Retro_RlogMsg 1
27
 
28
#include <sstream>
29
 
30
#include "boost/utility.hpp"
31
 
32
namespace Retro {
33
 
34
  class RlogFile;                           // forw decl to avoid circular incl
35
 
36
  class RlogMsg : private boost::noncopyable {
37
    public:
38
      explicit      RlogMsg(char tag = 0);
39
                    RlogMsg(RlogFile& lfile, char tag = 0);
40
                   ~RlogMsg();
41
 
42
      void          SetTag(char tag);
43
      void          SetString(const std::string& str);
44
 
45
      char          Tag() const;
46
      std::string   String() const;
47
 
48
      std::ostream& operator()();
49
 
50
    protected:
51
      std::stringstream  fStream;                //!< string stream
52
      RlogFile*     fLfile;
53
      char          fTag;
54
  };
55
 
56
  template <class T>
57
  std::ostream&     operator<<(RlogMsg& lmsg, const T& val);
58
 
59
} // end namespace Retro
60
 
61
#include "RlogMsg.ipp"
62
 
63
#endif

powered by: WebSVN 2.1.0

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