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

Commit 75b251f5 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add getter and setter for a full row

parent f746278b
......@@ -52,6 +52,22 @@ std::string ph5_backendTableHeaderRowSetterGetter(const PTable & table){
body += " " + it->getName();
}
body += ");\n";
body += "\t\tvoid getRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
body += ", ";
if(ph5_attributeIsTensor(*it)){
body += "const ";
}
body += type + " ";
if(ph5_attributeIsTensor(*it)){
body += "*&";
}else{
body += "&";
}
body += " " + it->getName();
}
body += ") const;\n";
return body;
}
......@@ -367,7 +383,7 @@ std::string ph5_backendTableSourceRowSetterGetter(const PTable & table){
body += "\tset" + firstToUpper(it->getName()) + "(i, "+it->getName()+");\n";
}
body += "}\n\n";
body += "\t\tvoid "+name+"::getRow(size_t i";
body += "void "+name+"::getRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
body += ", " + type + " ";
......@@ -383,6 +399,27 @@ std::string ph5_backendTableSourceRowSetterGetter(const PTable & table){
body += "\t"+it->getName()+" = get" + firstToUpper(it->getName()) + "(i);\n";
}
body += "}\n\n";
body += "void "+name+"::getRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
body += ", ";
if(ph5_attributeIsTensor(*it)){
body += "const ";
}
body += type + " ";
if(ph5_attributeIsTensor(*it)){
body += "*&";
}else{
body += "&";
}
body += " " + it->getName();
}
body += ") const{\n";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
body += "\t"+it->getName()+" = get" + firstToUpper(it->getName()) + "(i);\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