|
Mantid
|
The base abstract class for Nexus classes and data sets. More...
#include <NexusClasses.h>
Public Member Functions | |
| NexusAddress const & | address () const |
| Returns the absolute address to the object. | |
| std::string | name () const |
| Returns the name of the object. | |
| virtual std::string | NX_class () const =0 |
| Return the NX class name for a class (HDF group) or "SDS" for a data set;. | |
| NXObject (File *fileID, NXClass const *parent, std::string const &name) | |
| NXObject constructor. | |
| NXObject (std::shared_ptr< File > const &fileID, NXClass const *parent, std::string const &name) | |
| NXObject constructor. | |
| virtual | ~NXObject ()=default |
Public Attributes | |
| std::shared_ptr< File > | m_fileID |
| Nexus file id. | |
Protected Attributes | |
| NexusAddress | m_address |
| Keeps the absolute address to the object. | |
| bool | m_open |
| Set to true if the object has been open. | |
Private Member Functions | |
| NXObject () | |
| Private default constructor. | |
Friends | |
| class | NXClass |
| a friend class declaration | |
| class | NXDataSet |
| a friend class declaration | |
| class | NXRoot |
| a friend class declaration | |
The base abstract class for Nexus classes and data sets.
NX classes and data sets are defined at www.nexusformat.org
Definition at line 87 of file NexusClasses.h.
| Mantid::Nexus::NXObject::NXObject | ( | File * | fileID, |
| NXClass const * | parent, | ||
| std::string const & | name | ||
| ) |
| Mantid::Nexus::NXObject::NXObject | ( | std::shared_ptr< File > const & | fileID, |
| NXClass const * | parent, | ||
| std::string const & | name | ||
| ) |
|
virtualdefault |
|
private |
Private default constructor.
NXObject private default constructor.
Definition at line 73 of file NexusClasses.cpp.
|
inline |
Returns the absolute address to the object.
Definition at line 102 of file NexusClasses.h.
Referenced by Mantid::Nexus::NXDataSetTyped< T >::alloc(), Mantid::DataHandling::LoadISISNexus2::exec(), Mantid::Nexus::NXClass::isValid(), Mantid::DataHandling::LoadNexusProcessed::loadEntry(), Mantid::DataHandling::LoadNexusProcessed::loadLeanElasticPeaksEntry(), Mantid::DataHandling::LoadNexusProcessed::loadPeaksEntry(), NXObject(), NXObject(), Mantid::Nexus::NXDataSetTyped< T >::operator()(), Mantid::Nexus::NXDataSetTyped< T >::operator()(), and Mantid::Nexus::NXDataSetTyped< T >::operator[]().
| std::string Mantid::Nexus::NXObject::name | ( | ) | const |
Returns the name of the object.
Definition at line 100 of file NexusClasses.cpp.
References m_address, and Mantid::Nexus::NexusAddress::stem().
Referenced by Mantid::Nexus::NXClass::close(), Mantid::DataHandling::LoadNexusProcessed2::extractMappingInfoNew(), Mantid::Nexus::NXClass::getDataSetInfo(), Mantid::Nexus::NXClass::getDouble(), Mantid::Nexus::NXClass::getFloat(), Mantid::Nexus::NXClass::getInt(), Mantid::Nexus::NXClass::getString(), NXObject(), NXObject(), and Mantid::Nexus::NXClass::openLocal().
|
pure virtual |
Return the NX class name for a class (HDF group) or "SDS" for a data set;.
Implemented in Mantid::Nexus::NXDataSet, Mantid::Nexus::NXClass, Mantid::Nexus::NXData, Mantid::Nexus::NXDetector, Mantid::Nexus::NXInstrument, Mantid::Nexus::NXEntry, and Mantid::Nexus::NXRoot.
|
friend |
a friend class declaration
Definition at line 89 of file NexusClasses.h.
|
friend |
a friend class declaration
Definition at line 88 of file NexusClasses.h.
|
friend |
a friend class declaration
Definition at line 90 of file NexusClasses.h.
|
protected |
Keeps the absolute address to the object.
Definition at line 109 of file NexusClasses.h.
Referenced by Mantid::Nexus::NXClass::close(), name(), NXObject(), NXObject(), Mantid::Nexus::NXDataSet::open(), and Mantid::Nexus::NXClass::open().
| std::shared_ptr<File> Mantid::Nexus::NXObject::m_fileID |
Nexus file id.
Definition at line 106 of file NexusClasses.h.
Referenced by Mantid::Nexus::NXClass::close(), Mantid::DataHandling::LoadISISNexus2::exec(), Mantid::DataHandling::LoadNexusProcessed::execLoader(), Mantid::Nexus::NXDataSet::getAttributes(), Mantid::Nexus::NXClass::isValid(), Mantid::Nexus::NXRoot::NXRoot(), Mantid::Nexus::NXRoot::NXRoot(), Mantid::Nexus::NXDataSet::open(), Mantid::Nexus::NXClass::open(), Mantid::Nexus::NXDataSet::openLocal(), Mantid::Nexus::NXClass::openLocal(), Mantid::Nexus::NXClass::readAllInfo(), and Mantid::Nexus::NXRoot::~NXRoot().
|
protected |
Set to true if the object has been open.
Definition at line 110 of file NexusClasses.h.
Referenced by Mantid::Nexus::NXClass::close(), Mantid::Nexus::NXClass::open(), and Mantid::Nexus::NXClass::openLocal().