www.mooseframework.org
ConsoleStream.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 // Moose includes
16 #include "ConsoleStream.h"
17 #include "MooseUtils.h"
18 #include "OutputWarehouse.h"
19 
21  : _output_warehouse(output_warehouse), _oss(output_warehouse.consoleBuffer())
22 {
23 }
24 
26 {
27  _oss << '\n';
29 
30  return *this;
31 }
A helper class for re-directing output streams to Console output objects form MooseObjects.
Definition: ConsoleStream.h:34
CoutType &(* StandardEndLine)(CoutType &)
Definition: ConsoleStream.h:29
OutputWarehouse & _output_warehouse
Reference to the OutputWarhouse that contains the Console output objects.
Definition: ConsoleStream.h:64
std::ostringstream & _oss
The stream for buffering the message.
Definition: ConsoleStream.h:67
Class for storing and utilizing output objects.
const ConsoleStream & operator<<(const StreamType &s) const
The output stream operator.
Definition: ConsoleStream.h:72
void mooseConsole()
Send current output buffer to Console output objects.
ConsoleStream(OutputWarehouse &output_warehouse)
Constructor.
Definition: ConsoleStream.C:20