HOPS
HOPS class reference
Public Member Functions | Protected Attributes | List of all members
hops::MHO_HDF5ContainerFileInterface Class Reference

Class to convert a HOPS4 file to HDF5. More...

#include <MHO_HDF5ContainerFileInterface.hh>

Inheritance diagram for hops::MHO_HDF5ContainerFileInterface:
[legend]

Public Member Functions

 MHO_HDF5ContainerFileInterface ()
 
virtual ~MHO_HDF5ContainerFileInterface ()
 
int ConvertStoreToHDF5 (MHO_ContainerStore &store, std::string hdf5_filename)
 
void SetGroupPrefix (std::string gp)
 
- Public Member Functions inherited from hops::MHO_ContainerFileInterface
 MHO_ContainerFileInterface ()
 
virtual ~MHO_ContainerFileInterface ()
 
void ConvertObjectInStoreToJSON (MHO_ContainerStore &store, const MHO_UUID &obj_uuid, mho_json &json_obj, int level_of_detail=eJSONBasic)
 Converts a specific object in store to JSON representation at given detail level. More...
 
void ConvertObjectInStoreToJSONAndRaw (MHO_ContainerStore &store, const MHO_UUID &obj_uuid, mho_json &json_obj, std::size_t &rank, const char *&raw_data, std::size_t &raw_data_byte_size, std::string &raw_data_descriptor, int level_of_detail=eJSONBasic)
 Converts an object in store to JSON and raw data, providing access to raw bytes for hops2flat. More...
 
void ConvertStoreToJSON (MHO_ContainerStore &store, mho_json &json_obj, int level_of_detail=eJSONBasic)
 Converts a container store to JSON representation with specified detail level. More...
 
void PopulateStoreFromFile (MHO_ContainerStore &store, bool do_clear_store=false)
 Populates a store from a file, optionally clearing it first. More...
 
void SetFilename (std::string filename)
 Setter for filename. More...
 
void SetIndexFileName (std::string index_filename)
 Setter for index file name. More...
 
void WriteStoreToFile (MHO_ContainerStore &store)
 Writes object in a MHO_ContainerStore to file using MHO_BinaryFileInterface and factory map. More...
 
- Public Member Functions inherited from hops::MHO_ContainerDictionary
 MHO_ContainerDictionary ()
 
virtual ~MHO_ContainerDictionary ()
 
- Public Member Functions inherited from hops::MHO_ClassIdentityMap
 MHO_ClassIdentityMap ()
 
virtual ~MHO_ClassIdentityMap ()
 
template<typename XClassType >
void AddClassType ()
 Function AddClassType, adds a class of a particular type to the identity map. More...
 
template<typename XClassType >
void AddClassType (const XClassType &obj)
 Function AddClassType, overload provided for passing object reference. More...
 
MHO_SerializableGenerateContainerFromUUID (const MHO_UUID &uuid)
 Generates a container from a UUID and returns a ptr to MHO_Serializable if found in factory map. More...
 
template<typename XClassType >
std::string GetClassNameFromObject (const XClassType &obj)
 Getter for class name from object. More...
 
std::string GetClassNameFromUUID (const MHO_UUID &uuid) const
 Getter for class name from uuid. More...
 
template<typename XClassType >
MHO_UUID GetUUIDFor () const
 Getter for uuid for a class type. More...
 
MHO_UUID GetUUIDFromClassName (const std::string &name) const
 Getter for uuid from class name. More...
 
bool IsTypePresent (const MHO_UUID &uuid) const
 Checks if a UUID is present in the class name map. More...
 
- Public Member Functions inherited from hops::MHO_HDF5ConverterDictionary
 MHO_HDF5ConverterDictionary ()
 
virtual ~MHO_HDF5ConverterDictionary ()
 
template<typename XClassType >
void AddHDF5ClassType ()
 

Protected Attributes

std::string fGroupPrefix
 
- Protected Attributes inherited from hops::MHO_ClassIdentityMap
std::map< std::string, MHO_UUIDfClassName2UUID
 
std::map< MHO_UUID, MHO_SerializableObjectFactory * > fFactoryMap
 
std::map< MHO_UUID, MHO_JSONConverter * > fJSONConverterMap
 
MHO_MD5HashGenerator fMD5Generator
 
std::map< MHO_UUID, std::string > fUUID2ClassName
 
- Protected Attributes inherited from hops::MHO_HDF5ConverterDictionary
std::map< MHO_UUID, MHO_HDF5Converter * > fHDF5ConverterMap
 
MHO_MD5HashGenerator fMD5Generator
 

Additional Inherited Members

- Protected Member Functions inherited from hops::MHO_ClassIdentityMap
void AddToMap (const MHO_UUID &type_uuid, const std::string &name)
 Adds an entry to the UUID-name map and its reverse map. More...
 

Detailed Description

Class to convert a HOPS4 file to HDF5.

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
Date
Fri May 16 10:42:52 AM EDT 2025

Constructor & Destructor Documentation

◆ MHO_HDF5ContainerFileInterface()

hops::MHO_HDF5ContainerFileInterface::MHO_HDF5ContainerFileInterface ( )
inline

◆ ~MHO_HDF5ContainerFileInterface()

virtual hops::MHO_HDF5ContainerFileInterface::~MHO_HDF5ContainerFileInterface ( )
inlinevirtual

Member Function Documentation

◆ ConvertStoreToHDF5()

int hops::MHO_HDF5ContainerFileInterface::ConvertStoreToHDF5 ( MHO_ContainerStore store,
std::string  hdf5_filename 
)

◆ SetGroupPrefix()

void hops::MHO_HDF5ContainerFileInterface::SetGroupPrefix ( std::string  gp)
inline

Member Data Documentation

◆ fGroupPrefix

std::string hops::MHO_HDF5ContainerFileInterface::fGroupPrefix
protected

The documentation for this class was generated from the following files: