torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DumpRestoreData.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef TORC_GENERIC_DUMPRESTOREDATA_HPP
17 #define TORC_GENERIC_DUMPRESTOREDATA_HPP
18 
20 
21 #ifdef GENOM_SERIALIZATION
22 #include <string>
23 
24 #include <boost/shared_ptr.hpp>
25 
26 namespace torc { namespace generic { class ObjectFactory; } }
27 
28 namespace torc {
29 namespace generic {
30 
31 class DumpRestoreData {
32 public:
33  inline std::string getDumpPath() const;
34 
35  inline ObjectFactorySharedPtr getFactory() const;
36 
37  inline bool getRestoreAllComponents() const;
38 
39  explicit DumpRestoreData(const std::string& inDumpPath = std::string(),
40  ObjectFactorySharedPtr inFactory = ObjectFactorySharedPtr(), bool inRestoreAllComponents =
41  false);
42 
43  DumpRestoreData(const DumpRestoreData& inRhs);
44 
45  ~DumpRestoreData() throw ();
46 
47  DumpRestoreData& operator =(const DumpRestoreData& inRhs);
48 
49 private:
50  std::string mDumpPath;
51  ObjectFactorySharedPtr mFactory;
52  bool mRestoreAllComponents;
53 };
54 
55 inline std::string DumpRestoreData::getDumpPath() const {
56  return mDumpPath;
57 }
58 
59 inline ObjectFactorySharedPtr DumpRestoreData::getFactory() const {
60  return mFactory;
61 }
62 
63 inline bool DumpRestoreData::getRestoreAllComponents() const {
64  return mRestoreAllComponents;
65 }
66 
67 } // namespace torc
68 } // namespace generic
69 #endif //GENOM_SERIALIZATION
70 #endif // TORC_GENERIC_DUMPRESTOREDATA_HPP
boost::shared_ptr< ObjectFactory > ObjectFactorySharedPtr
std::string string