template<typename T > void add (const char *str, const char *inHelp=0, const char *inDefValue=0, bool mandatory=true)
Add the variable of type T and name str in the structure.
bool hasField (std::string)
Returns if a name field exists. Iterator< std::pair< std::string, std::string > > * getField () const
Get iterator on structure fields.
std::string getHelp (std::string str) const
Get field help & default string-value (see also XXXType in Types.h).
std::string getDefValue (std::string str) const
bool isMandatory (std::string str) const
Return if field is mandatory.
void erase (std::string str)
Remove the variable which have str has name in the structure.
void buildDefaultDataSet (DataSet &ioDataSet, Graph *inG=0)
Add the variable of type T and name str in the structure.
void tlp::StructDef::buildDefaultDataSet (DataSet & ioDataSet, Graph * inG = 0)Build a default dataSet according to fields The optional Graph is needed to create properties (PropertyInterface*)
void tlp::StructDef::erase (std::string str)
Remove the variable which have str has name in the structure.