PSCF v1.1
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
11namespace 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
Saving archive for binary istream.
Saving / output archive for binary ostream.
Abstract class for serializable objects.
Definition: Serializable.h:35
virtual ~Serializable()
Destructor.
Definition: Serializable.h:52
virtual void load(IArchive &ar)=0
Load from an archive.
virtual void save(OArchive &ar)=0
Save to an archive.
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
Utility classes for scientific computation.
Definition: accumulators.mod:1