IFEM 90A354
HDF5Reader.h
Go to the documentation of this file.
1// $Id$
2//==============================================================================
12//==============================================================================
13
14#ifndef _HDF5_READER_H
15#define _HDF5_READER_H
16
17#include "HDF5Base.h"
18#include "MatVec.h"
19
20#include <string>
21#include <vector>
22
23
28class HDF5Reader : public HDF5Base
29{
30public:
34 HDF5Reader(const std::string& name, const ProcessAdm& adm);
35
39 bool readVector(const std::string& path, std::vector<int>& vec);
40
44 bool readVector(const std::string& path, std::vector<double>& vec);
45
49 bool readDouble(const std::string& name, double& out);
50
54 bool readString(const std::string& name, std::string& out);
55
59 bool read3DArray(const std::string& name, Matrix3D& data);
60
63 int getFieldSize(const std::string& fieldPath);
64};
65
66#endif
Base class for interacting with HDF5 files.
Global algebraic operations on index 1-based matrices and vectors.
Base class for interacting with HDF5 files.
Definition HDF5Base.h:30
Read data from a HDF5 file.
Definition FieldFunctions.C:28
int getFieldSize(const std::string &fieldPath)
Returns number of patches for a field.
Definition HDF5Reader.C:164
bool readDouble(const std::string &name, double &out)
Reads a single double value.
Definition HDF5Reader.C:86
bool read3DArray(const std::string &name, Matrix3D &data)
Reads a 3D array.
Definition HDF5Reader.C:125
bool readVector(const std::string &path, std::vector< int > &vec)
Reads an integer vector.
Definition HDF5Reader.C:58
bool readString(const std::string &name, std::string &out)
Reads a text string.
Definition HDF5Reader.C:105
Class for administration of MPI processes in IFEM library.
Definition ProcessAdm.h:33