|
ICP
1
|
#include <labview_xml.h>
Classes | |
| struct | labview_item |
Public Member Functions | |
| int | loadFromString (BSTR xml_string, DAEstatus &status) |
| int | loadFromString (const char *xml_string, DAEstatus &status) |
| int | saveToString (std::string &s, DAEstatus &status) |
| int | loadFromFile (const char *filename, DAEstatus &status) |
| int | saveToFile (const char *filename, DAEstatus &status) |
| int | updateFrom (const LabviewXML &lvxml, DAEstatus &status) |
| int | updateFromString (const std::string &xml_string, DAEstatus &status) |
| int | updateFromString (const char *xml_chars, DAEstatus &status) |
| int | setValue (const char *name, const char *value, DAEstatus &status) |
| int | setValue (const char *name, double value, DAEstatus &status) |
| int | setValue (const char *name, long value, DAEstatus &status) |
| int | setValue (const char *name, int value, DAEstatus &status) |
| int | setValue (const char *name, unsigned long value, DAEstatus &status) |
| int | setValue (const char *name, unsigned int value, DAEstatus &status) |
| int | setValue (const char *name, __int64 value, DAEstatus &status) |
| int | setValue (const char *name, const std::vector< std::string > &value, DAEstatus &status) |
| int | getValue (const char *name, char *value, int max_len, bool write_null, DAEstatus &status) |
| int | getValue (const char *name, std::string &value, DAEstatus &status) |
| int | getValue (const char *name, double &value, DAEstatus &status) |
| int | getValue (const char *name, float &value, DAEstatus &status) |
| int | getValue (const char *name, long &value, DAEstatus &status) |
| int | getValue (const char *name, int &value, DAEstatus &status) |
| int | getValue (const char *name, __int64 &value, DAEstatus &status) |
| int | getValue (const char *name, std::vector< std::string > &value, DAEstatus &status) |
| std::string | valueAsString (const char *name, DAEstatus &status) |
| LabviewXML (DAEstatus &status) | |
| int | close () |
| ~LabviewXML () | |
Protected Member Functions | |
| int | processElements (int type, bool reading, DAEstatus &status) |
| int | processAllElements (bool reading, DAEstatus &status) |
| int | DomFromCOM (DAEstatus &status) |
| int | setISO8859Encoding (DAEstatus &status) |
Private Types | |
| typedef std::map< std::string, labview_item > | list_t |
| typedef std::pair < list_t::iterator, bool > | insert_t |
| typedef list_t::iterator | iterator_t |
| typedef list_t::const_iterator | c_iterator_t |
Private Member Functions | |
| LabviewXML () | |
Private Attributes | |
| IXMLDOMDocument * | m_pxmldom |
| list_t | m_list |
Definition at line 21 of file labview_xml.h.
|
private |
Definition at line 34 of file labview_xml.h.
|
private |
Definition at line 32 of file labview_xml.h.
|
private |
Definition at line 33 of file labview_xml.h.
|
private |
Definition at line 31 of file labview_xml.h.
|
inline |
Definition at line 69 of file labview_xml.h.
References DomFromCOM().
|
inline |
Definition at line 71 of file labview_xml.h.
References close().
|
private |
Definition at line 184 of file labview_xml.cpp.
References m_pxmldom.
|
inline |
Definition at line 70 of file labview_xml.h.
References m_pxmldom.
Referenced by _tmain(), and ~LabviewXML().
|
protected |
Definition at line 193 of file labview_xml.cpp.
References DAEstatus::Failure, m_pxmldom, STATUS_CHECK_HR, and DAEstatus::Success.
Referenced by LabviewXML().
| int LabviewXML::getValue | ( | const char * | name, |
| char * | value, | ||
| int | max_len, | ||
| bool | write_null, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 500 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, m_list, SEV_ERROR, and DAEstatus::Success.
Referenced by _tmain(), ISISinstrumentControl::changeUpdateSettingsXML(), getValue(), ISISinstrumentControl::ISISinstrumentControl(), ISISinstrumentControl::loadCRPT(), ISISinstrumentControl::updateDAEsettingsXML(), ISISinstrumentControl::updateHardwarePeriodsXML(), ISISinstrumentControl::updateMonitoringXML(), ISISinstrumentControl::updateSampleXML(), ISISinstrumentControl::updateTCBXML(), ISISinstrumentControl::updateUserXML(), and valueAsString().
| int LabviewXML::getValue | ( | const char * | name, |
| std::string & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 483 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, m_list, SEV_ERROR, and DAEstatus::Success.
| int LabviewXML::getValue | ( | const char * | name, |
| double & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 425 of file labview_xml.cpp.
References getValue().
| int LabviewXML::getValue | ( | const char * | name, |
| float & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 433 of file labview_xml.cpp.
References getValue().
| int LabviewXML::getValue | ( | const char * | name, |
| long & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 441 of file labview_xml.cpp.
References getValue().
| int LabviewXML::getValue | ( | const char * | name, |
| int & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 458 of file labview_xml.cpp.
References getValue().
| int LabviewXML::getValue | ( | const char * | name, |
| __int64 & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 450 of file labview_xml.cpp.
References getValue().
| int LabviewXML::getValue | ( | const char * | name, |
| std::vector< std::string > & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 466 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, m_list, SEV_ERROR, and DAEstatus::Success.
| int LabviewXML::loadFromFile | ( | const char * | filename, |
| DAEstatus & | status | ||
| ) |
Definition at line 666 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, loadFromString(), and SEV_ERROR.
Referenced by _tmain(), and ISISinstrumentControl::ISISinstrumentControl().
| int LabviewXML::loadFromString | ( | BSTR | xml_string, |
| DAEstatus & | status | ||
| ) |
Definition at line 617 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, m_pxmldom, processAllElements(), SEV_ERROR, STATUS_CHECK_HR, and DAEstatus::Success.
Referenced by ISISinstrumentControl::changeUpdateSettingsXML(), ISISinstrumentControl::getDAEsettingsXML(), ISISinstrumentControl::getHardwarePeriodsXML(), ISISinstrumentControl::getMonitoringXML(), ISISinstrumentControl::getOptions(), ISISinstrumentControl::getTCBXML(), ISISinstrumentControl::getUpdateSettingsXML(), loadFromFile(), loadFromString(), ISISinstrumentControl::setOptions(), ISISinstrumentControl::updateDAEsettingsXML(), updateFromString(), ISISinstrumentControl::updateHardwarePeriodsXML(), ISISinstrumentControl::updateMonitoringXML(), ISISinstrumentControl::updateSampleXML(), ISISinstrumentControl::updateStatusXML(), ISISinstrumentControl::updateTCBXML(), and ISISinstrumentControl::updateUserXML().
| int LabviewXML::loadFromString | ( | const char * | xml_string, |
| DAEstatus & | status | ||
| ) |
Definition at line 611 of file labview_xml.cpp.
References loadFromString().
|
protected |
Definition at line 216 of file labview_xml.cpp.
References n_lv, and processElements().
Referenced by loadFromString(), saveToFile(), and saveToString().
|
protected |
Definition at line 226 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, LabviewXML::labview_item::index, lv_defaults, lv_tags, m_list, m_pxmldom, SEV_ERROR, LabviewXML::labview_item::type, and LabviewXML::labview_item::value.
Referenced by processAllElements().
| int LabviewXML::saveToFile | ( | const char * | filename, |
| DAEstatus & | status | ||
| ) |
Definition at line 561 of file labview_xml.cpp.
References m_pxmldom, and processAllElements().
Referenced by _tmain().
| int LabviewXML::saveToString | ( | std::string & | s, |
| DAEstatus & | status | ||
| ) |
Definition at line 578 of file labview_xml.cpp.
References m_pxmldom, processAllElements(), setISO8859Encoding(), and MemoryStream::toString().
Referenced by _tmain(), ISISinstrumentControl::getDAEsettingsXML(), ISISinstrumentControl::getHardwarePeriodsXML(), ISISinstrumentControl::getMonitoringXML(), ISISinstrumentControl::getTCBXML(), ISISinstrumentControl::getUpdateSettingsXML(), and ISISinstrumentControl::updateStatusXML().
|
protected |
Definition at line 533 of file labview_xml.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, m_pxmldom, SEV_ERROR, and DAEstatus::Success.
Referenced by saveToString().
| int LabviewXML::setValue | ( | const char * | name, |
| const char * | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 402 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, m_list, and SEV_ERROR.
Referenced by _tmain(), ISISinstrumentControl::getDAEsettingsXML(), ISISinstrumentControl::getHardwarePeriodsXML(), ISISinstrumentControl::getMonitoringXML(), ISISinstrumentControl::getTCBXML(), ISISinstrumentControl::getUpdateSettingsXML(), setValue(), updateFrom(), and ISISinstrumentControl::updateStatusXML().
| int LabviewXML::setValue | ( | const char * | name, |
| double | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 378 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| long | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 342 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| int | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 370 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| unsigned long | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 363 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| unsigned int | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 356 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| __int64 | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 349 of file labview_xml.cpp.
References setValue().
| int LabviewXML::setValue | ( | const char * | name, |
| const std::vector< std::string > & | value, | ||
| DAEstatus & | status | ||
| ) |
Definition at line 385 of file labview_xml.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, m_list, and SEV_ERROR.
| int LabviewXML::updateFrom | ( | const LabviewXML & | lvxml, |
| DAEstatus & | status | ||
| ) |
Definition at line 697 of file labview_xml.cpp.
References m_list, setValue(), and DAEstatus::Success.
Referenced by updateFromString().
| int LabviewXML::updateFromString | ( | const std::string & | xml_string, |
| DAEstatus & | status | ||
| ) |
Definition at line 711 of file labview_xml.cpp.
Referenced by ISISinstrumentControl::getDAEsettingsXML(), ISISinstrumentControl::getHardwarePeriodsXML(), ISISinstrumentControl::getMonitoringXML(), ISISinstrumentControl::getTCBXML(), and ISISinstrumentControl::getUpdateSettingsXML().
| int LabviewXML::updateFromString | ( | const char * | xml_chars, |
| DAEstatus & | status | ||
| ) |
Definition at line 716 of file labview_xml.cpp.
References DAEstatus::Failure, loadFromString(), DAEstatus::Success, and updateFrom().
| std::string LabviewXML::valueAsString | ( | const char * | name, |
| DAEstatus & | status | ||
| ) |
Definition at line 418 of file labview_xml.cpp.
References getValue().
|
private |
Definition at line 35 of file labview_xml.h.
Referenced by getValue(), processElements(), setValue(), and updateFrom().
|
private |
Definition at line 23 of file labview_xml.h.
Referenced by close(), DomFromCOM(), LabviewXML(), loadFromString(), processElements(), saveToFile(), saveToString(), and setISO8859Encoding().
1.8.5