42#ifndef TEUCHOS_VERBOSE_OBJECT_HPP
43#define TEUCHOS_VERBOSE_OBJECT_HPP
136 virtual std::string getLinePrefix()
const;
156 virtual OSTab getOSTab(
const int tabs = 1,
const std::string &linePrefix =
"")
const;
164 void initializeVerboseObjectBase(
176 virtual void informUpdatedVerbosityState()
const;
185#pragma warning(disable:4251)
233template<
class ObjectType>
312template<
class ObjectType>
362template<
class ObjectType>
365 privateDefaultVerbLevel() = defaultVerbLevel;
369template<
class ObjectType>
372 return privateDefaultVerbLevel();
379template<
class ObjectType>
390template<
class ObjectType>
396 thisVerbLevel_ = verbLevel;
397 this->initializeVerboseObjectBase(oStream);
401template<
class ObjectType>
405 thisVerbLevel_ = verbLevel;
406 informUpdatedVerbosityState();
411template<
class ObjectType>
417 thisOverridingVerbLevel_ = verbLevel;
418 informUpdatedVerbosityState();
426template<
class ObjectType>
430 return thisOverridingVerbLevel_;
432 return getDefaultVerbLevel();
433 return thisVerbLevel_;
440template<
class ObjectType>
444 return defaultVerbLevel;
#define TEUCHOSCORE_LIB_DLL_EXPORT
Reference-counted pointer class and non-member templated function implementations.
Smart reference counting pointer class for automatic garbage collection.
Non-templated base class for objects that can print their activities to a stream.
RCP< FancyOStream > thisOStream_
RCP< FancyOStream > thisOverridingOStream_
std::string thisLinePrefix_
Set and release a stream and verbosity level.
VerboseObjectTempState & operator=(const VerboseObjectTempState &)
VerboseObjectTempState(const VerboseObjectTempState &)
VerboseObjectTempState(const RCP< const VerboseObject< ObjectType > > &verboseObject, const RCP< FancyOStream > &newOStream, const EVerbosityLevel newVerbLevel)
EVerbosityLevel oldVerbLevel_
~VerboseObjectTempState()
RCP< FancyOStream > oldOStream_
RCP< const VerboseObject< ObjectType > > verboseObject_
Templated base class for objects that can print their activities to a stream and have a verbosity lev...
EVerbosityLevel thisVerbLevel_
EVerbosityLevel thisOverridingVerbLevel_
static void setDefaultVerbLevel(const EVerbosityLevel defaultVerbLevel)
Set the default verbosity level.
virtual const VerboseObject & setVerbLevel(const EVerbosityLevel verbLevel) const
Set this object's verbosity level.
static EVerbosityLevel & privateDefaultVerbLevel()
virtual EVerbosityLevel getVerbLevel() const
Get the verbosity level.
VerboseObject(const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null)
Constructor: calls initializeVerboseObject().
void initializeVerboseObject(const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null)
Initialize the VerboseObject.
static EVerbosityLevel getDefaultVerbLevel()
Get the default verbosity level.
virtual const VerboseObject & setOverridingVerbLevel(const EVerbosityLevel verbLevel) const
Set the overriding verbosity level for *this object.
Tabbing class for helping to create formated, indented output for a basic_FancyOStream object.
EVerbosityLevel
Verbosity level.
@ VERB_DEFAULT
Generate output as defined by the object.