HOPS
HOPS class reference
MHO_HDF5ConverterDictionary.hh
Go to the documentation of this file.
1 #ifndef MHO_HDF5ConverterDictionary_HH__
2 #define MHO_HDF5ConverterDictionary_HH__
3 
4 #include "MHO_Axis.hh"
5 #include "MHO_AxisPack.hh"
6 #include "MHO_ObjectTags.hh"
7 #include "MHO_ScalarContainer.hh"
8 #include "MHO_TableContainer.hh"
9 #include "MHO_VectorContainer.hh"
10 
11 #include "MHO_UUID.hh"
12 #include "MHO_MD5HashGenerator.hh"
14 
15 // #include "MHO_ClassIdentityMap.hh"
16 // #include "MHO_ContainerDictionary.hh"
17 
18 namespace hops
19 {
20 
30 {
31  public:
32 
35  {
36  for(auto it = fHDF5ConverterMap.begin(); it != fHDF5ConverterMap.end(); it++)
37  {
38  delete it->second;
39  }
40  };
41 
42  template< typename XClassType > void AddHDF5ClassType()
43  {
45  std::string name = MHO_ClassIdentity::ClassName< XClassType >();
46  fMD5Generator << name;
49 
50  auto it2 = fHDF5ConverterMap.find(type_uuid);
51  if(it2 == fHDF5ConverterMap.end())
52  {
54  }
55  };
56 
57  protected:
58 
60  std::map< MHO_UUID, MHO_HDF5Converter* > fHDF5ConverterMap;
61 };
62 
63 } // namespace hops
64 
65 #endif
Converts a given ndarray-based container into a HDF5 representation - export only for now.
Definition: MHO_ContainerHDF5Converter.hh:56
Dictionary of objects which do the conversion to HDF5 for each type.
Definition: MHO_HDF5ConverterDictionary.hh:30
MHO_HDF5ConverterDictionary()
Definition: MHO_HDF5ConverterDictionary.cc:35
virtual ~MHO_HDF5ConverterDictionary()
Definition: MHO_HDF5ConverterDictionary.hh:34
MHO_MD5HashGenerator fMD5Generator
Definition: MHO_HDF5ConverterDictionary.hh:55
void AddHDF5ClassType()
Definition: MHO_HDF5ConverterDictionary.hh:42
std::map< MHO_UUID, MHO_HDF5Converter * > fHDF5ConverterMap
Definition: MHO_HDF5ConverterDictionary.hh:60
Class MHO_MD5HashGenerator declares the concrete class which does the work for file streams.
Definition: MHO_MD5HashGenerator.hh:135
void Finalize()
Finalizes the MD5 hash calculation and stores the result in fDigest.
Definition: MHO_MD5HashGenerator.hh:156
MHO_UUID GetDigestAsUUID()
Getter for digest as uuid.
Definition: MHO_MD5HashGenerator.hh:182
void Initialize()
Recursive function to initialize a game state.
Definition: MHO_MD5HashGenerator.hh:144
Class MHO_UUID - a class for a 16 byte UUID (for object and type identification)
Definition: MHO_UUID.hh:27
Definition: MHO_ChannelLabeler.hh:17