18 : _output_warehouse(output_warehouse), _oss(
std::make_shared<
std::ostringstream>())
27 const std::lock_guard<std::mutex> lock(
manip_mutex);
29 if (manip == (std::basic_ostream<char> & (*)(std::basic_ostream<char> &)) & std::endl)
48 return _oss->precision();
54 return _oss->precision(new_precision);
57 std::ios_base::fmtflags
63 std::ios_base::fmtflags
66 return _oss->flags(new_flags);
69 unsigned long long int A helper class for re-directing output streams to Console output objects form MooseObjects.
unsigned long long int numPrinted() const
The number of times something has been printed.
std::ios_base::fmtflags flags() const
Return the current flags.
static std::mutex manip_mutex
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.
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.
const ConsoleStream & operator<<(const StreamType &s) const
The output stream operator.
void mooseConsole()
Send current output buffer to Console output objects.
ConsoleStream(OutputWarehouse &output_warehouse)
Constructor.