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