Mantid
|
#include <LoadDetectorsGroupingFile.h>
Public Member Functions | |
std::string | getDate () |
std::string | getDescription () |
std::map< int, std::vector< std::string > > | getGroupComponentsMap () |
Data structures to store XML to Group/Detector conversion map. More... | |
std::map< int, std::vector< detid_t > > | getGroupDetectorsMap () |
std::map< int, std::string > | getGroupNamesMap () |
std::map< int, std::vector< int > > | getGroupSpectraMap () |
std::string | getInstrumentName () |
bool | isGivenDate () |
bool | isGivenDescription () |
bool | isGivenInstrumentName () |
LoadGroupXMLFile () | |
void | loadXMLFile (const std::string &xmlfilename) |
void | setDefaultStartingGroupID (int startgroupid) |
Private Member Functions | |
void | initializeXMLParser (const std::string &filename) |
Initialize XML parser. More... | |
void | parseXML () |
Parse XML. More... | |
Static Private Member Functions | |
static std::string | getAttributeValueByName (Poco::XML::Node *pNode, const std::string &attributename, bool &found) |
Get attribute value from an XML node. More... | |
Private Attributes | |
std::string | m_date |
Date in ISO 8601 for which this grouping is relevant. More... | |
std::string | m_description |
Grouping description. Empty if not specified. More... | |
std::map< int, std::vector< std::string > > | m_groupComponentsMap |
Data structures to store XML to Group/Detector conversion map. More... | |
std::map< int, std::vector< detid_t > > | m_groupDetectorsMap |
std::map< int, std::string > | m_groupNamesMap |
Map of group names. More... | |
std::map< int, std::vector< int > > | m_groupSpectraMap |
std::string | m_instrumentName |
Instrument name. More... | |
Poco::AutoPtr< Poco::XML::Document > | m_pDoc |
XML document loaded. More... | |
int | m_startGroupID |
bool | m_userGiveDate |
Whether date is given by user. More... | |
bool | m_userGiveDescription |
Whether description is given by user. More... | |
bool | m_userGiveInstrument |
User-define instrument name. More... | |
Definition at line 97 of file LoadDetectorsGroupingFile.h.
Mantid::DataHandling::LoadGroupXMLFile::LoadGroupXMLFile | ( | ) |
Definition at line 377 of file LoadDetectorsGroupingFile.cpp.
|
staticprivate |
Get attribute value from an XML node.
Definition at line 566 of file LoadDetectorsGroupingFile.cpp.
References value.
Referenced by parseXML().
|
inline |
Definition at line 107 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Definition at line 110 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Data structures to store XML to Group/Detector conversion map.
Definition at line 114 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Definition at line 115 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec(), and Mantid::DataHandling::GroupDetectors2::processXMLFile().
|
inline |
Definition at line 118 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Definition at line 116 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec(), and Mantid::DataHandling::GroupDetectors2::processXMLFile().
|
inline |
Definition at line 104 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
private |
Initialize XML parser.
Definition at line 391 of file LoadDetectorsGroupingFile.cpp.
References Mantid::Kernel::Strings::loadFile(), and m_pDoc.
Referenced by loadXMLFile().
|
inline |
Definition at line 108 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Definition at line 111 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
|
inline |
Definition at line 105 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec().
void Mantid::DataHandling::LoadGroupXMLFile::loadXMLFile | ( | const std::string & | xmlfilename | ) |
Definition at line 382 of file LoadDetectorsGroupingFile.cpp.
References initializeXMLParser(), and parseXML().
Referenced by Mantid::DataHandling::LoadDetectorsGroupingFile::exec(), and Mantid::DataHandling::GroupDetectors2::processXMLFile().
|
private |
Parse XML.
Definition at line 411 of file LoadDetectorsGroupingFile.cpp.
References getAttributeValueByName(), m_date, m_description, m_groupComponentsMap, m_groupDetectorsMap, m_groupNamesMap, m_groupSpectraMap, m_instrumentName, m_pDoc, m_startGroupID, m_userGiveDate, m_userGiveDescription, m_userGiveInstrument, Mantid::Kernel::Strings::parseRange(), and value.
Referenced by loadXMLFile().
|
inline |
Definition at line 102 of file LoadDetectorsGroupingFile.h.
Referenced by Mantid::DataHandling::GroupDetectors2::processXMLFile().
|
private |
Date in ISO 8601 for which this grouping is relevant.
Definition at line 127 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Grouping description. Empty if not specified.
Definition at line 132 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Data structures to store XML to Group/Detector conversion map.
Definition at line 139 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Definition at line 140 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Map of group names.
Definition at line 145 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Definition at line 141 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Instrument name.
Definition at line 122 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
XML document loaded.
Definition at line 137 of file LoadDetectorsGroupingFile.h.
Referenced by initializeXMLParser(), and parseXML().
|
private |
Definition at line 142 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Whether date is given by user.
Definition at line 129 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
Whether description is given by user.
Definition at line 134 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().
|
private |
User-define instrument name.
Definition at line 124 of file LoadDetectorsGroupingFile.h.
Referenced by parseXML().