Object-oriented Scientific Computing Library: Version 0.910
Data Structures | Functions
hdf_io.h File Reference

File for HDF I/O for table and table3d. More...

#include <hdf5.h>
#include <o2scl/table.h>
#include <o2scl/table_units.h>
#include <o2scl/table3d.h>
#include <o2scl/constants.h>
#include <o2scl/hist.h>
#include <o2scl/hist_2d.h>
#include <o2scl/tensor.h>
#include <o2scl/hdf_file.h>

Go to the source code of this file.


Detailed Description

Definition in file hdf_io.h.

Data Structures

struct  iterate_parms
 A structure to pass information to and from iterate_func() More...

Functions

int hdf_output (hdf_file &hf, const o2scl::table &t, std::string name)
 Output a table to a HDF file.
int hdf_input (hdf_file &hf, o2scl::table &t, std::string name="")
 Input a table from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::table_units &t, std::string name)
 Output a table_units to a HDF file.
int hdf_input (hdf_file &hf, o2scl::table_units &t, std::string name="")
 Input a table_units from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::table3d &t, std::string name)
 Output a table3d to a HDF file.
int hdf_input (hdf_file &hf, o2scl::table3d &t, std::string name="")
 Input a table3d from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::hist &t, std::string name)
 Output a hist to a HDF file.
int hdf_input (hdf_file &hf, o2scl::hist &t, std::string name="")
 Input a hist from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::hist_2d &t, std::string name)
 Output a hist_2d to a HDF file.
int hdf_input (hdf_file &hf, o2scl::hist_2d &t, std::string name="")
 Input a hist_2d from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::tensor &t, std::string name)
 Output a tensor to a HDF file.
int hdf_input (hdf_file &hf, o2scl::tensor &t, std::string name="")
 Input a tensor from a HDF file.
int hdf_output (hdf_file &hf, const o2scl::tensor_grid &t, std::string name)
 Output a tensor to a HDF file.
int hdf_input (hdf_file &hf, o2scl::tensor_grid &t, std::string name="")
 Input a tensor from a HDF file.
Helper struct and functions
int iterate_func (hid_t loc, const char *name, const H5L_info_t *inf, void *op_data)
 Look at location loc in an HDF file for an O2scl object.
int find_group_by_type (hdf_file &hf, std::string type, std::string &group_name, int verbose=0)
 Look in hdf_file hf for an O2scl object of type type and if found, set group_name to the associated object name.

Function Documentation

int hdf_output ( hdf_file hf,
const o2scl::table_units &  t,
std::string  name 
)

The unit conversion object, as specified in table_units::set_convert() is not written to the HDF file. Thus when a table_units object is read from a file, it always uses the default unit conversion object.

int hdf_input ( hdf_file hf,
o2scl::table_units &  t,
std::string  name = "" 
)

The unit conversion object, as specified in table_units::set_convert() is not written to the HDF file. Thus when a table_units object is read from a file, it always uses the default unit conversion object.

int iterate_func ( hid_t  loc,
const char *  name,
const H5L_info_t *  inf,
void *  op_data 
)

This is used by find_group_by_type() where op_data is a pointer to an object of type iterate_parms to look for O2scl objects of a specified type without knowing the group name.

int find_group_by_type ( hdf_file hf,
std::string  type,
std::string &  group_name,
int  verbose = 0 
)

This function returns 1 if an object of type type is found and 0 if it fails.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.