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.
 
DLLExport std::unique_ptr< PropertyloadProperty (Nexus::File *file, const std::string &group, const Nexus::NexusDescriptor &fileInfo, const std::string &prefix)
 Opens a NXlog group in a nexus file and creates the correct Property object from it.
 

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 228 of file PropertyNexus.cpp.

References group.

◆ loadProperty() [2/2]

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

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

Overload that uses NexusDescriptor 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 204 of file PropertyNexus.cpp.

References group, and Mantid::Nexus::NexusDescriptor::isEntry().

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