codac
codac_serialize_tubes.h
Go to the documentation of this file.
1 
12 #ifndef __CODAC_SERIALIZ_TUBES_H__
13 #define __CODAC_SERIALIZ_TUBES_H__
14 
15 #include <fstream>
16 
17 namespace codac
18 {
19  #define SERIALIZATION_VERSION 2
20 
21  class Tube;
22  class TubeVector;
23 
26 
48  void serialize_Tube(std::ofstream& bin_file, const Tube& tube, int version_number = SERIALIZATION_VERSION);
49 
58  void deserialize_Tube(std::ifstream& bin_file, Tube *&tube);
59 
63 
77  void serialize_TubeVector(std::ofstream& bin_file, const TubeVector& tube, int version_number = SERIALIZATION_VERSION);
78 
87  void deserialize_TubeVector(std::ifstream& bin_file, TubeVector *&tube);
88 
90 }
91 
92 #endif
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition: codac_capd_helpers.h:9
void serialize_TubeVector(std::ofstream &bin_file, const TubeVector &tube, int version_number=SERIALIZATION_VERSION)
Writes a TubeVector object into a binary file.
void deserialize_TubeVector(std::ifstream &bin_file, TubeVector *&tube)
Creates a TubeVector object from a binary file.
void serialize_Tube(std::ofstream &bin_file, const Tube &tube, int version_number=SERIALIZATION_VERSION)
Writes a Tube object into a binary file (version 2)
void deserialize_Tube(std::ifstream &bin_file, Tube *&tube)
Creates a Tube object from a binary file.