13 #include <vapor/XmlNode.h>
48 const string &tag,
const map<string, string> &attrs,
49 size_t numChildrenHint = 0
54 size_t numChildrenHint = 0
65 const string &tag,
const map<string, string> &attrs,
66 size_t numChildrenHint = 0
67 ) {
return(
new ParamNode(tag, attrs, numChildrenHint)); }
113 int SetElementDouble(
114 const string &tag,
double value
128 int SetElementDouble(
129 const string &tag,
const vector<double> &values
143 int SetElementDouble(
144 const vector<string> &tagpath,
const vector<double> &values
159 virtual const vector<double> GetElementDouble(
const vector<string> &tagpath,
const vector<double>& defaultVal = XmlNode::_emptyDoubleVec );
173 virtual const vector<double> GetElementDouble(
const string &tag,
const vector<double>& defaultVal = XmlNode::_emptyDoubleVec);
176 const string &tag,
const vector<long> &values
191 const string &tag,
long value
206 const vector<string> &tagpath,
const vector<long> &values
221 virtual const vector<long> GetElementLong(
const vector<string> &tagpath,
const vector<long>& defaultVal = XmlNode::_emptyLongVec);
234 virtual const vector<long> GetElementLong(
const string &tag,
const vector<long>& defaultVal= XmlNode::_emptyLongVec);
249 int SetElementString(
250 const string &tag,
const string &value
264 int SetElementString(
265 const vector<string> &tagpath,
const string &value
280 int SetElementStringVec(
const string &tag,
const vector<string> &values);
294 int SetElementStringVec(
const vector<string> &tagpath,
const vector<string> &values);
309 virtual const string GetElementString(
const string &tag,
const string& defaultVal = XmlNode::_emptyString);
323 virtual const string GetElementString(
const vector<string> &tagpath,
const string& defaultVal = XmlNode::_emptyString );
337 virtual void GetElementStringVec(
const vector<string> &tagpath, vector <string> &vec,
const vector<string>& defaultVal = _emptyStringVec) ;
350 virtual void GetElementStringVec(
const string &tag, vector <string> &vec,
const vector<string>& defaultVal = _emptyStringVec);
365 int AddNode(
const string& tag,
ParamNode* child);
382 int InsertNode(
const string& tag,
ParamNode* child,
int index);
399 int AddNode(
const vector<string>& tagpath,
ParamNode* child);
423 ParamNode *GetNode(
const vector<string> &tagpath);
449 int ReplaceNode(
const vector<string> &tagpath,
ParamNode* newNode);
458 int ReplaceNode(
const string &tag,
ParamNode* newNode);
465 int DeleteNode(
const string &tag);
473 int DeleteNode(
const vector<string> &tagpath);
480 int DeleteChildren(
const string &tag);
488 int DeleteChildren(
const vector<string> &tagpath);
511 #ifndef DOXYGEN_SKIP_THIS
512 static const string _paramsBaseAttr;
513 static const string _paramNodeAttr;
516 static const string _typeAttr;
519 vector<long> _longvec;
520 vector<double>_doublevec;
523 #endif //DOXYGEN_SKIP_THIS
528 #endif // _ParamNode_h_
ParamsBase * GetParamsBase() const
Nodes with state in Xml tree representation.
ParamNode * GetNode(const string &tag) const
void SetParamsBase(ParamsBase *pBase)
virtual ParamNode * Construct(const string &tag, const map< string, string > &attrs, size_t numChildrenHint=0)
ParamNode * GetChild(size_t index) const