49 #ifndef _HEK_XML_CFG_H 50 #define _HEK_XML_CFG_H 54 #include "rnr/rnrconfig.h" 55 #include "rnr/appkit/Xml.h" 56 #include "rnr/tinyxml/tinyxml.h" 112 const std::string &strXmlFileName=
HekEtcCfg,
113 bool bAllInstances=
false);
130 rc = Xml::loadFile(strXmlFileName);
144 const std::string &strXmlFileName=
HekEtcCfg)
148 if( (rc = Xml::loadFile(strXmlFileName)) == OK )
167 rc = Xml::saveFile(strXmlFileName);
181 const std::string &strXmlFileName=
HekEtcCfg)
187 rc = Xml::saveFile(strXmlFileName);
276 #endif // _HEK_XML_CFG_H const char *const HekSysCfgPath
System configuration search path.
static const int HEK_OK
not an error, success
const char *const HekXsiUrl
xml schema instance url
HekDesc - Hekateros full robotic manipulator descripition class interface.
virtual int setHekDescFromDOM(HekDesc &desc)
Set <b><i>Hekateros</i></b> description for DOM.
virtual int load(HekDesc &desc, const std::string &strSearchPath=HekSysCfgPath, const std::string &strXmlFileName=HekEtcCfg, bool bAllInstances=false)
Load XML file into DOM and set the <b><i>Hekateros</i></b> description.
Hekateros end effector tool description class.
virtual int saveFile(const HekDesc &desc, const std::string &strXmlFileName=HekEtcCfg)
Set DOM from <b><i>Hekateros</i></b> description and save XML file.
std::string m_strElemProdName
product name element name
std::string m_strAttrProdId
product id attribute name
virtual ~HekXmlCfg()
Destructor.
static const int HEK_ECODE_XML
XML error.
virtual int saveFile(const std::string &strXmlFileName=HekEtcCfg)
Save DOM to XML file.
virtual int createTemplateFile(const std::string &strXmlFileName=HekEtcCfg)
Create a template <b><i>Hekateros</i></b> XML configuration file.
std::string m_strElemProdDoF
egrees of freedom element name
const char *const HekXslUrl
xml stylesheet url
HekXmlCfg()
Default constructor.
std::string m_strMajElemEE
end effector major element name
std::string m_strElemProdSize
product size element name
Hekateros robotic arm (manipulator) description class.
virtual int setDOMFromHekDesc(const HekDesc &desc)
Set the DOM from the <b><i>Hekateros</i></b> description.
Hekateros robotic manipulator full description class.
Top-level package include file.
HekXmlCfg <b><i>Hekateros</i></b> XML configuration class.
HekDescEE - Hekateros end effector tool description class interface.
HekDescArm - Hekateros robotic arm description class interface.
int prodSizeToStr(const int val, std::string &str)
Convert product size to string equivalent.
virtual int loadFile(const std::string &strXmlFileName=HekEtcCfg)
Load XML file into DOM.
std::string m_strElemProdHwVer
product hardware version element name
int strToProdSizeCode(const std::string &str, int &val)
Convert string to <b><i>Hekateros</i></b> product size code.
std::string m_strMajElemArm
robotic arm major element name
virtual int setHekEEDescFromDOM(TiXmlElement *pElemMaj, HekDescEE *pDesc)
Set <b><i>Hekateros</i></b> end effector description for DOM.
std::string m_strElemProdBrief
product brief element name
const char *const HekEtcCfg
xml configuration file
virtual int loadFile(HekDesc &desc, const std::string &strXmlFileName=HekEtcCfg)
Load XML file into DOM and set the <b><i>Hekateros</i></b> description.
The <b><i>Hekateros</i></b> namespace encapsulates all <b><i>Hekateros</i></b> related constructs...
virtual int setHekArmDescFromDOM(TiXmlElement *pElemMaj, HekDescArm *pDesc)
Set <b><i>Hekateros</i></b> robotic base description from the DOM.