Public Member Functions | |
Ostream (std::ostream &os, const word &streamName) | |
Ostream (const Ostream &)=delete | |
void | operator= (const Ostream &)=delete |
virtual const word & | name () const |
virtual word & | name () |
virtual ios_base::fmtflags | flags () const |
virtual bool | write (const token &tok) override |
virtual iOstream & | write (const char c) override |
virtual iOstream & | write (const char *str) override |
virtual iOstream & | write (const word &str) override |
virtual iOstream & | writeQuoted (const word &str, const bool quoted=true) override |
virtual iOstream & | write (const int64 val) override |
virtual iOstream & | write (const int32 val) override |
virtual iOstream & | write (const label val) override |
virtual iOstream & | write (const uint32 val) override |
virtual iOstream & | write (const uint16 val) override |
virtual iOstream & | write (const float val) override |
virtual iOstream & | write (const double val) override |
virtual void | indent () |
virtual ios_base::fmtflags | flags (const ios_base::fmtflags f) |
virtual void | flush () |
virtual void | endl () |
virtual char | fill () const |
virtual char | fill (const char fillch) |
virtual int | width () const |
virtual int | width (const int w) |
virtual int | precision () const |
virtual int | precision (const int p) |
virtual std::ostream & | stdStream () |
virtual const std::ostream & | stdStream () const |
![]() | |
iOstream () | |
iOstream (const iOstream &)=default | |
virtual | ~iOstream ()=default |
unsigned short | indentSize () const |
unsigned short & | indentSize () |
unsigned short | indentLevel () const |
unsigned short & | indentLevel () |
void | incrIndent () |
void | decrIndent () |
virtual iOstream & | beginBlock (const word &kw) |
virtual iOstream & | beginBlock () |
virtual iOstream & | endBlock () |
virtual iOstream & | beginList () |
virtual iOstream & | beginList (const word &kw) |
virtual iOstream & | endList () |
virtual iOstream & | beginSquare () |
virtual iOstream & | beginSquare (const word &kw) |
virtual iOstream & | endSquare () |
virtual iOstream & | endEntry () |
virtual iOstream & | newLine () |
virtual iOstream & | space (int32 n=1) |
virtual iOstream & | writeWordKeyword (const word &kw) |
template<class T > | |
iOstream & | writeWordEntry (const word &key, const T &value) |
iOstream & | operator() () const |
![]() | |
IOstream () | |
IOstream (const IOstream &)=default | |
virtual | ~IOstream ()=default |
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 |
int32 & | lineNumber () |
int32 | lineNumber (const int32 num) |
void | setEof () |
void | setFail () |
void | setBad () |
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) |
Private Attributes | |
word | name_ |
std::ostream & | os_ |
Additional Inherited Members | |
![]() | |
enum | streamAccess : char { CLOSED = 0, OPENED } |
![]() | |
static unsigned int | defaultPrecision () |
static unsigned int | defaultPrecision (unsigned int prec) |
![]() | |
static unsigned int | precision_ = 6 |
![]() | |
void | setOpened () |
void | setClosed () |
void | setState (ios_base::iostate state) |
void | setGood () |
![]() | |
unsigned short | indentSize_ = 4 |
unsigned short | indentLevel_ = 0 |
![]() | |
streamAccess | openClosed_ |
ios_base::iostate | ioState_ |
int32 | lineNumber_ |
![]() | |
static constexpr const unsigned short | entryIndentation_ = 16 |
![]() | |
static word | staticName_ |
Definition at line 35 of file Ostream.hpp.
Definition at line 29 of file Ostream.cpp.
|
delete |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements IOstream.
Definition at line 257 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 52 of file Ostream.cpp.
References token::type(), token::wordToken(), and Ostream::writeQuoted().
|
overridevirtual |
|
overridevirtual |
Implements iOstream.
Definition at line 91 of file Ostream.cpp.
References pFlow::countChar(), and token::NL.
|
overridevirtual |
Implements iOstream.
Definition at line 100 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 109 of file Ostream.cpp.
References token::BEGIN_STRING, pFlow::countChar(), token::END_STRING, and token::NL.
Referenced by Ostream::write().
|
overridevirtual |
Implements iOstream.
Definition at line 168 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 176 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 197 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 204 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 211 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 218 of file Ostream.cpp.
|
overridevirtual |
Implements iOstream.
Definition at line 226 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 235 of file Ostream.cpp.
|
virtual |
Implements IOstream.
Definition at line 263 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 244 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 250 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 271 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 277 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 283 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 289 of file Ostream.cpp.
|
virtual |
Implements iOstream.
Definition at line 295 of file Ostream.cpp.
Referenced by stlFile::write().
|
virtual |
Implements iOstream.
Definition at line 301 of file Ostream.cpp.
|
inlinevirtual |
Definition at line 150 of file Ostream.hpp.
References Ostream::os_.
|
inlinevirtual |
Definition at line 156 of file Ostream.hpp.
References Ostream::os_.
|
private |
Definition at line 40 of file Ostream.hpp.
Referenced by Ostream::name().
|
private |
Definition at line 42 of file Ostream.hpp.
Referenced by Ostream::stdStream().