Mantid
Loading...
Searching...
No Matches
Functions
Mantid::Kernel::PropertyNexus Namespace Reference

Namespace with helper methods for loading and saving Property's (logs) to NXS files. More...

Functions

DLLExport std::unique_ptr< PropertyloadProperty (::NeXus::File *file, const std::string &group)
 Opens a NXlog group in a nexus file and creates the correct Property object from it. More...
 
DLLExport std::unique_ptr< PropertyloadProperty (::NeXus::File *file, const std::string &group, const Mantid::Kernel::NexusHDF5Descriptor &fileInfo, const std::string &prefix)
 Opens a NXlog group in a nexus file and creates the correct Property object from it. More...
 

Detailed Description

Namespace with helper methods for loading and saving Property's (logs) to NXS files.

Author
Janik Zikovsky
Date
2011-09-08

Function Documentation

◆ loadProperty() [1/2]

std::unique_ptr< Property > Mantid::Kernel::PropertyNexus::loadProperty ( ::NeXus::File *  file,
const std::string &  group 
)

Opens a NXlog group in a nexus file and creates the correct Property object from it.

Parameters
file:: NXS file handle
group:: name of NXlog group to open
Returns
Property pointer

Definition at line 230 of file PropertyNexus.cpp.

◆ loadProperty() [2/2]

std::unique_ptr< Property > Mantid::Kernel::PropertyNexus::loadProperty ( ::NeXus::File *  file,
const std::string &  group,
const Mantid::Kernel::NexusHDF5Descriptor fileInfo,
const std::string &  prefix 
)

Opens a NXlog group in a nexus file and creates the correct Property object from it.

Overload that uses NexusHDF5Descriptor for faster metadata lookup.

Parameters
filecurrently opened NeXus file
groupcurrent group (relative name)
fileInfodescriptor with in-memory index with all entries
prefixindicates current group location in file (absolute name)
Returns
std::unique_ptr<Property>

Definition at line 206 of file PropertyNexus.cpp.

References Mantid::Kernel::NexusHDF5Descriptor::isEntry().

Referenced by Mantid::API::LogManager::loadNexus().