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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RosFill.hpp 486 2013-02-10 22:34:43Z mueller $
2 10 wfjm
//
3
// Copyright 2000-2011 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
// 2011-02-25   364   1.1    Support << also to string
17
// 2011-01-30   359   1.0    Adopted from CTBosFill
18
// 2000-02-06     -   -      Last change on CTBosFill
19
// ---------------------------------------------------------------------------
20
 
21
/*!
22
  \file
23 19 wfjm
  \version $Id: RosFill.hpp 486 2013-02-10 22:34:43Z mueller $
24 10 wfjm
  \brief   Declaration of class RosFill .
25
*/
26
 
27
#ifndef included_Retro_RosFill
28
#define included_Retro_RosFill 1
29
 
30
#include <ostream>
31
#include <string>
32
 
33
namespace Retro {
34
 
35
  class RosFill {
36
    public:
37
                    RosFill(int count=0, char fill=' ');
38
 
39
      int           Count() const;
40
      char          Fill() const;
41
 
42
  private:
43
      int           fCount;                 //!< blank count
44
      char          fFill;                  //!< fill character
45
 
46
  };
47
 
48
  std::ostream&     operator<<(std::ostream& os, const RosFill& obj);
49
  std::string&      operator<<(std::string&  os, const RosFill& obj);
50
 
51
} // end namespace Retro
52
 
53
#include "RosFill.ipp"
54
 
55
#endif

powered by: WebSVN 2.1.0

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