10 #ifndef TEUCHOS_VERBOSE_OBJECT_HPP
11 #define TEUCHOS_VERBOSE_OBJECT_HPP
104 virtual std::string getLinePrefix()
const;
124 virtual OSTab getOSTab(
const int tabs = 1,
const std::string &linePrefix =
"")
const;
132 void initializeVerboseObjectBase(
144 virtual void informUpdatedVerbosityState()
const;
152 #pragma warning(push)
153 #pragma warning(disable:4251)
201 template<
class ObjectType>
280 template<
class ObjectType>
330 template<
class ObjectType>
333 privateDefaultVerbLevel() = defaultVerbLevel;
337 template<
class ObjectType>
340 return privateDefaultVerbLevel();
347 template<
class ObjectType>
358 template<
class ObjectType>
364 thisVerbLevel_ = verbLevel;
365 this->initializeVerboseObjectBase(oStream);
369 template<
class ObjectType>
373 thisVerbLevel_ = verbLevel;
374 informUpdatedVerbosityState();
379 template<
class ObjectType>
385 thisOverridingVerbLevel_ = verbLevel;
386 informUpdatedVerbosityState();
394 template<
class ObjectType>
398 return thisOverridingVerbLevel_;
400 return getDefaultVerbLevel();
401 return thisVerbLevel_;
408 template<
class ObjectType>
412 return defaultVerbLevel;
419 #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.