Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_OutputStream.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef PANZER_OUTPUT_STREAM_HPP
12 #define PANZER_OUTPUT_STREAM_HPP
13 
14 #include "Teuchos_FancyOStream.hpp"
15 #include "Teuchos_RCP.hpp"
16 
17 namespace panzer {
18 
25  };
26 
36  class OutputStream {
37 
38  public:
39 
40  virtual ~OutputStream() {}
41 
42  virtual void setOStream(const Teuchos::RCP<Teuchos::FancyOStream>& os) = 0;
43 
45 
47  virtual Teuchos::FancyOStream& out() const = 0;
48 
50  virtual Teuchos::FancyOStream& pout() const = 0;
51 
52  virtual void setVerbosityLevel(EVerbosityLevel vl) = 0;
53 
54  virtual EVerbosityLevel getVerbosityLevel() const = 0;
55 
61  virtual bool doOutput(EVerbosityLevel vl, bool only_for_exact_level = false) const = 0;
62 
63  };
64 
65 }
66 
67 #endif
virtual Teuchos::FancyOStream & out() const =0
virtual void setOStream(const Teuchos::RCP< Teuchos::FancyOStream > &os)=0
virtual void setVerbosityLevel(EVerbosityLevel vl)=0
virtual EVerbosityLevel getVerbosityLevel() const =0
virtual Teuchos::FancyOStream & pout() const =0
virtual Teuchos::RCP< Teuchos::FancyOStream > getOStream() const =0
Interface for handling output in Panzer.
virtual bool doOutput(EVerbosityLevel vl, bool only_for_exact_level=false) const =0
Returns true if vl is equal to or greater than the object&#39;s verbosity level.