source: src/Potentials/PotentialSerializer.hpp@ 97dff0

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: 736 bytes
Line 
1/*
2 * PotentialSerializer.hpp
3 *
4 * Created on: 09.05.2013
5 * Author: heber
6 */
7
8#ifndef POTENTIALSERIALIZER_HPP_
9#define POTENTIALSERIALIZER_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include <iosfwd>
17
18class PotentialSerializer
19{
20public:
21 /** Constructor for class PotentialSerializer.
22 *
23 */
24 PotentialSerializer(std::ostream &_to_serialize) :
25 to_serialize(_to_serialize)
26 {}
27
28 /** Destructor for class PotentialSerializer.
29 *
30 */
31 ~PotentialSerializer()
32 {}
33
34 /** Function to stream all potentials present in PotentialRegistry to
35 * internally stored stream.
36 *
37 */
38 void operator()();
39
40private:
41 std::ostream &to_serialize;
42};
43
44#endif /* POTENTIALSERIALIZER_HPP_ */
Note: See TracBrowser for help on using the repository browser.