34 #include "soplex/fmt.hpp" 145 return getCurrentStream().good();
148 inline bool operator !()
const 150 return ! getCurrentStream();
155 return getCurrentStream().precision();
165 std::ostream& stream)
167 m_streams[ verbosity ] = &stream;
174 return *(m_streams[ verbosity ]);
181 return getStream(getVerbosity());
187 stream << std::setprecision(precision) << std::scientific;
191 static inline void setFixed(std::ostream& stream,
int precision = 8)
193 stream << std::setprecision(precision) << std::fixed;
199 template <
typename T,
typename... Args,
200 typename std::enable_if <
201 !std::is_base_of<EnableDebugOutput, T>::value,
int >
::type = 0 >
207 template <
typename T,
typename... Args,
208 typename std::enable_if<
209 std::is_base_of<EnableDebugOutput, T>::value,
int>::type = 0>
350 std::ostream & (*manip)(std::ostream&))
360 template <
typename T>
static void debug(const T *, Args &&... args)
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
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...
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.
void print(std::FILE *f, const text_style &ts, const S &format_str, const Args &... args)