|
NexusCPP
3.5.0
|
#include <nxfile.h>


Classes | |
| class | Iterator |
| Basic iterator to browse over NeXusDataSet values. More... | |
Public Member Functions | |
| NexusDataSet () | |
| Default c-tor. More... | |
| NexusDataSet (const NexusDataSet &dataset) | |
| Copy c-tor. More... | |
| NexusDataSet (NexusDataType eDataType, void *pData, int iRank, int *piDim, int *piStart=NULL) | |
| ~NexusDataSet () | |
| void | FreeData () |
| Free data block. More... | |
| void | Clear () |
| Clears data set. More... | |
| void | Alloc () |
| Allocate the data set, according to the NexusDataSetInfo part. More... | |
| void | SetOwner (bool this_has_ownership) |
| bool | IsOwner () |
Accessors | |
| void * | Data () const |
| Returns a pointer to the data set. More... | |
| unsigned int | MemSize () const |
| Returns size of the data block (i.e. Size() * sizeof(<datatype>) ) More... | |
| unsigned int | Size () const |
| Returns the number of items. More... | |
| void | SetData (void *pData) |
| void | SetData (const void *pData, NexusDataType eDataType, int iRank, int *piDimArray) |
| void | SetDimension (int iDim, int iSize) |
Public Member Functions inherited from nxcpp::NexusDataSetInfo | |
| NexusDataSetInfo () | |
| Constructor. More... | |
| ~NexusDataSetInfo () | |
| Destructor. More... | |
| void | SetInfo (NexusDataType eDataType, int iRank) |
| void | Clear () |
| Clears instance. More... | |
| NexusDataType | DataType () const |
| Returns the data type. More... | |
| int | Rank () const |
| Returns the data set rank. More... | |
| int | TotalRank () const |
| Returns the whole data set rank. More... | |
| int * | DimArray () const |
| Returns size array of dimensions. More... | |
| int * | TotalDimArray () const |
| void | SetTotalDim (int iTotalRank, int *piTotalDim) |
| int | Size () const |
| Returns total size. More... | |
| bool | IsEmpty () const |
| Returns 'true' if no data set info is stored. More... | |
| unsigned int | DatumSize () const |
| Returns datum size. More... | |
| unsigned int | BufferSize () const |
| Returns buffer size. More... | |
| int * | StartArray () const |
| Returns array of indices of starting values in Ith dimension. More... | |
| int * | StartArray () |
| bool | IsSubset () const |
| Is the dataset info about a subset? More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from nxcpp::NexusDataSetInfo | |
| static int | DataTypeSize (NexusDataType eDataType) |
| Returns size according to a data type. More... | |
Protected Attributes inherited from nxcpp::NexusDataSetInfo | |
| NexusDataType | m_eDataType |
| int | m_iRank |
| int | m_iTotalRank |
| int * | m_piDim |
| int * | m_piTotalDim |
| int * | m_piStart |
NeXus Data set
This class allow manipulation of NeXus Data sets and subsets
| nxcpp::NexusDataSet::NexusDataSet | ( | ) |
Default c-tor.
| nxcpp::NexusDataSet::NexusDataSet | ( | const NexusDataSet & | dataset | ) |
Copy c-tor.
| nxcpp::NexusDataSet::NexusDataSet | ( | NexusDataType | eDataType, |
| void * | pData, | ||
| int | iRank, | ||
| int * | piDim, | ||
| int * | piStart = NULL |
||
| ) |
c-tor
| eDataType | datatype |
| pData | raw data |
| iRank | number of dimensions |
| piDim | pointer to the dimensions array |
| piStart | if not null pointer to the start position of this subset |
| nxcpp::NexusDataSet::~NexusDataSet | ( | ) |
Destructor
| void nxcpp::NexusDataSet::Alloc | ( | ) |
Allocate the data set, according to the NexusDataSetInfo part.
| void nxcpp::NexusDataSet::Clear | ( | ) |
Clears data set.
|
inline |
Returns a pointer to the data set.

| void nxcpp::NexusDataSet::FreeData | ( | ) |
Free data block.
|
inline |
Have ownership on data buffer ?
| unsigned int nxcpp::NexusDataSet::MemSize | ( | ) | const |
Returns size of the data block (i.e. Size() * sizeof(<datatype>) )

|
inline |
Sets data
| pData | data pointer we take ownership |
| void nxcpp::NexusDataSet::SetData | ( | const void * | pData, |
| NexusDataType | eDataType, | ||
| int | iRank, | ||
| int * | piDimArray | ||
| ) |
Sets data
| pData | Pointer to data to copy |
| eDataType | Data type |
| iRank | Number of dimension |
| piDimArray | Dimensions sizes |
| void nxcpp::NexusDataSet::SetDimension | ( | int | iDim, |
| int | iSize | ||
| ) |
Sets one dimension size
| iDim | Dimension in range [0, 32[ |
| iSize | Dimension size |
| void nxcpp::NexusDataSet::SetOwner | ( | bool | this_has_ownership | ) |
Gives ownership or not. By default the NexusDataset own the data pointer
| this_has_ownership | if false the NexusDataset is no longer the owner |
| unsigned int nxcpp::NexusDataSet::Size | ( | ) | const |
Returns the number of items.
1.8.13