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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RerrMsg.ipp 488 2013-02-16 18:49:47Z mueller $
2 10 wfjm
//
3
// Copyright 2011- 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
// 2011-02-06   359   1.1    use references in interface
17
// 2011-01-15   356   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 19 wfjm
  \version $Id: RerrMsg.ipp 488 2013-02-16 18:49:47Z mueller $
23 10 wfjm
  \brief   Implemenation (inline) of RerrMsg.
24
*/
25
 
26 19 wfjm
// all method definitions in namespace Retro
27 10 wfjm
namespace Retro {
28
 
29
//------------------------------------------+-----------------------------------
30
//! FIXME_docs
31
 
32
inline void RerrMsg::SetMeth(const std::string& meth)
33
{
34
  fMeth = meth;
35
  return;
36
}
37
 
38
//------------------------------------------+-----------------------------------
39
//! FIXME_docs
40
 
41
inline void RerrMsg::SetText(const std::string& text)
42
{
43
  fText = text;
44
  return;
45
}
46
 
47
//------------------------------------------+-----------------------------------
48
//! FIXME_docs
49
 
50
inline const std::string& RerrMsg::Meth() const
51
{
52
  return fMeth;
53
}
54
 
55
//------------------------------------------+-----------------------------------
56
//! FIXME_docs
57
 
58
inline const std::string& RerrMsg::Text() const
59
{
60
  return fText;
61
}
62
 
63
//------------------------------------------+-----------------------------------
64
//! FIXME_docs
65
 
66
inline RerrMsg::operator std::string() const
67
{
68
  return Message();
69
}
70
 
71
//------------------------------------------+-----------------------------------
72
/*!
73
  \relates RerrMsg
74
  \brief ostream insertion operator.
75
*/
76
 
77
inline std::ostream& operator<<(std::ostream& os, const RerrMsg& obj)
78
{
79
  os << obj.Message();
80
  return os;
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.