54 #ifndef _KUON_XML_CFG_H 55 #define _KUON_XML_CFG_H 59 #include "rnr/rnrconfig.h" 60 #include "rnr/appkit/Xml.h" 61 #include "rnr/tinyxml/tinyxml.h" 113 virtual int loadFile(
const std::string &strXmlFileName=KuonEtcCfg)
117 rc = Xml::loadFile(strXmlFileName);
131 const std::string &strXmlFileName=KuonEtcCfg)
135 if( (rc = Xml::loadFile(strXmlFileName)) == OK )
150 virtual int saveFile(
const std::string &strXmlFileName=KuonEtcCfg)
154 rc = Xml::saveFile(strXmlFileName);
168 const std::string &strXmlFileName=KuonEtcCfg)
174 rc = Xml::saveFile(strXmlFileName);
191 const std::string &strXmlFileName=KuonEtcCfg);
234 #endif // _KUON_XML_CFG_H const char *const KuonXsiUrl
xml schema instance url
virtual int setKuonBaseDescFromDOM(TiXmlElement *pElemMaj, KuonDescBase *pDesc)
Set <b><i>Kuon</i></b> robotic base platform description for DOM.
static const int KUON_OK
not an error, success
Kuon robotic mobile base escription class.
static const int KUON_ECODE_XML
XML error.
virtual ~KuonXmlCfg()
Destructor.
virtual int loadFile(KuonDesc &desc, const std::string &strXmlFileName=KuonEtcCfg)
Load XML file into DOM and set the <b><i>Kuon</i></b> description.
Kuon robotic base mobile platform description class interface.
std::string m_strElemProdFrontTire
front tire radius element name
KuonXmlCfg <b><i>Kuon</i></b> XML configuration class.
The <b><i>Kuon</i></b> namespace encapsulates all <b><i>Kuon</i></b> related constructs.
std::string m_strElemProdRearTire
rear tire radius element name
virtual int loadFile(const std::string &strXmlFileName=KuonEtcCfg)
Load XML file into DOM.
virtual int setKuonDescFromDOM(KuonDesc &desc)
Set <b><i>Kuon</i></b> description for DOM.
RoadNarrows Kuon robot top-level header file.
virtual int createTemplateFile(const std::string &strXmlFileName=KuonEtcCfg)
Create a template <b><i>Kuon</i></b> XML configuration file. root element.
std::string m_strElemProdName
product name element name
const char *const KuonXslUrl
xml configuration file
Kuon robotic manipulator full description class.
std::string m_strMajElemBase
robotic base major element name
std::string m_strElemProdBrief
product brief element name
std::string m_strAttrProdId
product id attribute name
virtual int saveFile(const std::string &strXmlFileName=KuonEtcCfg)
Save DOM to XML file.
virtual int setDOMFromKuonDesc(const KuonDesc &desc)
Set the DOM from the <b><i>Kuon</i></b> description.
virtual int saveFile(const KuonDesc &desc, const std::string &strXmlFileName=KuonEtcCfg)
Set DOM from <b><i>Kuon</i></b> description and save XML file.
KuonXmlCfg()
Default constructor.
std::string m_strElemProdHwVer
product hardware version element name