QBaseApolloMessenger.hh

Go to the documentation of this file.
00001 
00002 #ifndef __QBASEAPOLLOMESSENGER_HH_
00003 #define __QBASEAPOLLOMESSENGER_HH_
00004 
00005 #include <string>
00006 #include <map>
00007 #include <sstream>
00008 
00009 #include "QCuore.hh"
00010 #include "QMessageDefs.hh"
00011 
00017 class QBaseApolloMessenger : public std::ostringstream
00018 {
00019    
00020 public:
00021    
00023    QBaseApolloMessenger();
00024    
00026    virtual ~QBaseApolloMessenger();
00027    
00032    virtual void Send(MsgLevel severity=InfoMsg) = 0;
00033    
00034    const std::string& GetName() const { return fName; }
00035    
00036 protected: 
00037 
00039    void SetName(std::string& name) { fName = name; }
00040    
00041    std::string fName;
00042    MsgLevel fSeverity;
00043    
00044    std::map<MsgLevel,std::string> StrSeverity;
00045    
00046 };
00047 
00048 #endif

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6