Commit 9e7b83ee authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add getter of full attribute row

parent 95f2e536
Pipeline #94140 failed with stages
in 2 minutes and 17 seconds
......@@ -99,6 +99,8 @@ std::string ph5_backendTableHeaderGetter(PTable & table){
PVecAttribute & vecAttriute = table.getVecAttribute();
for(PVecAttribute::iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
body += "\t\tconst "+type+" * get" + firstToUpper(it->getName()) + "Full() const;\n";
body += "\t\t"+type+" * get" + firstToUpper(it->getName()) + "Full();\n";
if(ph5_attributeIsTensor(*it)){
body += "\t\tconst "+type+" * get" + firstToUpper(it->getName()) + "(size_t i) const;\n";
body += "\t\t"+type+" * get" + firstToUpper(it->getName()) + "(size_t i);\n";
......@@ -529,6 +531,18 @@ std::string ph5_backendTableSourceGetter(PTable & table){
PVecAttribute & vecAttriute = table.getVecAttribute();
for(PVecAttribute::iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
std::string docStringFull("");
docStringFull += "///Get the full column of the attribute "+it->getName()+" (column "+it->getColName()+")\n";
docStringFull += "/**\t@return pointer og hte full column\n";
docStringFull += "*/\n";
body += docStringFull;
body += "const "+type+" * " + name + "::get" + firstToUpper(it->getName()) + "Full(size_t i) const{\n";
body += "\treturn p_"+it->getName()+";\n";
body += "}\n\n";
body += docStringFull;
body += type+" * " + name + "::get" + firstToUpper(it->getName()) + "Full(size_t i){\n";
body += "\treturn p_"+it->getName()+";\n";
body += "}\n\n";
if(ph5_attributeIsTensor(*it)){
std::string docString("");
docString += "///Get the tensor i of the attribute "+it->getName()+" (column "+it->getColName()+")\n";
......
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