Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixHDF5
Commits
04de150b
Commit
04de150b
authored
Dec 08, 2020
by
Pierre Aubert
Browse files
Add method to set the hdf5 name of the Table
parent
97f7484e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/BackEnd/backend.cpp
src/BackEnd/backend.cpp
+4
-4
No files found.
src/BackEnd/backend.cpp
View file @
04de150b
...
...
@@ -362,7 +362,7 @@ std::string ph5_backendTableSourceRead(const PTable & table){
body
+=
"/**
\t
@param file : HDF5 file to be used
\n
"
;
body
+=
"*/
\n
"
;
body
+=
"void "
+
name
+
"::read(const H5::H5File & file){
\n
"
;
body
+=
"
\t
H5::DataSet dataset = file.openDataSet(
\"
"
+
table
.
getDataSetName
()
+
"
\"
);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = file.openDataSet(
p__
table
Name
);
\n
"
;
body
+=
"
\t
readDataSet(dataset);
\n
"
;
body
+=
"}
\n\n
"
;
...
...
@@ -370,7 +370,7 @@ std::string ph5_backendTableSourceRead(const PTable & table){
body
+=
"/**
\t
@param group : HDF5 group to be used
\n
"
;
body
+=
"*/
\n
"
;
body
+=
"void "
+
name
+
"::read(const H5::Group & group){
\n
"
;
body
+=
"
\t
H5::DataSet dataset = group.openDataSet(
\"
"
+
table
.
getDataSetName
()
+
"
\"
);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = group.openDataSet(
p__
table
Name
);
\n
"
;
body
+=
"
\t
readDataSet(dataset);
\n
"
;
body
+=
"}
\n\n
"
;
return
body
;
...
...
@@ -397,7 +397,7 @@ std::string ph5_backendTableSourceWrite(const PTable & table){
body
+=
"
\t
hsize_t dim[1];
\n
"
;
body
+=
"
\t
dim[0] = p__nbRow;
\n
"
;
body
+=
"
\t
H5::DataSpace space(1, dim);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = file.createDataSet(
\"
p__tableName
\"
, getCompTypeAll(), space);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = file.createDataSet(p__tableName, getCompTypeAll(), space);
\n
"
;
body
+=
"
\t
writeDataSet(dataset);
\n
"
;
body
+=
"}
\n\n
"
;
...
...
@@ -408,7 +408,7 @@ std::string ph5_backendTableSourceWrite(const PTable & table){
body
+=
"
\t
hsize_t dim[1];
\n
"
;
body
+=
"
\t
dim[0] = p__nbRow;
\n
"
;
body
+=
"
\t
H5::DataSpace space(1, dim);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = group.createDataSet(
\"
p__tableName
\"
, getCompTypeAll(), space);
\n
"
;
body
+=
"
\t
H5::DataSet dataset = group.createDataSet(p__tableName, getCompTypeAll(), space);
\n
"
;
body
+=
"
\t
writeDataSet(dataset);
\n
"
;
body
+=
"}
\n\n
"
;
return
body
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment