109 cmnXMLPathData * Data;
116 virtual ~cmnXMLPath();
120 void SetInputSource(
const char * filename);
121 void SetInputSource(
const std::string & fileName);
126 bool ValidateWithSchema(
const char * filename);
127 bool ValidateWithSchema(
const std::string & fileName);
134 const std::string & GetLastErrors(
void)
const;
138 bool SaveAs(
const char * filename)
const;
139 bool SaveAs(
const std::string & fileName)
const;
143 void PrintValue(std::ostream & out,
const char * context,
const char * XPath);
146 bool Exists(
const char * context);
150 bool GetXMLValue(
const char * context,
const char * XPath,
bool & value);
151 bool GetXMLValue(
const char * context,
const char * XPath,
bool & value,
const bool & valueIfMissing);
152 bool SetXMLValue(
const char * context,
const char * XPath,
const bool & value);
153 bool Query(
const char * query,
bool & value);
158 bool GetXMLValue(
const char * context,
const char * XPath,
int & value);
159 bool GetXMLValue(
const char * context,
const char * XPath,
int & value,
const int & valueIfMissing);
160 bool SetXMLValue(
const char * context,
const char * XPath,
const int & value);
161 bool Query(
const char * query,
int & value);
166 bool GetXMLValue(
const char * context,
const char * XPath,
double & value);
167 bool GetXMLValue(
const char * context,
const char * XPath,
double & value,
const double & valueIfMissing);
168 bool SetXMLValue(
const char * context,
const char * XPath,
const double & value);
169 bool Query(
const char * query,
double & value);
174 bool GetXMLValue(
const char * context,
const char * XPath, std::string & value);
175 bool GetXMLValue(
const char * context,
const char * XPath, std::string & value,
const std::string & valueIfMissing);
176 bool SetXMLValue(
const char * context,
const char * XPath,
const std::string & value);
177 bool Query(
const char * query, std::string & value);
182 bool Exists(
const std::string & context) {
183 return this->Exists(context.c_str());
186 template <
class __elementType>
187 bool GetXMLValue(
const std::string & context,
const std::string & XPath, __elementType & value) {
188 return this->GetXMLValue(context.c_str(), XPath.c_str(), value);
191 template <
class __elementType>
192 bool GetXMLValue(
const std::string & context,
const std::string & XPath, __elementType & value,
const __elementType & valueIfMissing) {
193 return this->GetXMLValue(context.c_str(), XPath.c_str(), value, valueIfMissing);
196 template <
class __elementType>
197 bool SetXMLValue(
const std::string & context,
const std::string & XPath,
const __elementType & value)
199 return this->SetXMLValue(context.c_str(), XPath.c_str(), value);
202 template <
class __elementType>
203 bool Query(
const std::string & query, __elementType & value) {
204 return this->Query(query.c_str(), value);
Base class for high level objects.
Definition cmnGenericObject.h:53
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition cmnClassRegisterMacros.h:113
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Macros to export the symbols of cisstCommonXML (in a Dll).
Defines cmnGenericObject.
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76