|
C++ mpi module for stochmagnet_main Package
|
this class describes the output stream by default write on standart output More...
#include <CORE_Out.h>


Public Member Functions | |
| CORE_Out () | |
| build a CORE_Out | |
| virtual | ~CORE_Out (void) |
| destroy a CORE_Out | |
| virtual tMemSize | getMemorySize () const override |
| return the memory size in byte More... | |
| virtual tMemSize | getContentsMemorySize () const override |
| return nthe memory size of the included associations More... | |
| void | update () |
| update the state of the output | |
| void | release () |
| release the pointers | |
| void | reset () |
| reset the state of the class | |
| void | setOutput (const tUSInt &mode) |
| set outputType of the binary form v=2*f+s More... | |
| void | setOutput (const tString &mode) |
| set outputType of the binary form v='FS' More... | |
| tBoolean | isOutput (const tUCInt &mode) const |
| return true if the output is of the mode More... | |
| tBoolean | hasOutput () const |
| return true if the output is of the mode More... | |
| void | setOutputFile (const tString &fileName, const tFlag &mode) |
| set output file More... | |
| void | setOutputFile (const tString &fileName) |
| set output file | |
| void | updateOutputFile (const tString &fileName) |
| update output file | |
| const tString & | getOutputFileName () const |
| get the output file name More... | |
| void | backup () |
| backup the state before change | |
| void | restore () |
| restore the state after change | |
| void | println (const tString &msg) |
| print the message More... | |
| void | print (const tString &msg) |
| print the message More... | |
| void | printError (const tString &msg) |
| print the message on error output More... | |
| virtual tString | toString () const override |
| return the string repreentation of the class More... | |
Public Member Functions inherited from CORE_Object | |
| template<class T > | |
| std::shared_ptr< T > | getSharedPointer () |
| return the shared pointer for this More... | |
| template<class T > | |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| return a const shared pointer for this More... | |
| template<class T > | |
| tBoolean | isInstanceOf () const |
| test if the clas T is an instance of this class More... | |
| tString | getClassName () const |
| return the name of the class More... | |
| tString | getPointerString () const |
| retrun the pointer of the class as a string More... | |
| tString | getIdentityString () const |
| retrun the string identification of the class More... | |
Static Public Member Functions | |
| static CORE_UniquePointer< CORE_Out > | New () |
| build a new instance of default output More... | |
| static void | PrintProgressBar (const tString &message, const tInt &percent, tInt &oldPercent) |
| print a progress bar if percent greater than oldpercent More... | |
Static Public Member Functions inherited from CORE_Object | |
| static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
| enable the memory stack More... | |
| static void | EnableMemoryStack () |
| enable the memory stack | |
| static void | DisableMemoryStack () |
| disable the memory stack | |
| static tBoolean | IsMemoryStackEnabled () |
| return trur if the memory stack is enabled | |
| static tString | MemoryStackToString () |
| get the memory stack in string More... | |
| static tIndex | GetRegisteredClassesNumber () |
| get the memory stack in string More... | |
Static Public Attributes | |
| static const tUCInt | NO_OUTPUT =0 |
| for printing in screen | |
| static const tUCInt | SCREEN_OUTPUT =1 |
| for printing in screen | |
| static const tUCInt | FILE_OUTPUT =2 |
| for printing in file | |
| static const tUCInt | ALL_OUTPUT =3 |
| for printing in all | |
| static const tFlag | APPEND =1 |
| output file mode : append to file | |
| static const tFlag | CREATE =0 |
| output file mode : create file | |
Friends | |
| template<typename T > | |
| CORE_Out & | operator<< (CORE_Out &out, const T &obj) |
| print Operators More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CORE_Object | |
| CORE_Object () | |
| build an instance of the object | |
| virtual | ~CORE_Object () |
| destroy the instance of object std | |
this class describes the output stream by default write on standart output
After any change of the output call update();
|
inlineoverridevirtual |
return nthe memory size of the included associations
Reimplemented from CORE_Object.
|
inlineoverridevirtual |
return the memory size in byte
Reimplemented from CORE_Object.
|
inline |
get the output file name
|
inline |
return true if the output is of the mode
|
inline |
return true if the output is of the mode
| [in] | mode | output mode |
|
inlinestatic |
build a new instance of default output
|
inline |
print the message
| [in] | msg | message to print on output |
|
inline |
print the message on error output
| [in] | msg | message to print on errot output |
|
inline |
print the message
| [in] | msg | message to print on output |
|
inlinestatic |
print a progress bar if percent greater than oldpercent
| [in] | message | : message to print |
| [in] | percent | : progress bar evolution rate in per cent |
| [out] | oldPercent | : the old percent is updated to percent |
|
inline |
set outputType of the binary form v='FS'
| [in] | mode | the output mode
|
examples:
|
inline |
set outputType of the binary form v=2*f+s
| [in] | mode | the output mode
|
examples:
|
inline |
set output file
| [in] | fileName | : name of the output file |
| [in] | mode | mode of writting the output file |
|
inlineoverridevirtual |
return the string repreentation of the class
Reimplemented from CORE_Object.
print Operators
| [in,out] | out | output stream |
| [in] | obj | to print |