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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RosPrintfBase.ipp 488 2013-02-16 18:49:47Z mueller $
2 10 wfjm
//
3
// Copyright 2006-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-01-30   357   1.0    Adopted from RosPrintfBase
17
// 2006-04-16     -   -      Last change on RosPrintfBase
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 19 wfjm
  \version $Id: RosPrintfBase.ipp 488 2013-02-16 18:49:47Z mueller $
23 10 wfjm
  \brief   Implemenation (inline) of RosPrintfBase
24
*/
25
 
26 19 wfjm
// all method definitions in namespace Retro
27 10 wfjm
namespace Retro {
28
 
29
/*!
30
  \class RosPrintfBase
31
  \brief Base class for print objects. **
32
*/
33
//------------------------------------------+-----------------------------------
34
/*!
35
  \fn Retro::RosPrintfBase::ToStream(ostream& os) const
36
  \brief Concrete implementation of the ostream insertion.
37
*/
38
 
39
//------------------------------------------+-----------------------------------
40
/*!
41
  \brief Constructor.
42
 
43
  \param form   format descriptor string
44
  \param width  field width
45
  \param prec   precision
46
*/
47
 
48
inline RosPrintfBase::RosPrintfBase(const char* form, int width, int prec)
49
  : fForm(form),
50
    fWidth(width),
51
    fPrec(prec)
52
{}
53
 
54
//------------------------------------------+-----------------------------------
55
/*!
56
  \brief Destructor.
57
*/
58
 
59
inline RosPrintfBase::~RosPrintfBase()
60
{}
61
 
62
//------------------------------------------+-----------------------------------
63
/*!
64
  \relates RosPrintfBase
65
  \brief ostream insertion
66
*/
67
 
68
inline std::ostream& operator<<(std::ostream& os, const RosPrintfBase& obj)
69
{
70
  obj.ToStream(os);
71
  return os;
72
}
73
 
74
} // end namespace Retro

powered by: WebSVN 2.1.0

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