42 #ifndef ANASAZI_OUTPUT_MANAGER_HPP 43 #define ANASAZI_OUTPUT_MANAGER_HPP 52 #include "Teuchos_FancyOStream.hpp" 53 #include "Teuchos_RCP.hpp" 54 #include "Teuchos_oblackholestream.hpp" 67 template <
class ScalarType>
77 const Teuchos::RCP<Teuchos::FancyOStream> &fos = Teuchos::getFancyOStream(Teuchos::rcpFromRef(std::cout)) )
81 bh_fos_ = Teuchos::getFancyOStream(Teuchos::rcpFromRef( myBHS_ ));
98 virtual void setFancyOStream(
const Teuchos::RCP<Teuchos::FancyOStream>& fos ) { fos_ = fos; }
101 virtual const Teuchos::RCP<Teuchos::FancyOStream>&
getFancyOStream( )
const {
return fos_; }
115 virtual void print(
MsgType type,
const std::string output );
137 Teuchos::RCP<Teuchos::FancyOStream> fos_, bh_fos_;
138 Teuchos::oblackholestream myBHS_;
141 template<
class ScalarType>
144 if ( (type & vb_) == type ) {
150 template<
class ScalarType>
153 if ( (type & vb_) == type ) {
158 template<
class ScalarType>
160 if ( (type & vb_) == type )
virtual bool isVerbosity(MsgType type) const
Find out whether we need to print out information for this message type.
virtual const Teuchos::RCP< Teuchos::FancyOStream > & getFancyOStream() const
Get the formatted output stream object for this manager.
virtual void setVerbosity(int vb)
Set the message output types for this manager.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
virtual Teuchos::FancyOStream & stream(MsgType type)
Create a stream for outputting to.
Output managers remove the need for the eigensolver to know any information about the required output...
virtual void print(MsgType type, const std::string output)
Send output to the output manager.
Anasazi header file which uses auto-configuration information to include necessary C++ headers...
virtual int getVerbosity() const
Get the message output types for this manager.
virtual ~OutputManager()
Destructor.
Types and exceptions used within Anasazi solvers and interfaces.
OutputManager(int vb=Anasazi::Errors, const Teuchos::RCP< Teuchos::FancyOStream > &fos=Teuchos::getFancyOStream(Teuchos::rcpFromRef(std::cout)))
Default constructor.
MsgType
Enumerated list of available message types recognized by the eigensolvers.
virtual void setFancyOStream(const Teuchos::RCP< Teuchos::FancyOStream > &fos)
Set the formatted output stream object for this manager.