w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RiosState.hpp
Go to the documentation of this file.
1// $Id: RiosState.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2006-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2011-01-30 357 1.0 Adopted from CTBioState
8// 2006-04-16 - - Last change on CTBioState
9// ---------------------------------------------------------------------------
10
11
16#ifndef included_Retro_RiosState
17#define included_Retro_RiosState 1
18
19#include <ios>
20
21namespace Retro {
22
23 class RiosState {
24 public:
25 RiosState(std::ios& stream);
26 RiosState(std::ios& stream, const char* form, int prec=-1);
27 ~RiosState();
28
29 void SetFormat(const char* form, int prec=-1);
30 char Ctype();
31
32 protected:
33 std::ios& fStream;
34 std::ios_base::fmtflags fOldFlags;
37 char fCtype;
38
39 // RiosState can't be default constructed, copied or assigned
40 private:
42 RiosState(const RiosState& rhs);
44
45 };
46
47} // end namespace Retro
48
49#include "RiosState.ipp"
50
51#endif
Stack object for ostream state. **.
Definition: RiosState.hpp:23
RiosState & operator=(const RiosState &rhs)
std::ios & fStream
Definition: RiosState.hpp:33
char Ctype()
Get conversion type.
Definition: RiosState.ipp:21
~RiosState()
Destructor.
Definition: RiosState.cpp:51
void SetFormat(const char *form, int prec=-1)
Setup format.
Definition: RiosState.cpp:61
RiosState(const RiosState &rhs)
std::ios_base::fmtflags fOldFlags
Definition: RiosState.hpp:34
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47