NeXus  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Namespaces | Classes | Typedefs | Enumerations | Functions
NeXus Namespace Reference

Namespaces

 Stream
 

Classes

class  Exception
 Class that provides for a standard NeXus exception. More...
 
struct  Info
 This structure holds the type and dimensions of a primative field/array. More...
 
struct  AttrInfo
 Information about an attribute. More...
 
class  File
 The Object that allows access to the information in the file. More...
 

Typedefs

typedef std::multimap
< std::string, std::string > 
TypeMap
 Type definition for a type-keyed multimap. More...
 

Enumerations

enum  NXnumtype {
  FLOAT32 = NX_FLOAT32, FLOAT64 = NX_FLOAT64, INT8 = NX_INT8, UINT8 = NX_UINT8,
  INT16 = NX_INT16, UINT16 = NX_UINT16, INT32 = NX_INT32, UINT32 = NX_UINT32,
  INT64 = NX_INT64, UINT64 = NX_UINT64, CHAR = NX_CHAR, BINARY = NX_BINARY
}
 The primitive types published by this API. More...
 
enum  NXcompression {
  CHUNK = NX_CHUNK, NONE = NX_COMP_NONE, LZW = NX_COMP_LZW, RLE = NX_COMP_RLE,
  HUF = NX_COMP_HUF
}
 The available compression types. More...
 

Functions

template<typename NumT >
NXnumtype getType (NumT number=NumT())
 This function returns the NXnumtype given a concrete number. More...
 
template<>
NXnumtype getType (char number)
 
template<>
NXnumtype getType (float number)
 
template<>
NXnumtype getType (double number)
 
template<>
NXnumtype getType (int8_t number)
 
template<>
NXnumtype getType (uint8_t number)
 
template<>
NXnumtype getType (int16_t number)
 
template<>
NXnumtype getType (uint16_t number)
 
template<>
NXnumtype getType (int32_t number)
 
template<>
NXnumtype getType (uint32_t number)
 
template<>
NXnumtype getType (int64_t number)
 
template<>
NXnumtype getType (uint64_t number)
 

Typedef Documentation

typedef std::multimap<std::string, std::string> NeXus::TypeMap

Type definition for a type-keyed multimap.

Definition at line 83 of file NeXusFile.hpp.

Function Documentation

template<typename NumT >
NXnumtype NeXus::getType ( NumT  number = NumT())

This function returns the NXnumtype given a concrete number.

Template Parameters
NumTnumeric data type of number to check

Definition at line 57 of file NeXusFile.cpp.

template<>
NXnumtype NeXus::getType ( char  number)

Definition at line 64 of file NeXusFile.cpp.

References CHAR.

template<>
NXnumtype NeXus::getType ( float  number)

Definition at line 71 of file NeXusFile.cpp.

References FLOAT32.

template<>
NXnumtype NeXus::getType ( double  number)

Definition at line 77 of file NeXusFile.cpp.

References FLOAT64.

template<>
NXnumtype NeXus::getType ( int8_t  number)

Definition at line 83 of file NeXusFile.cpp.

References INT8.

template<>
NXnumtype NeXus::getType ( uint8_t  number)

Definition at line 89 of file NeXusFile.cpp.

References UINT8.

template<>
NXnumtype NeXus::getType ( int16_t  number)

Definition at line 95 of file NeXusFile.cpp.

References INT16.

template<>
NXnumtype NeXus::getType ( uint16_t  number)

Definition at line 101 of file NeXusFile.cpp.

References UINT16.

template<>
NXnumtype NeXus::getType ( int32_t  number)

Definition at line 107 of file NeXusFile.cpp.

References INT32.

template<>
NXnumtype NeXus::getType ( uint32_t  number)

Definition at line 113 of file NeXusFile.cpp.

References UINT32.

template<>
NXnumtype NeXus::getType ( int64_t  number)

Definition at line 119 of file NeXusFile.cpp.

References INT64.

template<>
NXnumtype NeXus::getType ( uint64_t  number)

Definition at line 125 of file NeXusFile.cpp.

References UINT64.