FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
HDF5VLenCreator.hpp
1#ifndef __FIBER_HDF5VLENCREATOR_HPP
2#define __FIBER_HDF5VLENCREATOR_HPP
3
4#include <F5/F5R.h>
5#include <F5/F5private.h>
6#include <field/MemArray.hpp>
7#include <field/CreativeArray.hpp>
8#include "TypeRegistry.hpp"
9
10#include <memcore/Loader.hpp>
11
12namespace Fiber
13{
14
19class HDF5VLenCreator : public Creator<MemBase, CreativeArrayBase>
20{
21protected:
22 hid_t dataset_id;
23
24public:
29 string path_info;
30
32
38
39
43
45
46 /*
47 TODO: Support full asynchronity here!
48 Derive from HDF5CreatorBase instead.
49 */
50
51 bool request(const result&R) override
52 {
53#warning "Asynchroneous VLen Creator not implemented!"
54 create();
55 return true;
56 }
57
58 bool isUnderCreation() const override
59 {
60 return false;
61 }
62
63 bool discardCreation() override
64 {
65 return false;
66 }
67};
68
69
74class HDF5stringCreator : public Creator<MemBase, CreativeArrayBase>
75{
76protected:
77 hid_t dataset_id;
78 hid_t dtype_id;
79public:
84 string path_info;
85
87
91 HDF5stringCreator(const RefPtr<SizeInterface>&SI, const RefPtr<LoaderProgress>&BLP, hid_t frag_id, hid_t type_class_id,
93
95
96 /*
97 TODO: Support full asynchronity here!
98 Derive from HDF5CreatorBase instead.
99 */
100
101 bool request(const result&R) override
102 {
103#warning "Asynch HDF5 String Creator not implemented"
104 create();
105 return true;
106 }
107
108 bool isUnderCreation() const override
109 {
110 return false;
111 }
112
113 bool discardCreation() override
114 {
115 return false;
116 }
117
118 const type_info&getType();
119 RefPtr<MemBase> produce() override;
120 Creature::ReasonForReleasal release();
121 bool load(vector<string> &data);
122
123};
124
125} // namespace Fiber
126
127
128#endif // __FIBER_HDF5VLENCREATOR_HPP
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Deferred creation of MemBase objects that contain vectors of data per element from an HDF5 file.
Definition HDF5VLenCreator.hpp:20
string path_info
Some textual information about this dataset, to be displayed in a progress/status bar if part of a GU...
Definition HDF5VLenCreator.hpp:29
Deferred creation of MemBase objects that contain vectors of data per element from an HDF5 file.
Definition HDF5VLenCreator.hpp:75
string path_info
Some textual information about this dataset, to be displayed in a progress/status bar if part of a GU...
Definition HDF5VLenCreator.hpp:84
Creature::ReasonForReleasal release()
Implemented from Creature::release() : Free all memory associated with the object.
Definition HDF5VLenCreator.cpp:215
static RefPtr< Cache, CacheBase > & MemCache()
RefPtr< Domain > create(bool CreateAsOld=false)
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2