151 std::ostream& stream)
173 stream << std::setprecision(
precision) << std::scientific;
179 stream << std::setprecision(
precision) << std::fixed;
245 #define PASS_TO_CURRENT_OSTREAM( t ) \ 246 _spxout.getCurrentStream() << t; \ 250 #define DEFINE_OUTPUT_OPERATOR( Type ) \ 252 operator<< ( SPxOut& _spxout, Type t ) \ 253 { PASS_TO_CURRENT_OSTREAM( t ) } 271 std::ostream & (*manip)(std::ostream&))
280 template<
typename T >
SPxOut::struct_Verbosity verb(const SPxOut::Verbosity &v)
manipulator to be used in an output statement
virtual void setStream(const Verbosity &verbosity, std::ostream &stream)
Sets the stream for the specified verbosity level.
std::ostream ** m_streams
array of pointers to internal streams, indexed by verbosity level
Verbosity m_verbosity
verbosity level
virtual ~SPxOut()
destructor
helper struct for the output operator
static void setScientific(std::ostream &stream, int precision=8)
Sets the precision of the stream to 16 and the floatfield to scientifix.
std::ostream & getStream(const Verbosity &verbosity) const
Returns the stream for the specified verbosity level.
std::ostream & getCurrentStream() const
Returns the stream for the current verbosity.
static void setFixed(std::ostream &stream, int precision=8)
Sets the precision of the stream to 8 and the floatfield to fixed.
std::ostream & operator<<(std::ostream &s, const VectorBase< R > &vec)
Output operator.
Wrapper for several output streams. A verbosity level is used to decide which stream to use and wheth...
#define DEFINE_OUTPUT_OPERATOR(Type)
Passes instances of type Type to the current stream.
virtual void setVerbosity(const Verbosity &v)
Verbosity getVerbosity() const
Debugging, floating point type and parameter definitions.
Verbosity v_
verbosity level
Everything should be within this namespace.
std::streamsize precision() const
Verbosity
Verbosity level.
#define PASS_TO_CURRENT_OSTREAM(t)
SPxOut & operator=(const SPxOut &)
assignment operator