00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_DUMPRESTOREDATA_HPP
00017 #define TORC_GENERIC_OM_DUMPRESTOREDATA_HPP
00018
00019 #include "torc/generic/om/PointerTypes.hpp"
00020 #include "torc/generic/om/DumpRestoreConfig.hpp"
00021
00022 #ifdef GENOM_SERIALIZATION
00023 #include <string>
00024
00025 #include <boost/shared_ptr.hpp>
00026
00027 namespace torc { namespace generic { class ObjectFactory; } }
00028
00029 namespace torc {
00030 namespace generic {
00031
00032 class DumpRestoreData {
00033 public:
00034 inline std::string
00035 getDumpPath() const throw();
00036
00037 inline ObjectFactorySharedPtr
00038 getFactory() const throw();
00039
00040 inline bool
00041 getRestoreAllComponents() const throw();
00042
00043 explicit DumpRestoreData(
00044 const std::string &inDumpPath = std::string(),
00045 ObjectFactorySharedPtr inFactory
00046 = ObjectFactorySharedPtr(),
00047 bool inRestoreAllComponents = false );
00048
00049 DumpRestoreData( const DumpRestoreData &inRhs );
00050
00051 ~DumpRestoreData() throw();
00052
00053 DumpRestoreData &
00054 operator = ( const DumpRestoreData &inRhs );
00055
00056 private:
00057 std::string mDumpPath;
00058 ObjectFactorySharedPtr mFactory;
00059 bool mRestoreAllComponents;
00060 };
00061
00062 inline std::string
00063 DumpRestoreData::getDumpPath() const throw() {
00064 return mDumpPath;
00065 }
00066
00067 inline ObjectFactorySharedPtr
00068 DumpRestoreData::getFactory() const throw() {
00069 return mFactory;
00070 }
00071
00072 inline bool
00073 DumpRestoreData::getRestoreAllComponents() const throw() {
00074 return mRestoreAllComponents;
00075 }
00076
00077 }
00078 }
00079 #endif //GENOM_SERIALIZATION
00080
00081 #endif // TORC_GENERIC_OM_DUMPRESTOREDATA_HPP