QNamed.hh

00001 /*
00002 * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore 
00003 * $Id: QNamed.hh 631 2006-12-19 11:54:27Z giacher $
00004 * M.P. created 16/4/4
00005 * 
00006 * Class QNamed: base class for anything that has a name
00007 *
00008 */
00009 
00010 #ifndef __QNAMED_HH_
00011 #define __QNAMED_HH_
00012 
00013 
00014 // C/C++ Includes
00015 #include <string>
00016 
00017 // Apollo Includes
00018 #include "QCuore.hh"
00019 
00020 class QNamed {
00021 public:
00022   
00023   // ctor
00024   QNamed(const std::string& Name) : fName(Name) {}
00025   
00026   // dtor
00027   virtual ~QNamed() {}
00028 
00029 
00030   // Get Name
00031   inline const std::string& GetName() const {return fName;}
00032                 
00033         
00034 protected:
00035 
00036   // Set Name
00037   inline void SetName(const std::string& name) {fName=name;}
00038   
00039 private:
00040   std::string fName;
00041 
00042 };
00043                 
00044 #endif
00045 

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