Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 04de150b authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add method to set the hdf5 name of the Table

parent 97f7484e
......@@ -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 += "\tH5::DataSet dataset = file.openDataSet(\""+table.getDataSetName()+"\");\n";
body += "\tH5::DataSet dataset = file.openDataSet(p__tableName);\n";
body += "\treadDataSet(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 += "\tH5::DataSet dataset = group.openDataSet(\""+table.getDataSetName()+"\");\n";
body += "\tH5::DataSet dataset = group.openDataSet(p__tableName);\n";
body += "\treadDataSet(dataset);\n";
body += "}\n\n";
return body;
......@@ -397,7 +397,7 @@ std::string ph5_backendTableSourceWrite(const PTable & table){
body += "\thsize_t dim[1];\n";
body += "\tdim[0] = p__nbRow;\n";
body += "\tH5::DataSpace space(1, dim);\n";
body += "\tH5::DataSet dataset = file.createDataSet(\"p__tableName\", getCompTypeAll(), space);\n";
body += "\tH5::DataSet dataset = file.createDataSet(p__tableName, getCompTypeAll(), space);\n";
body += "\twriteDataSet(dataset);\n";
body += "}\n\n";
......@@ -408,7 +408,7 @@ std::string ph5_backendTableSourceWrite(const PTable & table){
body += "\thsize_t dim[1];\n";
body += "\tdim[0] = p__nbRow;\n";
body += "\tH5::DataSpace space(1, dim);\n";
body += "\tH5::DataSet dataset = group.createDataSet(\"p__tableName\", getCompTypeAll(), space);\n";
body += "\tH5::DataSet dataset = group.createDataSet(p__tableName, getCompTypeAll(), space);\n";
body += "\twriteDataSet(dataset);\n";
body += "}\n\n";
return body;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment