10 #include "Teuchos_VerboseObject.hpp"
20 RCP<FancyOStream>& VerboseObjectBase::privateDefaultOStream()
22 static RCP<FancyOStream> defaultOStream;
23 if (defaultOStream.get()==NULL) {
24 defaultOStream = fancyOStream(rcpFromRef(std::cout));
25 defaultOStream->setOutputToRootOnly(0);
29 return defaultOStream;
40 privateDefaultOStream() = defaultOStream;
47 return privateDefaultOStream();
62 : thisOverridingOStream_(null)
72 thisOStream_ = oStream;
79 thisOStream_ = oStream;
90 thisOverridingOStream_ = oStream;
99 thisLinePrefix_ = linePrefix;
111 if(!
is_null(thisOverridingOStream_))
112 return thisOverridingOStream_;
122 return thisOverridingOStream_;
128 return thisLinePrefix_;
136 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.