Mantid
|
#include <XmlHandler.h>
Public Member Functions | |
std::map< std::string, std::string > | get_attributes_from_tag (const std::string &) |
std::map< std::string, std::string > | get_metadata (const std::vector< std::string > &tags_to_ignore) |
Build dictionary {string : string } of all tags in the dictionary Composed tags: / replaced by _. More... | |
std::vector< std::string > | get_subnodes (const std::string &) |
Returns list of sub-nodes for a xpath node For: xpath = //Data/ Returns: Detector , DetectorWing. More... | |
std::string | get_text_from_tag (const std::string &) |
XmlHandler ()=default | |
XmlHandler (const std::string &) | |
Private Attributes | |
Poco::AutoPtr< Poco::XML::Document > | pDoc |
Definition at line 21 of file XmlHandler.h.
|
default |
Mantid::DataHandling::XmlHandler::XmlHandler | ( | const std::string & | filename | ) |
Definition at line 25 of file XmlHandler.cpp.
References pDoc.
std::map< std::string, std::string > Mantid::DataHandling::XmlHandler::get_attributes_from_tag | ( | const std::string & | xpath | ) |
Definition at line 67 of file XmlHandler.cpp.
References pDoc.
Referenced by Mantid::DataHandling::LoadSpice2D::getData(), Mantid::DataHandling::LoadHFIRSANS::readData(), Mantid::DataHandling::LoadHFIRSANS::setTimes(), and Mantid::DataHandling::LoadSpice2D::setTimes().
std::map< std::string, std::string > Mantid::DataHandling::XmlHandler::get_metadata | ( | const std::vector< std::string > & | tags_to_ignore | ) |
Build dictionary {string : string } of all tags in the dictionary Composed tags: / replaced by _.
Definition at line 37 of file XmlHandler.cpp.
Referenced by Mantid::DataHandling::LoadSpice2D::exec(), and Mantid::DataHandling::LoadHFIRSANS::setInputFileAsHandler().
std::vector< std::string > Mantid::DataHandling::XmlHandler::get_subnodes | ( | const std::string & | xpath | ) |
Returns list of sub-nodes for a xpath node For: xpath = //Data/ Returns: Detector , DetectorWing.
Definition at line 87 of file XmlHandler.cpp.
References pDoc.
Referenced by Mantid::DataHandling::LoadSpice2D::getData(), and Mantid::DataHandling::LoadHFIRSANS::readData().
std::string Mantid::DataHandling::XmlHandler::get_text_from_tag | ( | const std::string & | xpath | ) |
Definition at line 57 of file XmlHandler.cpp.
Referenced by Mantid::DataHandling::LoadSpice2D::getData(), and Mantid::DataHandling::LoadHFIRSANS::readData().
|
private |
Definition at line 32 of file XmlHandler.h.
Referenced by get_attributes_from_tag(), get_metadata(), get_subnodes(), get_text_from_tag(), and XmlHandler().