Simpatico  v1.10
Serializable.h
1 #ifndef UTIL_SERIALIZABLE_H
2 #define UTIL_SERIALIZABLE_H
3 
4 /*
5 * Util Package - C++ Utilities for Scientific Computation
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 namespace Util
12 {
13 
14  class BinaryFileOArchive;
15  class BinaryFileIArchive;
16 
35  {
36 
37  public:
38 
43 
48 
52  virtual ~Serializable(){};
53 
59  virtual void save(OArchive& ar) = 0;
60 
66  virtual void load(IArchive& ar) = 0;
67 
68  };
69 
70 }
71 #endif
virtual void save(OArchive &ar)=0
Save to an archive.
Saving / output archive for binary ostream.
virtual ~Serializable()
Destructor.
Definition: Serializable.h:52
Utility classes for scientific computation.
Definition: accumulators.mod:1
BinaryFileIArchive IArchive
Type of input archive used by load method.
Definition: Serializable.h:47
BinaryFileOArchive OArchive
Type of output archive used by save method.
Definition: Serializable.h:42
Saving archive for binary istream.
virtual void load(IArchive &ar)=0
Load from an archive.
Abstract class for serializable objects.
Definition: Serializable.h:34