Mantid
Loading...
Searching...
No Matches
Classes | Functions
Mantid::NeXus::NeXusIOHelper Namespace Reference

Classes

struct  AllowNarrowing
 
struct  PreventNarrowing
 

Functions

template<typename T , typename Narrow = PreventNarrowing>
std::vector< T > readNexusSlab (::NeXus::File &file, const std::string &entry, const std::vector< int64_t > &start, const std::vector< int64_t > &size)
 Opens the data group if needed, finds the data type, and calls readNexusAnySlab via the RUN_NEXUSIOHELPER_FUNCTION macro. More...
 
template<typename T , typename Narrow = PreventNarrowing>
void readNexusSlab (std::vector< T > &out, ::NeXus::File &file, const std::string &entry, const std::vector< int64_t > &start, const std::vector< int64_t > &size)
 Opens the data group if needed, finds the data type, and calls readNexusAnySlab via the RUN_NEXUSIOHELPER_FUNCTION macro. More...
 
template<typename T , typename Narrow = PreventNarrowing>
readNexusValue (::NeXus::File &file, const std::string &entry="")
 
template<typename T , typename Narrow = PreventNarrowing>
std::vector< T > readNexusVector (::NeXus::File &file, const std::string &entry="")
 Opens the data group if needed, finds the data type, computes the data size, and calls readNexusAnyVector via the RUN_NEXUSIOHELPER_FUNCTION macro. More...
 
template<typename T , typename Narrow = PreventNarrowing>
void readNexusVector (std::vector< T > &out, ::NeXus::File &file, const std::string &entry="")
 Opens the data group if needed, finds the data type, computes the data size, and calls readNexusAnyVector via the RUN_NEXUSIOHELPER_FUNCTION macro. More...
 

Function Documentation

◆ readNexusSlab() [1/2]

template<typename T , typename Narrow = PreventNarrowing>
std::vector< T > Mantid::NeXus::NeXusIOHelper::readNexusSlab ( ::NeXus::File &  file,
const std::string &  entry,
const std::vector< int64_t > &  start,
const std::vector< int64_t > &  size 
)

Opens the data group if needed, finds the data type, and calls readNexusAnySlab via the RUN_NEXUSIOHELPER_FUNCTION macro.

Definition at line 219 of file NexusIOHelper.h.

References RUN_NEXUSIOHELPER_FUNCTION.

◆ readNexusSlab() [2/2]

template<typename T , typename Narrow = PreventNarrowing>
void Mantid::NeXus::NeXusIOHelper::readNexusSlab ( std::vector< T > &  out,
::NeXus::File &  file,
const std::string &  entry,
const std::vector< int64_t > &  start,
const std::vector< int64_t > &  size 
)

Opens the data group if needed, finds the data type, and calls readNexusAnySlab via the RUN_NEXUSIOHELPER_FUNCTION macro.

The provided output buffer is filled.

Definition at line 231 of file NexusIOHelper.h.

References RUN_NEXUSIOHELPER_FUNCTION.

◆ readNexusValue()

template<typename T , typename Narrow = PreventNarrowing>
T Mantid::NeXus::NeXusIOHelper::readNexusValue ( ::NeXus::File &  file,
const std::string &  entry = "" 
)

Definition at line 239 of file NexusIOHelper.h.

References RUN_NEXUSIOHELPER_FUNCTION.

◆ readNexusVector() [1/2]

template<typename T , typename Narrow = PreventNarrowing>
std::vector< T > Mantid::NeXus::NeXusIOHelper::readNexusVector ( ::NeXus::File &  file,
const std::string &  entry = "" 
)

Opens the data group if needed, finds the data type, computes the data size, and calls readNexusAnyVector via the RUN_NEXUSIOHELPER_FUNCTION macro.

Version that allows Narrowing.

Definition at line 198 of file NexusIOHelper.h.

References RUN_NEXUSIOHELPER_FUNCTION.

◆ readNexusVector() [2/2]

template<typename T , typename Narrow = PreventNarrowing>
void Mantid::NeXus::NeXusIOHelper::readNexusVector ( std::vector< T > &  out,
::NeXus::File &  file,
const std::string &  entry = "" 
)

Opens the data group if needed, finds the data type, computes the data size, and calls readNexusAnyVector via the RUN_NEXUSIOHELPER_FUNCTION macro.

The provided output buffer is filled.

Definition at line 209 of file NexusIOHelper.h.

References RUN_NEXUSIOHELPER_FUNCTION.