IOstream Class Referenceabstract
Inheritance diagram for IOstream:

Public Types

enum  streamAccess : char { CLOSED = 0, OPENED }
 

Public Member Functions

 IOstream ()
 
 IOstream (const IOstream &)=default
 
virtual ~IOstream ()=default
 
virtual const wordname () const
 
virtual wordname ()
 
virtual bool check (const char *operation) const
 
bool fatalCheck (const char *operation) const
 
bool opened () const
 
bool closed () const
 
bool good () const
 
bool eof () const
 
bool fail () const
 
bool bad () const
 
 operator bool () const
 
bool operator! () const
 
int32 lineNumber () const
 
int32lineNumber ()
 
int32 lineNumber (const int32 num)
 
virtual ios_base::fmtflags flags () const =0
 
void setEof ()
 
void setFail ()
 
void setBad ()
 
virtual ios_base::fmtflags flags (const ios_base::fmtflags f)=0
 
ios_base::fmtflags setf (const ios_base::fmtflags f)
 
ios_base::fmtflags setf (const ios_base::fmtflags f, const ios_base::fmtflags mask)
 
void unsetf (const ios_base::fmtflags f)
 

Static Public Member Functions

static unsigned int defaultPrecision ()
 
static unsigned int defaultPrecision (unsigned int prec)
 

Static Public Attributes

static unsigned int precision_ = 6
 

Protected Member Functions

void setOpened ()
 
void setClosed ()
 
void setState (ios_base::iostate state)
 
void setGood ()
 

Protected Attributes

streamAccess openClosed_
 
ios_base::iostate ioState_
 
int32 lineNumber_
 

Static Protected Attributes

static word staticName_
 

Detailed Description

Definition at line 45 of file IOstream.hpp.

Member Enumeration Documentation

◆ streamAccess

enum streamAccess : char
Enumerator
CLOSED 

stream is not open

OPENED 

stream is open

Definition at line 51 of file IOstream.hpp.

Constructor & Destructor Documentation

◆ IOstream() [1/2]

IOstream ( )
inlineexplicit

Definition at line 105 of file IOstream.hpp.

References IOstream::setBad().

Here is the call graph for this function:

◆ IOstream() [2/2]

IOstream ( const IOstream )
default

◆ ~IOstream()

virtual ~IOstream ( )
virtualdefault

Member Function Documentation

◆ setOpened()

void setOpened ( )
inlineprotected

Definition at line 78 of file IOstream.hpp.

References IOstream::openClosed_, and IOstream::OPENED.

◆ setClosed()

void setClosed ( )
inlineprotected

Definition at line 84 of file IOstream.hpp.

References IOstream::CLOSED, and IOstream::openClosed_.

◆ setState()

void setState ( ios_base::iostate  state)
inlineprotected

Definition at line 90 of file IOstream.hpp.

References IOstream::ioState_.

◆ setGood()

void setGood ( )
inlineprotected

Definition at line 96 of file IOstream.hpp.

References IOstream::ioState_.

◆ name() [1/2]

◆ name() [2/2]

virtual word& name ( )
virtual

Reimplemented in iTstream, Istream, and Ostream.

◆ check()

◆ fatalCheck()

◆ opened()

bool opened ( ) const
inline

Definition at line 138 of file IOstream.hpp.

References IOstream::openClosed_, and IOstream::OPENED.

◆ closed()

bool closed ( ) const
inline

Definition at line 144 of file IOstream.hpp.

References IOstream::CLOSED, and IOstream::openClosed_.

◆ good()

bool good ( ) const
inline

Definition at line 150 of file IOstream.hpp.

References IOstream::ioState_.

Referenced by Istream::nextValid(), and dictionary::readDictionary().

Here is the caller graph for this function:

◆ eof()

◆ fail()

bool fail ( ) const
inline

Definition at line 162 of file IOstream.hpp.

References IOstream::ioState_.

Referenced by IOstream::operator bool(), and IOstream::operator!().

Here is the caller graph for this function:

◆ bad()

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 174 of file IOstream.hpp.

References IOstream::fail().

Here is the call graph for this function:

◆ operator!()

bool operator! ( ) const
inline

Definition at line 180 of file IOstream.hpp.

References IOstream::fail().

Here is the call graph for this function:

◆ lineNumber() [1/3]

◆ lineNumber() [2/3]

int32& lineNumber ( )
inline

Definition at line 193 of file IOstream.hpp.

References IOstream::lineNumber_.

◆ lineNumber() [3/3]

int32 lineNumber ( const int32  num)
inline

Definition at line 200 of file IOstream.hpp.

References IOstream::lineNumber_.

◆ flags() [1/2]

virtual ios_base::fmtflags flags ( ) const
pure virtual

Implemented in oTstream, iTstream, Istream, and Ostream.

Referenced by IOstream::setf(), and IOstream::unsetf().

Here is the caller graph for this function:

◆ defaultPrecision() [1/2]

static unsigned int defaultPrecision ( )
inlinestatic

Definition at line 211 of file IOstream.hpp.

References IOstream::precision_.

◆ defaultPrecision() [2/2]

static unsigned int defaultPrecision ( unsigned int  prec)
inlinestatic

Definition at line 218 of file IOstream.hpp.

References IOstream::precision_.

◆ setEof()

void setEof ( )
inline

Definition at line 226 of file IOstream.hpp.

References IOstream::ioState_.

◆ setFail()

void setFail ( )
inline

Definition at line 232 of file IOstream.hpp.

References IOstream::ioState_.

◆ setBad()

void setBad ( )
inline

Definition at line 238 of file IOstream.hpp.

References IOstream::ioState_.

Referenced by IOstream::IOstream(), pFlow::operator>>(), and Logical::read().

Here is the caller graph for this function:

◆ flags() [2/2]

virtual ios_base::fmtflags flags ( const ios_base::fmtflags  f)
pure virtual

Implemented in oTstream, iTstream, Istream, and Ostream.

◆ setf() [1/2]

ios_base::fmtflags setf ( const ios_base::fmtflags  f)
inline

Definition at line 247 of file IOstream.hpp.

References IOstream::flags().

Referenced by pFlow::dec(), pFlow::fixed(), pFlow::hex(), pFlow::oct(), and pFlow::scientific().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setf() [2/2]

ios_base::fmtflags setf ( const ios_base::fmtflags  f,
const ios_base::fmtflags  mask 
)
inline

Definition at line 254 of file IOstream.hpp.

References IOstream::flags().

Here is the call graph for this function:

◆ unsetf()

void unsetf ( const ios_base::fmtflags  f)
inline

Definition at line 263 of file IOstream.hpp.

References IOstream::flags().

Here is the call graph for this function:

Member Data Documentation

◆ precision_

unsigned int precision_ = 6
static

Definition at line 59 of file IOstream.hpp.

Referenced by IOstream::defaultPrecision().

◆ staticName_

pFlow::word staticName_
staticprotected

Definition at line 64 of file IOstream.hpp.

Referenced by IOstream::name().

◆ openClosed_

streamAccess openClosed_
protected

◆ ioState_

◆ lineNumber_

int32 lineNumber_
protected

Definition at line 72 of file IOstream.hpp.

Referenced by IOstream::lineNumber().


The documentation for this class was generated from the following files: