Mantid
|
Handles the extraction of dimensions from a xml xml string to determine how mappings have been formed. More...
#include <MDGeometryXMLParser.h>
Public Member Functions | |
virtual void | execute () |
Peforms the processing associated with these transformations. More... | |
Mantid::Geometry::VecIMDDimension_sptr | getAllDimensions () const |
Getter for all dimensions parsed. More... | |
Mantid::Geometry::VecIMDDimension_sptr | getIntegratedDimensions () const |
Getter for all those dimensions which are integrated. More... | |
Mantid::Geometry::VecIMDDimension_sptr | getNonIntegratedDimensions () const |
Getter for all those dimensions which are not integrated. More... | |
Mantid::Geometry::VecIMDDimension_sptr | getNonMappedDimensions () const |
Getter for all those dimensions which are not mapped. More... | |
Mantid::Geometry::IMDDimension_sptr | getTDimension () const |
Getter for t dimension. More... | |
Mantid::Geometry::IMDDimension_sptr | getXDimension () const |
Getter for x dimension. More... | |
Mantid::Geometry::IMDDimension_sptr | getYDimension () const |
Getter for y dimension. More... | |
Mantid::Geometry::IMDDimension_sptr | getZDimension () const |
Getter for z dimension. More... | |
bool | hasTDimension () const |
Determine wheter t dimension is present. More... | |
bool | hasXDimension () const |
Determine wheter x dimension is present. More... | |
bool | hasYDimension () const |
Determine wheter y dimension is present. More... | |
bool | hasZDimension () const |
Determine wheter z dimension is present. More... | |
bool | isTDimension (const Mantid::Geometry::IMDDimension_sptr &) const |
Determines whether query dimension is the t dimension. More... | |
bool | isXDimension (const Mantid::Geometry::IMDDimension_sptr &) const |
Determines whether query dimension is the x dimension. More... | |
bool | isYDimension (const Mantid::Geometry::IMDDimension_sptr &) const |
Determines whether query dimension is the y dimension. More... | |
bool | isZDimension (const Mantid::Geometry::IMDDimension_sptr &) const |
Determines whether query dimension is the z dimension. More... | |
MDGeometryXMLParser (const MDGeometryXMLParser &) | |
Copy constructor. More... | |
MDGeometryXMLParser (std::string xmlToProcess) | |
Constructor. More... | |
MDGeometryXMLParser & | operator= (const MDGeometryXMLParser &) |
Assignement operator. More... | |
void | SetRootNodeCheck (std::string elementName) |
Setter for the root element. More... | |
virtual | ~MDGeometryXMLParser ()=default |
Protected Member Functions | |
MDGeometryXMLParser () | |
Constructor. More... | |
Protected Attributes | |
std::string | m_xmlToProcess |
Private Member Functions | |
void | validate () const |
Validate the current object. More... | |
Handles the extraction of dimensions from a xml xml string to determine how mappings have been formed.
Definition at line 24 of file MDGeometryXMLParser.h.
|
protected |
Constructor.
Definition at line 151 of file MDGeometryXMLParser.cpp.
|
explicit |
Constructor.
xmlToProcess | : vtkDataSet to process |
Definition at line 145 of file MDGeometryXMLParser.cpp.
|
virtualdefault |
Mantid::Geometry::MDGeometryXMLParser::MDGeometryXMLParser | ( | const MDGeometryXMLParser & | other | ) |
Copy constructor.
other | : existing MDGeometryXMLParser to assign from. |
Definition at line 294 of file MDGeometryXMLParser.cpp.
|
virtual |
Peforms the processing associated with these transformations.
Definition at line 48 of file MDGeometryXMLParser.cpp.
References Mantid::Geometry::createDimension(), m_executed, m_rootNodeName, m_tDimension, m_vecAllDims, m_vecNonMappedDims, m_xDimension, m_xmlToProcess, m_yDimension, m_zDimension, Mantid::Geometry::MDGeometryXMLDefinitions::workspaceDimensionElementName(), Mantid::Geometry::MDGeometryXMLDefinitions::workspaceRefDimensionElementName(), Mantid::Geometry::MDGeometryXMLDefinitions::workspaceTDimensionElementName(), Mantid::Geometry::MDGeometryXMLDefinitions::workspaceXDimensionElementName(), Mantid::Geometry::MDGeometryXMLDefinitions::workspaceYDimensionElementName(), and Mantid::Geometry::MDGeometryXMLDefinitions::workspaceZDimensionElementName().
Mantid::Geometry::VecIMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getAllDimensions | ( | ) | const |
Getter for all dimensions parsed.
Definition at line 224 of file MDGeometryXMLParser.cpp.
References m_vecAllDims, and validate().
Mantid::Geometry::VecIMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getIntegratedDimensions | ( | ) | const |
Getter for all those dimensions which are integrated.
Definition at line 213 of file MDGeometryXMLParser.cpp.
References m_vecAllDims, and validate().
Mantid::Geometry::VecIMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getNonIntegratedDimensions | ( | ) | const |
Getter for all those dimensions which are not integrated.
Definition at line 202 of file MDGeometryXMLParser.cpp.
References m_vecAllDims, and validate().
Mantid::Geometry::VecIMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getNonMappedDimensions | ( | ) | const |
Getter for all those dimensions which are not mapped.
Definition at line 193 of file MDGeometryXMLParser.cpp.
References m_vecNonMappedDims, and validate().
Mantid::Geometry::IMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getTDimension | ( | ) | const |
Getter for t dimension.
Definition at line 184 of file MDGeometryXMLParser.cpp.
References m_tDimension, and validate().
Mantid::Geometry::IMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getXDimension | ( | ) | const |
Getter for x dimension.
Definition at line 157 of file MDGeometryXMLParser.cpp.
References m_xDimension, and validate().
Mantid::Geometry::IMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getYDimension | ( | ) | const |
Getter for y dimension.
Definition at line 166 of file MDGeometryXMLParser.cpp.
References m_yDimension, and validate().
Mantid::Geometry::IMDDimension_sptr Mantid::Geometry::MDGeometryXMLParser::getZDimension | ( | ) | const |
Getter for z dimension.
Definition at line 175 of file MDGeometryXMLParser.cpp.
References m_zDimension, and validate().
bool Mantid::Geometry::MDGeometryXMLParser::hasTDimension | ( | ) | const |
Determine wheter t dimension is present.
Definition at line 260 of file MDGeometryXMLParser.cpp.
References m_tDimension, and validate().
Referenced by isTDimension().
bool Mantid::Geometry::MDGeometryXMLParser::hasXDimension | ( | ) | const |
Determine wheter x dimension is present.
Definition at line 233 of file MDGeometryXMLParser.cpp.
References m_xDimension, and validate().
Referenced by isXDimension().
bool Mantid::Geometry::MDGeometryXMLParser::hasYDimension | ( | ) | const |
Determine wheter y dimension is present.
Definition at line 242 of file MDGeometryXMLParser.cpp.
References m_yDimension, and validate().
Referenced by isYDimension().
bool Mantid::Geometry::MDGeometryXMLParser::hasZDimension | ( | ) | const |
Determine wheter z dimension is present.
Definition at line 251 of file MDGeometryXMLParser.cpp.
References m_zDimension, and validate().
Referenced by isZDimension().
bool Mantid::Geometry::MDGeometryXMLParser::isTDimension | ( | const Mantid::Geometry::IMDDimension_sptr & | candidate | ) | const |
Determines whether query dimension is the t dimension.
candidate | : query dimension. |
Definition at line 352 of file MDGeometryXMLParser.cpp.
References hasTDimension(), m_tDimension, and validate().
bool Mantid::Geometry::MDGeometryXMLParser::isXDimension | ( | const Mantid::Geometry::IMDDimension_sptr & | candidate | ) | const |
Determines whether query dimension is the x dimension.
candidate | : query dimension. |
Definition at line 304 of file MDGeometryXMLParser.cpp.
References hasXDimension(), m_xDimension, and validate().
bool Mantid::Geometry::MDGeometryXMLParser::isYDimension | ( | const Mantid::Geometry::IMDDimension_sptr & | candidate | ) | const |
Determines whether query dimension is the y dimension.
candidate | : query dimension. |
Definition at line 320 of file MDGeometryXMLParser.cpp.
References hasYDimension(), m_yDimension, and validate().
bool Mantid::Geometry::MDGeometryXMLParser::isZDimension | ( | const Mantid::Geometry::IMDDimension_sptr & | candidate | ) | const |
Determines whether query dimension is the z dimension.
candidate | : query dimension. |
Definition at line 336 of file MDGeometryXMLParser.cpp.
References hasZDimension(), m_zDimension, and validate().
MDGeometryXMLParser & Mantid::Geometry::MDGeometryXMLParser::operator= | ( | const MDGeometryXMLParser & | other | ) |
Assignement operator.
other | : existing MDGeometryXMLParser to assign from. |
Definition at line 276 of file MDGeometryXMLParser.cpp.
References m_executed, m_rootNodeName, m_tDimension, m_vecAllDims, m_vecNonMappedDims, m_xDimension, m_yDimension, and m_zDimension.
void Mantid::Geometry::MDGeometryXMLParser::SetRootNodeCheck | ( | std::string | elementName | ) |
Setter for the root element.
elementName | : name of the element containing xml dimensions. Usually "Dimensions" unless xml snippet passed in directly, in which case do not set. |
Definition at line 270 of file MDGeometryXMLParser.cpp.
References m_rootNodeName.
|
private |
Validate the current object.
Take action if not set up properly.
Definition at line 38 of file MDGeometryXMLParser.cpp.
References m_executed.
Referenced by getAllDimensions(), getIntegratedDimensions(), getNonIntegratedDimensions(), getNonMappedDimensions(), getTDimension(), getXDimension(), getYDimension(), getZDimension(), hasTDimension(), hasXDimension(), hasYDimension(), hasZDimension(), isTDimension(), isXDimension(), isYDimension(), and isZDimension().
|
private |
Definition at line 27 of file MDGeometryXMLParser.h.
Referenced by execute(), operator=(), and validate().
|
private |
Definition at line 29 of file MDGeometryXMLParser.h.
Referenced by execute(), operator=(), and SetRootNodeCheck().
|
private |
Definition at line 41 of file MDGeometryXMLParser.h.
Referenced by execute(), getTDimension(), hasTDimension(), isTDimension(), and operator=().
|
private |
Definition at line 33 of file MDGeometryXMLParser.h.
Referenced by execute(), getAllDimensions(), getIntegratedDimensions(), getNonIntegratedDimensions(), and operator=().
|
private |
Definition at line 31 of file MDGeometryXMLParser.h.
Referenced by execute(), getNonMappedDimensions(), and operator=().
|
private |
Definition at line 35 of file MDGeometryXMLParser.h.
Referenced by execute(), getXDimension(), hasXDimension(), isXDimension(), and operator=().
|
protected |
Definition at line 46 of file MDGeometryXMLParser.h.
Referenced by execute().
|
private |
Definition at line 37 of file MDGeometryXMLParser.h.
Referenced by execute(), getYDimension(), hasYDimension(), isYDimension(), and operator=().
|
private |
Definition at line 39 of file MDGeometryXMLParser.h.
Referenced by execute(), getZDimension(), hasZDimension(), isZDimension(), and operator=().