00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_RENAMABLE_HPP
00017 #define TORC_GENERIC_OM_RENAMABLE_HPP
00018
00019 #include "torc/generic/om/DumpRestoreConfig.hpp"
00020
00021 #include <string>
00022
00023
00024 #ifdef GENOM_SERIALIZATION
00025 #include <boost/serialization/access.hpp>
00026 #endif //GENOM_SERIALIZATION
00027
00028 namespace torc {
00029
00030 namespace generic {
00031
00032
00033
00034
00035
00036
00037 class Renamable
00038 {
00039 #ifdef GENOM_SERIALIZATION
00040 friend class boost::serialization::access;
00041 #endif
00042 public:
00043 typedef std::string Name;
00044
00045
00046
00047
00048
00049
00050 inline virtual Name
00051 getOriginalName() const throw();
00052
00053
00054
00055
00056
00057
00058 virtual void
00059 setOriginalName(const Name &inSource) throw();
00060
00061 protected:
00062 Renamable();
00063
00064 public:
00065 virtual
00066 ~Renamable() throw();
00067
00068 private:
00069 Renamable( const Renamable & );
00070 Renamable &
00071 operator = ( const Renamable & );
00072
00073 private:
00074 #ifdef GENOM_SERIALIZATION
00075 template<class Archive> void
00076 serialize( Archive &ar, unsigned int );
00077 #endif //GENOM_SERIALIZATION
00078
00079 Name mOriginalName;
00080 };
00081
00082
00083
00084
00085
00086
00087 inline Renamable::Name
00088 Renamable::getOriginalName() const throw() {
00089 return mOriginalName;
00090 }
00091
00092 }
00093
00094 }
00095 #endif // TORC_GENERIC_OM_RENAMABLE_HPP