Mantid
|
#include <LoadSpiceXML2DDet.h>
Public Member Functions | |
const std::string | getDescription () const |
Get node's description. More... | |
const std::string | getName () const |
Get name of XML node. More... | |
const std::string | getUnit () const |
Get unit of XML node. More... | |
const std::string | getValue () const |
Get node's value in string. More... | |
bool | hasUnit () const |
Check whether XML has unit set. More... | |
bool | hasValue () const |
Check whether XML node has value set. More... | |
bool | isDouble () const |
Is this node of double type? More... | |
bool | isInteger () const |
Is this node of integer type? More... | |
bool | isString () const |
Is this node of string type? More... | |
void | setParameters (const std::string &nodetype, const std::string &nodeunit, const std::string &nodedescription) |
Set XML node parameters. More... | |
void | setValue (const std::string &strvalue) |
Set node value in string format. More... | |
SpiceXMLNode (std::string nodename) | |
Constructor for SpiceXMLNode. More... | |
Public Attributes | |
std::string | m_description |
std::string | m_name |
char | m_typechar |
std::string | m_typefullname |
std::string | m_unit |
std::string | m_value |
Definition at line 17 of file LoadSpiceXML2DDet.h.
Mantid::DataHandling::SpiceXMLNode::SpiceXMLNode | ( | std::string | nodename | ) |
Constructor for SpiceXMLNode.
nodename |
Definition at line 52 of file LoadSpiceXML2DDet.cpp.
const std::string Mantid::DataHandling::SpiceXMLNode::getDescription | ( | ) | const |
Get node's description.
Definition at line 131 of file LoadSpiceXML2DDet.cpp.
References m_description.
const std::string Mantid::DataHandling::SpiceXMLNode::getName | ( | ) | const |
Get name of XML node.
Definition at line 119 of file LoadSpiceXML2DDet.cpp.
References m_name.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceKnownGeometry(), and Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceUnknowGeometry().
const std::string Mantid::DataHandling::SpiceXMLNode::getUnit | ( | ) | const |
Get unit of XML node.
Definition at line 125 of file LoadSpiceXML2DDet.cpp.
References m_unit.
const std::string Mantid::DataHandling::SpiceXMLNode::getValue | ( | ) | const |
Get node's value in string.
Definition at line 137 of file LoadSpiceXML2DDet.cpp.
References m_value.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceKnownGeometry(), and Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceUnknowGeometry().
bool Mantid::DataHandling::SpiceXMLNode::hasUnit | ( | ) | const |
Check whether XML has unit set.
Definition at line 89 of file LoadSpiceXML2DDet.cpp.
References m_unit.
bool Mantid::DataHandling::SpiceXMLNode::hasValue | ( | ) | const |
Check whether XML node has value set.
Definition at line 95 of file LoadSpiceXML2DDet.cpp.
References m_value.
bool Mantid::DataHandling::SpiceXMLNode::isDouble | ( | ) | const |
Is this node of double type?
Definition at line 113 of file LoadSpiceXML2DDet.cpp.
References Mantid::DataHandling::FLOAT32, and m_typechar.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceKnownGeometry(), and Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceUnknowGeometry().
bool Mantid::DataHandling::SpiceXMLNode::isInteger | ( | ) | const |
Is this node of integer type?
Definition at line 107 of file LoadSpiceXML2DDet.cpp.
References Mantid::DataHandling::INT32, and m_typechar.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceKnownGeometry(), and Mantid::DataHandling::LoadSpiceXML2DDet::xmlCreateMatrixWorkspaceUnknowGeometry().
bool Mantid::DataHandling::SpiceXMLNode::isString | ( | ) | const |
Is this node of string type?
Definition at line 101 of file LoadSpiceXML2DDet.cpp.
References m_typechar, and Mantid::DataHandling::STRING.
void Mantid::DataHandling::SpiceXMLNode::setParameters | ( | const std::string & | nodetype, |
const std::string & | nodeunit, | ||
const std::string & | nodedescription | ||
) |
Set XML node parameters.
SpiceXMLNode::setValues
nodetype | |
nodeunit | |
nodedescription |
Definition at line 66 of file LoadSpiceXML2DDet.cpp.
References Mantid::DataHandling::FLOAT32, Mantid::DataHandling::INT32, m_description, m_typechar, m_typefullname, and m_unit.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlParseSpice().
void Mantid::DataHandling::SpiceXMLNode::setValue | ( | const std::string & | strvalue | ) |
Set node value in string format.
strvalue |
Definition at line 58 of file LoadSpiceXML2DDet.cpp.
References m_value.
Referenced by Mantid::DataHandling::LoadSpiceXML2DDet::xmlParseSpice().
std::string Mantid::DataHandling::SpiceXMLNode::m_description |
Definition at line 40 of file LoadSpiceXML2DDet.h.
Referenced by getDescription(), and setParameters().
std::string Mantid::DataHandling::SpiceXMLNode::m_name |
Definition at line 35 of file LoadSpiceXML2DDet.h.
Referenced by getName().
char Mantid::DataHandling::SpiceXMLNode::m_typechar |
Definition at line 38 of file LoadSpiceXML2DDet.h.
Referenced by isDouble(), isInteger(), isString(), and setParameters().
std::string Mantid::DataHandling::SpiceXMLNode::m_typefullname |
Definition at line 39 of file LoadSpiceXML2DDet.h.
Referenced by setParameters().
std::string Mantid::DataHandling::SpiceXMLNode::m_unit |
Definition at line 37 of file LoadSpiceXML2DDet.h.
Referenced by getUnit(), hasUnit(), and setParameters().
std::string Mantid::DataHandling::SpiceXMLNode::m_value |
Definition at line 36 of file LoadSpiceXML2DDet.h.
Referenced by getValue(), hasValue(), and setValue().