Last change
on this file since 97dff0 was c5e63a, checked in by Frederik Heber <heber@…>, 12 years ago |
Added De(serializer) functors for instanting potentials from stream info.
|
-
Property mode
set to
100644
|
File size:
707 bytes
|
Rev | Line | |
---|
[c5e63a] | 1 | /*
|
---|
| 2 | * PotentialDeserializer.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: 09.05.2013
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef POTENTIALDESERIALIZER_HPP_
|
---|
| 9 | #define POTENTIALDESERIALIZER_HPP_
|
---|
| 10 |
|
---|
| 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 | #include <iosfwd>
|
---|
| 17 |
|
---|
| 18 | class PotentialDeserializer
|
---|
| 19 | {
|
---|
| 20 | public:
|
---|
| 21 | /** Constructor for class PotentialDeserializer.
|
---|
| 22 | *
|
---|
| 23 | */
|
---|
| 24 | PotentialDeserializer(std::istream &_serialized) :
|
---|
| 25 | serialized(_serialized)
|
---|
| 26 | {}
|
---|
| 27 |
|
---|
| 28 | /** Destructor for class PotentialDeserializer.
|
---|
| 29 | *
|
---|
| 30 | */
|
---|
| 31 | ~PotentialDeserializer()
|
---|
| 32 | {}
|
---|
| 33 |
|
---|
| 34 | /** Parses the internally stored input stream for potentials.
|
---|
| 35 | *
|
---|
| 36 | */
|
---|
| 37 | void operator()();
|
---|
| 38 |
|
---|
| 39 | private:
|
---|
| 40 | std::istream &serialized;
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | #endif /* POTENTIALDESERIALIZER_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.