44#include "Teuchos_FancyOStream.hpp"
45#include "Teuchos_Assert.hpp"
56 setOStream(
const Teuchos::RCP<Teuchos::FancyOStream>& os)
59 m_out->setOutputToRootOnly(0);
60 m_pout = Teuchos::rcp(
new Teuchos::FancyOStream(os->getOStream()));
62 m_pout->setOutputToRootOnly(-1);
65 Teuchos::RCP<Teuchos::FancyOStream>
94 if ( !only_for_exact_level &&
95 (Teuchos::as<int>(vl) >= Teuchos::as<int>(
m_level)) )
98 if (only_for_exact_level && (vl ==
m_level) )
Teuchos::RCP< Teuchos::FancyOStream > m_pout
void setOStream(const Teuchos::RCP< Teuchos::FancyOStream > &os)
Teuchos::RCP< Teuchos::FancyOStream > m_out
EVerbosityLevel getVerbosityLevel() const
Teuchos::RCP< Teuchos::FancyOStream > getOStream() const
Teuchos::FancyOStream & out() const
void setVerbosityLevel(EVerbosityLevel vl)
OutputStreamDefaultImpl()
~OutputStreamDefaultImpl()
Teuchos::FancyOStream & pout() const
bool doOutput(EVerbosityLevel vl, bool only_for_exact_level=false) const
Returns true if vl is equal to or greater than the object's verbosity level.