Manipulators are implemented in a similar way as done for setw()
, setprecision()
, etc. in the standard library file iomanip. For instance, the non-member function verb(v) returns a struct struct_Severity which contains only the verbosity level. Calling
spxout <<
verb( SPxOut::ERROR ) <<
"This is an error!" << std::endl;
Wrapper for several output streams. A verbosity level is used to decide which stream to use and wheth...
SPxOut::struct_Verbosity verb(const SPxOut::Verbosity &v)
manipulator to be used in an output statement
passes such a struct to the output operator defined below, which extracts the verbosity level from the struct and passes it to the member function SPxOut::setVerbosity().