![]() |
Hekateros
3.4.3
RoadNarrows Robotics Robot Arm Project
|
HekXmlCfg Hekateros XML configuration class. More...
#include <hekXmlCfg.h>
Public Member Functions | |
| HekXmlCfg () | |
| Default constructor. | |
| virtual | ~HekXmlCfg () |
| Destructor. | |
| 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 Hekateros description. More... | |
| virtual int | loadFile (const std::string &strXmlFileName=HekEtcCfg) |
| Load XML file into DOM. More... | |
| virtual int | loadFile (HekDesc &desc, const std::string &strXmlFileName=HekEtcCfg) |
| Load XML file into DOM and set the Hekateros description. More... | |
| virtual int | saveFile (const std::string &strXmlFileName=HekEtcCfg) |
| Save DOM to XML file. More... | |
| virtual int | saveFile (const HekDesc &desc, const std::string &strXmlFileName=HekEtcCfg) |
| Set DOM from Hekateros description and save XML file. More... | |
| virtual int | createTemplateFile (const std::string &strXmlFileName=HekEtcCfg) |
| Create a template Hekateros XML configuration file. More... | |
| virtual int | setHekDescFromDOM (HekDesc &desc) |
| Set Hekateros description for DOM. More... | |
| virtual int | setDOMFromHekDesc (const HekDesc &desc) |
| Set the DOM from the Hekateros description. More... | |
Protected Member Functions | |
| virtual int | setHekArmDescFromDOM (TiXmlElement *pElemMaj, HekDescArm *pDesc) |
| Set Hekateros robotic base description from the DOM. More... | |
| virtual int | setHekEEDescFromDOM (TiXmlElement *pElemMaj, HekDescEE *pDesc) |
| Set Hekateros end effector description for DOM. More... | |
| int | strToProdSizeCode (const std::string &str, int &val) |
| Convert string to Hekateros product size code. More... | |
| int | prodSizeToStr (const int val, std::string &str) |
| Convert product size to string equivalent. More... | |
Protected Attributes | |
| std::string | m_strMajElemArm |
| robotic arm major element name | |
| std::string | m_strMajElemEE |
| end effector major element name | |
| std::string | m_strAttrProdId |
| product id attribute name | |
| std::string | m_strElemProdName |
| product name element name | |
| std::string | m_strElemProdBrief |
| product brief element name | |
| std::string | m_strElemProdHwVer |
| product hardware version element name | |
| std::string | m_strElemProdDoF |
| egrees of freedom element name | |
| std::string | m_strElemProdSize |
| product size element name | |
HekXmlCfg Hekateros XML configuration class.
Definition at line 73 of file hekXmlCfg.h.
|
virtual |
Create a template Hekateros XML configuration file.
Any current DOM is not accessed nor altered.
| strXmlFileName | XML file path name. |
Definition at line 128 of file hekXmlCfg.cxx.
Referenced by saveFile().
|
virtual |
Load XML file into DOM and set the Hekateros description.
| [out] | desc |
Definition at line 69 of file hekXmlCfg.cxx.
References hekateros::split().
Referenced by ~HekXmlCfg().
|
inlinevirtual |
Load XML file into DOM.
| strXmlFileName | XML file path name. |
Definition at line 126 of file hekXmlCfg.h.
References hekateros::HEK_ECODE_XML, and hekateros::HEK_OK.
|
inlinevirtual |
Load XML file into DOM and set the Hekateros description.
| desc |
Definition at line 143 of file hekXmlCfg.h.
References hekateros::HEK_ECODE_XML, hekateros::HEK_OK, and setHekDescFromDOM().
|
protected |
Convert product size to string equivalent.
| [in] | val | Product size enumerate. |
| [out] | str | Converted string equivalent. |
Definition at line 497 of file hekXmlCfg.cxx.
|
inlinevirtual |
Save DOM to XML file.
| strXmlFileName | XML file path name. |
Definition at line 163 of file hekXmlCfg.h.
References hekateros::HEK_ECODE_XML, and hekateros::HEK_OK.
|
inlinevirtual |
Set DOM from Hekateros description and save XML file.
| desc |
Definition at line 180 of file hekXmlCfg.h.
References createTemplateFile(), hekateros::HEK_ECODE_XML, hekateros::HEK_OK, hekateros::HekEtcCfg, setDOMFromHekDesc(), and setHekDescFromDOM().
|
virtual |
Set the DOM from the Hekateros description.
| desc |
Definition at line 272 of file hekXmlCfg.cxx.
Referenced by saveFile().
|
protectedvirtual |
Set Hekateros robotic base description from the DOM.
| pElemMaj | Pointer to major DOM base description element. |
| pDesc | Point to Hekateros robotic base description. |
Definition at line 278 of file hekXmlCfg.cxx.
|
virtual |
Set Hekateros description for DOM.
| desc |
Definition at line 218 of file hekXmlCfg.cxx.
References hekateros::HekDesc::getArmDesc(), hekateros::HekDesc::getEEDesc(), hekateros::HekDescEE::resetDesc(), and hekateros::HekDescArm::resetDesc().
Referenced by loadFile(), and saveFile().
|
protectedvirtual |
Set Hekateros end effector description for DOM.
| pElemMaj | Pointer to major DOM base description element. |
| pDesc | Point to Hekateros end effector description. |
Definition at line 371 of file hekXmlCfg.cxx.
|
protected |
Convert string to Hekateros product size code.
| [in] | str | String in hex, decimal, or octal format. |
| [out] | val | Converted product size. |
Definition at line 464 of file hekXmlCfg.cxx.