211 std::string::const_reverse_iterator iS=mode.rbegin();
212 while (iS!=mode.rend()) {
227 return ((
mOutput & mode ) / mode == 1);
289 std::cerr<<msg<<std::flush<<
"\n";
293 if (percent>oldPercent) {
294 std::cout <<
"\r "<<message<<
" [" << std::setw(3) << percent <<
"%] "<<std::flush;
this class describes the exceptions raised for CORE package
Definition: CORE_Exception.h:17
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
abstract base class for most classes.
Definition: CORE_Object.h:48
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:259
this class describes the output stream by default write on standart output
Definition: CORE_Out.h:28
void reset()
reset the state of the class
Definition: CORE_Out.h:174
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Out.h:139
void restore()
restore the state after change
Definition: CORE_Out.h:263
void printError(const tString &msg)
print the message on error output
Definition: CORE_Out.h:288
static const tUCInt ALL_OUTPUT
Definition: CORE_Out.h:53
static void PrintProgressBar(const tString &message, const tInt &percent, tInt &oldPercent)
Definition: CORE_Out.h:292
void setOutput(const tUSInt &mode)
set outputType of the binary form v=2*f+s
Definition: CORE_Out.h:193
void setOutputFile(const tString &fileName)
set output file
Definition: CORE_Out.h:241
friend CORE_Out & operator<<(CORE_Out &out, const T &obj)
print Operators
Definition: CORE_Out.h:309
tFlag mOutput_back
Definition: CORE_Out.h:75
void print(const tString &msg)
print the message
Definition: CORE_Out.h:282
virtual ~CORE_Out(void)
destroy a CORE_Out
Definition: CORE_Out.h:97
tString mOutputFileName_back
Definition: CORE_Out.h:64
void release()
release the pointers
Definition: CORE_Out.h:165
static const tUCInt FILE_OUTPUT
Definition: CORE_Out.h:50
static CORE_UniquePointer< CORE_Out > New()
build a new instance of default output
Definition: CORE_Out.h:111
static const tUCInt SCREEN_OUTPUT
Definition: CORE_Out.h:47
void println(const tString &msg)
print the message
Definition: CORE_Out.h:275
static const tFlag CREATE
Definition: CORE_Out.h:59
tFlag mOutputFileMode_back
Definition: CORE_Out.h:76
tUCInt mOutput
Definition: CORE_Out.h:70
static const tUCInt NO_OUTPUT
Definition: CORE_Out.h:44
CORE_Out()
build a CORE_Out
Definition: CORE_Out.h:85
const tString & getOutputFileName() const
get the output file name
Definition: CORE_Out.h:249
void backup()
backup the state before change
Definition: CORE_Out.h:255
void setOutputFile(const tString &fileName, const tFlag &mode)
set output file
Definition: CORE_Out.h:235
void update()
update the state of the output
Definition: CORE_Out.h:145
tBoolean isOutput(const tUCInt &mode) const
return true if the output is of the mode
Definition: CORE_Out.h:226
std::ofstream * mOutputFileStream
Definition: CORE_Out.h:67
void setOutput(const tString &mode)
set outputType of the binary form v='FS'
Definition: CORE_Out.h:208
tString mOutputFileName
Definition: CORE_Out.h:63
static const tFlag APPEND
Definition: CORE_Out.h:56
virtual tMemSize getMemorySize() const override
return the memory size in byte
Definition: CORE_Out.h:128
tUCInt mOutputFileMode
Definition: CORE_Out.h:72
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tFlag
Definition: types.h:91
#define tUSInt
Definition: types.h:38
#define tString
Definition: types.h:147
#define tInt
Definition: types.h:47
#define tMemSize
Definition: types.h:166
#define tUCInt
Definition: types.h:26
#define tBoolean
Definition: types.h:151