QBaseApolloMessenger.hh

Go to the documentation of this file.
00001 
00008 #ifndef __QBASEAPOLLOMESSENGER_HH_
00009 #define __QBASEAPOLLOMESSENGER_HH_
00010 
00011 #include <string>
00012 #include <map>
00013 #include <sstream>
00014 
00015 #include "QCuore.hh"
00016 #include "QMessageDefs.hh"
00017 
00018 class QBaseApolloMessenger : public std::ostringstream { 
00019    
00020 public:
00021    
00022 //    /** @brief enum for message severity */
00023 //    enum MsgLevel {
00024 //       NoMsg=0, /**< undefined */
00025 //       DebugMsg=1,/**< debug */
00026 //       InfoMsg=2,  /**< log */
00027 //       WarnMsg=3, /**< warning */
00028 //       ErrorMsg=4,/**< error */
00029 //       PanicMsg=5 /**< panic */
00030 //    };
00031    
00032 
00034    QBaseApolloMessenger();
00035    
00037    virtual ~QBaseApolloMessenger();
00038    
00043    virtual void Send(MsgLevel severity=InfoMsg) = 0;
00044    
00045    const std::string& GetName() const { return fName; }
00046    
00047 protected: 
00048 
00050    void SetName(std::string& name) { fName = name; }
00051    
00052    std::string fName;
00053    MsgLevel fSeverity;
00054    
00055    std::map<MsgLevel,std::string> StrSeverity;
00056    
00057 };
00058 
00059 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1