22 typedef std::basic_ostream<char, std::char_traits<char>>
CoutType;
50 template <
typename StreamType>
61 void unsetf(std::ios_base::fmtflags mask)
const;
63 std::streampos
tellp()
const {
return _oss->tellp(); }
73 std::streamsize
precision(std::streamsize new_precision)
const;
78 std::ios_base::fmtflags
flags()
const;
83 std::ios_base::fmtflags
flags(std::ios_base::fmtflags new_flags)
const;
98 mutable std::shared_ptr<std::ostringstream>
_oss;
104 template <
typename StreamType>
A helper class for re-directing output streams to Console output objects form MooseObjects.
std::ios_base::fmtflags flags() const
Return the current flags.
CoutType &(* StandardEndLine)(CoutType &)
OutputWarehouse & _output_warehouse
Reference to the OutputWarhouse that contains the Console output objects.
void unsetf(std::ios_base::fmtflags mask) const
Unset format flags.
std::basic_ostream< char, std::char_traits< char > > CoutType
std::streampos tellp() const
unsigned long long int numPrinted() const
The number of times something has been printed.
std::shared_ptr< std::ostringstream > _oss
The stream for buffering the message This stupidly has to be a shared pointer because of something in...
Class for storing and utilizing output objects.
std::streamsize precision() const
Return the current precision.
static std::mutex _stream_mutex
Mutex to prevent concurrent read/writes, write/writes.
const ConsoleStream & operator<<(const StreamType &s) const
The output stream operator.
ConsoleStream(OutputWarehouse &output_warehouse)
Constructor.