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::FancyOStream & pout() const
EVerbosityLevel getVerbosityLevel() const
void setOStream(const Teuchos::RCP< Teuchos::FancyOStream > &os)
Teuchos::RCP< Teuchos::FancyOStream > m_out
Teuchos::FancyOStream & out() const
Teuchos::RCP< Teuchos::FancyOStream > m_pout
OutputStreamDefaultImpl()
~OutputStreamDefaultImpl()
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.
void setVerbosityLevel(EVerbosityLevel vl)
Teuchos::RCP< Teuchos::FancyOStream > getOStream() const