PlayaObjectWithVerbosity.hpp
Go to the documentation of this file.
00001 /* @HEADER@ */
00002 //   
00003 /* @HEADER@ */
00004 
00005 #ifndef PLAYA_OBJECT_WITH_VERBOSITY_HPP
00006 #define PLAYA_OBJECT_WITH_VERBOSITY_HPP
00007 
00008 #include "PlayaDefs.hpp"
00009 #include <iostream>
00010 
00011 namespace Playa
00012 {
00013   /**
00014    * ObjectWithVerbosity provides a common interface for reading and setting
00015    * verbosity levels 
00016    *
00017    * @author Kevin Long (kevin.long@ttu.edu)
00018    */
00019   class ObjectWithVerbosity
00020     {
00021     public:
00022       /** */
00023       ObjectWithVerbosity(int verb=0) : verb_(verb) {}
00024 
00025       /** virtual dtor */
00026       virtual ~ObjectWithVerbosity() {;}
00027 
00028       /** Return the verbosity */
00029       int verb() const {return verb_;}
00030 
00031       /** Set the verbosity */
00032       void setVerb(int v) {verb_=v;}
00033     private:
00034       int verb_;
00035     };
00036 }
00037 
00038 
00039 #endif

Site Contact