QNamed.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __QNAMED_HH_
00011 #define __QNAMED_HH_
00012
00013
00014
00015 #include <string>
00016
00017
00018 #include "QCuore.hh"
00019
00020 class QNamed {
00021 public:
00022
00023
00024 QNamed(const std::string& Name) : fName(Name) {}
00025
00026
00027 virtual ~QNamed() {}
00028
00029
00030
00031 inline const std::string& GetName() const {return fName;}
00032
00033
00034 protected:
00035
00036
00037 inline void SetName(const std::string& name) {fName=name;}
00038
00039 private:
00040 std::string fName;
00041
00042 };
00043
00044 #endif
00045