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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtools/] [RiosState.hpp] - Blame information for rev 19

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RiosState.hpp 486 2013-02-10 22:34:43Z mueller $
2 10 wfjm
//
3
// Copyright 2006-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-01-30   357   1.0    Adopted from CTBioState
17
// 2006-04-16     -   -      Last change on CTBioState
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23 19 wfjm
  \version $Id: RiosState.hpp 486 2013-02-10 22:34:43Z mueller $
24 10 wfjm
  \brief   Declaration of class RiosState.
25
*/
26
 
27
#ifndef included_Retro_RiosState
28
#define included_Retro_RiosState 1
29
 
30
#include <ios>
31
 
32
namespace Retro {
33
 
34
  class RiosState {
35
    public:
36
                    RiosState(std::ios& stream);
37
                    RiosState(std::ios& stream, const char* form, int prec=-1);
38
                    ~RiosState();
39
 
40
      void          SetFormat(const char* form, int prec=-1);
41
      char          Ctype();
42
 
43
    protected:
44
      std::ios&     fStream;
45
      std::ios_base::fmtflags  fOldFlags;
46
      int           fOldPrecision;
47
      char          fOldFill;
48
      char          fCtype;
49
 
50
    // RiosState can't be default constructed, copied or assigned
51
    private:
52
                    RiosState();
53
                    RiosState(const RiosState& rhs);
54
      RiosState&    operator=(const RiosState& rhs);
55
 
56
  };
57
 
58
} // end namespace Retro
59
 
60
#include "RiosState.ipp"
61
 
62
#endif

powered by: WebSVN 2.1.0

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