42 #include "Teuchos_VerboseObject.hpp"
52 RCP<FancyOStream>& VerboseObjectBase::privateDefaultOStream()
54 static RCP<FancyOStream> defaultOStream;
55 if (defaultOStream.get()==NULL) {
56 defaultOStream = fancyOStream(rcpFromRef(std::cout));
57 defaultOStream->setOutputToRootOnly(0);
61 return defaultOStream;
72 privateDefaultOStream() = defaultOStream;
79 return privateDefaultOStream();
94 : thisOverridingOStream_(null)
104 thisOStream_ = oStream;
111 thisOStream_ = oStream;
122 thisOverridingOStream_ = oStream;
131 thisLinePrefix_ = linePrefix;
143 if(!
is_null(thisOverridingOStream_))
144 return thisOverridingOStream_;
154 return thisOverridingOStream_;
160 return thisLinePrefix_;
168 const int tabs,
const std::string &linePrefix
basic_OSTab< char > OSTab
virtual std::string getLinePrefix() const
Get the line prefix for this object.
bool is_null(const std::shared_ptr< T > &p)
Returns true if p.get()==NULL.
static void setDefaultOStream(const RCP< FancyOStream > &defaultOStream)
Set the default output stream object.
Tabbing class for helping to create formated, indented output for a basic_FancyOStream object...
virtual VerboseObjectBase & setLinePrefix(const std::string &linePrefix)
Set line prefix name for this object.
virtual const VerboseObjectBase & setOStream(const RCP< FancyOStream > &oStream) const
The output stream for *this object.
VerboseObjectBase(const RCP< FancyOStream > &oStream=Teuchos::null)
Calls initializeVerboseObject().
virtual OSTab getOSTab(const int tabs=1, const std::string &linePrefix="") const
Create a tab object which sets the number of tabs and optionally the line prefix. ...
static RCP< FancyOStream > getDefaultOStream()
Get the default output stream object.
Non-templated base class for objects that can print their activities to a stream. ...
virtual const VerboseObjectBase & setOverridingOStream(const RCP< FancyOStream > &oStream) const
Set the overriding the output stream for *this object.
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
void initializeVerboseObjectBase(const RCP< FancyOStream > &oStream=Teuchos::null)
Calls initializeVerboseObject().
virtual ~VerboseObjectBase()
Smart reference counting pointer class for automatic garbage collection.
virtual RCP< FancyOStream > getOverridingOStream() const
Return the the overriding output stream if set.
virtual RCP< FancyOStream > getOStream() const
Return the output stream to be used for out for *this object.
virtual void informUpdatedVerbosityState() const
Function that is called whenever the verbosity state is updated.