-
Notifications
You must be signed in to change notification settings - Fork 2
/
h5cgnsparticlesolution.h
56 lines (41 loc) · 1.69 KB
/
h5cgnsparticlesolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef H5CGNSPARTICLESOLUTION_H
#define H5CGNSPARTICLESOLUTION_H
#include "iriclib_global.h"
#include "h5cgnssolutioni.h"
#include "h5util.h"
#include <hdf5.h>
#include <string>
#include <vector>
namespace iRICLib {
class H5CgnsZone;
class IRICLIBDLL H5CgnsParticleSolution : public H5CgnsSolutionI
{
public:
H5CgnsParticleSolution(const std::string& name, hid_t groupId, H5CgnsZone* zone);
~H5CgnsParticleSolution();
std::string name() const;
int count(int* count);
int readValueNames(std::vector<std::string>* names) const override;
int readValueNames(std::unordered_set<std::string>* names) const override;
int readCoordinatesX(std::vector<double>* values) const;
int readCoordinatesY(std::vector<double>* values) const;
int readCoordinatesZ(std::vector<double>* values) const;
int readValueType(const std::string& name, H5Util::DataArrayValueType *type) const override;
int readValue(const std::string& name, std::vector<double>* values) const override;
int readValue(const std::string& name, std::vector<int>* values) const override;
int readValueAsDouble(const std::string& name, std::vector<double>* values) const override;
int writeCoordinatesX(const std::vector<double>& coords) const;
int writeCoordinatesY(const std::vector<double>& coords) const;
int writeCoordinatesZ(const std::vector<double>& coords) const;
int writeValue(const std::string& name, const std::vector<double>& values) const;
int writeValue(const std::string& name, const std::vector<int>& values) const;
H5CgnsZone* zone() const override;
private:
class Impl;
Impl* impl;
};
} // namespace iRICLib
#ifdef _DEBUG
#include "private/h5cgnsparticlesolution_impl.h"
#endif // _DEBUG
#endif // H5CGNSPARTICLESOLUTION_H