torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DumpRestoreData.cpp
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 
17 
18 #ifdef GENOM_SERIALIZATION
19 
20 namespace torc {
21 namespace generic {
22 
23 DumpRestoreData::DumpRestoreData(const std::string& inDumpPath, ObjectFactorySharedPtr inFactory,
24  bool inRestoreAllComponents) : mDumpPath(inDumpPath), mFactory(inFactory),
25  mRestoreAllComponents(inRestoreAllComponents) {}
26 
27 DumpRestoreData::DumpRestoreData(const DumpRestoreData& inRhs) : mDumpPath(inRhs.mDumpPath),
28  mFactory(inRhs.mFactory), mRestoreAllComponents(inRhs.mRestoreAllComponents) {}
29 
30 DumpRestoreData::~DumpRestoreData() throw () {}
31 
32 DumpRestoreData& DumpRestoreData::operator =(const DumpRestoreData& inRhs) {
33  if(this != &inRhs) {
34  mDumpPath = inRhs.mDumpPath;
35  mFactory = inRhs.mFactory;
36  mRestoreAllComponents = inRhs.mRestoreAllComponents;
37  }
38  return *this;
39 }
40 
41 } // namespace torc
42 } // namespace generic
43 
44 #endif //GENOM_SERIALIZATION
boost::shared_ptr< ObjectFactory > ObjectFactorySharedPtr
std::string string