49 #ifndef _LAE_XML_CFG_H 50 #define _LAE_XML_CFG_H 54 #include "rnr/rnrconfig.h" 55 #include "rnr/appkit/Xml.h" 56 #include "rnr/tinyxml/tinyxml.h" 104 const std::string &strSearchPath,
105 const std::string &strXmlFileName,
106 bool bAllInstances=
false);
130 const std::string &strXmlFileName=
LaeEtcCfg);
150 const std::string &strXmlFileName=
LaeEtcCfg);
214 setErrorMsg(
"%s: Element <%s> unknown - ignoring.",
215 m_strXmlFileName.c_str(), strElem.c_str());
216 LOGWARN(
"%s", m_bufErrMsg);
223 #endif // _LAE_XML_CFG_H virtual int setDOMFromDesc(const LaeDesc &desc)
Set the DOM from the <b><i>Laelaps</i></b> description.
virtual int setDescFromDOM(LaeDesc &desc)
Set <b><i>Laelaps</i></b> description for DOM.
std::string m_strMajElemOptions
package options major element name
Laelaps robotic mobile platform full description class.
virtual int loadFile(const std::string &strXmlFileName=LaeEtcCfg)
Load XML file into DOM.
void warnUnknownElem(const std::string &strElem)
Warn on unknown element.
LaeXmlCfg()
Default constructor.
virtual int saveFile(const std::string &strXmlFileName=LaeEtcCfg)
Save DOM to XML file.
const char *const LaeEtcCfg
xml configuration file
The <b><i>Laelaps</i></b> namespace encapsulates all <b><i>Laelaps</i></b> related constructs...
Laelaps robotic base mobile platform description class interface.
const char *const LaeXsiUrl
xml schema instance url
virtual int createTemplateFile(const std::string &strXmlFileName=LaeEtcCfg)
Create a template <b><i>Laelaps</i></b> XML configuration file. root element.
const char *const LaeXslUrl
xml stylesheet url
virtual ~LaeXmlCfg()
Destructor.
virtual int setBaseDesc(TiXmlElement *pElemMaj, LaeDesc &desc)
Set <b><i>Laelaps</i></b> robotic base description for DOM.
virtual int setOptionsDesc(TiXmlElement *pElemMaj, LaeDesc &desc)
Set <b><i>Laelaps</i></b> package options descriptions for DOM.
virtual int load(LaeDesc &desc, const std::string &strSearchPath, const std::string &strXmlFileName, bool bAllInstances=false)
Load XML file into DOM and set the <b><i>Laelaps</i></b> description.
std::string m_strMajElemBase
robotic base major element name
Top-level package include file.
LaeXmlCfg <b><i>Laelaps</i></b> XML configuration class.