www.cemf.ir
iOstream.hpp File Reference
+ Include dependency graph for iOstream.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  iOstream
 Interface class for any output stream. More...
 

Namespaces

 pFlow
 

Macros

#define Red_Text(text)   redColor<<text<<defaultColor
 
#define Yellow_Text(text)   yellowColor<<text<<defaultColor
 
#define Blue_Text(text)   blueColor<<text<<defaultColor
 
#define Green_Text(text)   greenColor<<text<<defaultColor
 
#define Magenta_Text(text)   magentaColor<<text<<defaultColor
 
#define Cyan_Text(text)   cyanColor<<text<<defaultColor
 
#define Bold_Text(text)   boldChar<<text<<defaultColor
 

Typedefs

typedef iOstream &(* iOstreamManip) (iOstream &)
 An iOstream manipulator. More...
 

Functions

iOstream & operator<< (iOstream &os, iOstreamManip f)
 operator<< handling for manipulators without arguments More...
 
iOstream & operator<< (iOstream &os, IOstreamManip f)
 operator<< handling for manipulators without arguments More...
 
iOstream & indent (iOstream &os)
 Indent stream. More...
 
iOstream & incrIndent (iOstream &os)
 Increment the indent level. More...
 
iOstream & decrIndent (iOstream &os)
 Decrement the indent level. More...
 
iOstream & flush (iOstream &os)
 Flush stream. More...
 
iOstream & endl (iOstream &os)
 Add newline and flush stream. More...
 
iOstream & beginBlock (iOstream &os)
 Write begin block group without a name. More...
 
iOstream & endBlock (iOstream &os)
 Write end block group. More...
 
iOstream & endEntry (iOstream &os)
 Write end entry (';') followed by newline. More...
 
iOstream & operator<< (iOstream &os, const char c)
 
iOstream & operator<< (iOstream &os, const char *buf)
 
iOstream & operator<< (iOstream &os, const word &w)
 
iOstream & operator<< (iOstream &os, const int64 &val)
 
iOstream & operator<< (iOstream &os, const int32 &val)
 
iOstream & operator<< (iOstream &os, const int8 &val)
 
iOstream & operator<< (iOstream &os, const uint64 &val)
 
iOstream & operator<< (iOstream &os, const uint32 &val)
 
iOstream & operator<< (iOstream &os, const uint8 &val)
 
iOstream & operator<< (iOstream &os, const float &val)
 
iOstream & operator<< (iOstream &os, const double &val)
 
iOstream & operator<< (iOstream &os, const size_t &val)
 

Variables

const char * defaultColor = "\033[0m"
 char constants to alter output format and color More...
 
const char * blackColor = "\033[30m"
 
const char * redColor = "\033[31m"
 
const char * greenColor = "\033[32m"
 
const char * yellowColor = "\033[33m"
 
const char * blueColor = "\033[34m"
 
const char * magentaColor = "\033[35m"
 
const char * cyanColor = "\033[36m"
 
const char * whiteColor = "\033[37m"
 
const char * boldChar = "\033[1m"
 
constexpr char tab = '\t'
 
constexpr char nl = '\n'
 

Macro Definition Documentation

◆ Red_Text

#define Red_Text (   text)    redColor<<text<<defaultColor

Definition at line 39 of file iOstream.hpp.

◆ Yellow_Text

#define Yellow_Text (   text)    yellowColor<<text<<defaultColor

Definition at line 40 of file iOstream.hpp.

◆ Blue_Text

#define Blue_Text (   text)    blueColor<<text<<defaultColor

Definition at line 41 of file iOstream.hpp.

◆ Green_Text

#define Green_Text (   text)    greenColor<<text<<defaultColor

Definition at line 42 of file iOstream.hpp.

◆ Magenta_Text

#define Magenta_Text (   text)    magentaColor<<text<<defaultColor

Definition at line 43 of file iOstream.hpp.

◆ Cyan_Text

#define Cyan_Text (   text)    cyanColor<<text<<defaultColor

Definition at line 44 of file iOstream.hpp.

◆ Bold_Text

#define Bold_Text (   text)    boldChar<<text<<defaultColor

Definition at line 45 of file iOstream.hpp.

Variable Documentation

◆ defaultColor

const char* defaultColor = "\033[0m"
inline

◆ blackColor

const char* blackColor = "\033[30m"
inline

Definition at line 28 of file iOstream.hpp.

◆ redColor

const char* redColor = "\033[31m"
inline

Definition at line 29 of file iOstream.hpp.

◆ greenColor

const char* greenColor = "\033[32m"
inline

Definition at line 30 of file iOstream.hpp.

Referenced by pFlow::TSFtoVTK::convertRealx3TypetriSurfaceField(), and Timer::write().

◆ yellowColor

const char* yellowColor = "\033[33m"
inline

◆ blueColor

const char* blueColor = "\033[34m"
inline

Definition at line 32 of file iOstream.hpp.

◆ magentaColor

const char* magentaColor = "\033[35m"
inline

Definition at line 33 of file iOstream.hpp.

◆ cyanColor

const char* cyanColor = "\033[36m"
inline

Definition at line 34 of file iOstream.hpp.

◆ whiteColor

const char* whiteColor = "\033[37m"
inline

Definition at line 35 of file iOstream.hpp.

◆ boldChar

const char* boldChar = "\033[1m"
inline

Definition at line 37 of file iOstream.hpp.

Referenced by Timer::write().