00001 #ifndef NAMED_H 00002 #define NAMED_H 00003 #include <string> 00004 00005 using std::string; 00006 00016 class Named 00017 { 00018 public: 00019 virtual ~Named(); 00020 00022 void setName(const string & newName); 00023 00025 const string &getName() const; 00026 00027 00029 bool isName(const string & aName) const; 00030 00031 protected: 00033 Named(const string & aName=" "); 00034 00035 protected: 00036 00037 string _name; 00038 }; 00039 00040 00041 00042 #endif //
1.5.9