|
NexusCPP
3.5.0
|
#include <nxfile.h>
Public Types | |
| enum | OpenMode { NONE, READ, WRITE } |
| Files open mode. More... | |
Public Member Functions | |
Constructors and destructor | |
| NexusFile (const char *pcszFullPath=NULL, OpenMode eMode=NONE, bool use_lock=false) | |
| ~NexusFile () | |
File manipulation methods | |
| void | Create (const char *pcszFullPath, ENexusCreateMode eMode=NX_HDF5) |
| void | OpenRead (const char *pcszFullPath) |
| void | OpenReadWrite (const char *pcszFullPath) |
| void | Close () |
| void | Flush () |
| Flushes all data to the NeXus file. More... | |
groups manipulations | |
| void | CreateGroup (const char *pcszName, const char *pcszClass, bool bOpen=true) |
| bool | OpenGroup (const char *pcszName, const char *pcszClass, bool bThrowException=true) |
| void | CloseGroup () |
| Closes current group. More... | |
| void | CloseAllGroups () |
| Closes all opened groups. More... | |
data sets manipulations | |
| void | CreateDataSet (const char *pcszName, NexusDataType eDataType, int iRank, int *piDim, int bOpen=true) |
| void | CreateCompressedDataSet (const char *pcszName, NexusDataType eDataType, int iRank, int *piDim, int *piChunkDim, CompressionFilter filter=CompressZLIB, FilterConfig filter_config=FilterConfig(), int bOpen=true) |
| void | CloseDataSet () |
| void | WriteData (const char *pcszName, void *pData, NexusDataType eDataType, int iRank, int *piDim, bool bCreate=true) |
| void | WriteData (const char *pcszName, void *pData, NexusDataType eDataType, const std::vector< std::size_t > &Shape, bool bCreate=true) |
| void | WriteDataSubSet (const char *pcszName, void *pData, NexusDataType eDataType, int iRank, int *piStart, int *piDim, bool bCreate=true, bool bNoDim=false) |
| void | WriteData (const char *pcszName, float fValue, bool bCreate=true) |
| 'float' version of WriteData More... | |
| void | WriteData (const char *pcszName, double dValue, bool bCreate=true) |
| 'double' version of WriteData More... | |
| void | WriteData (const char *pcszName, long lValue, bool bCreate=true) |
| 'long' version of WriteData More... | |
| void | WriteData (const char *pcszName, const char *pcszValue, bool bCreate=true) |
| 'std::string' version of WriteData More... | |
| void | WriteData (const char *pcszName, void *pData, int _iLen, bool bCreate=true) |
| 'binary' version of WriteData More... | |
| bool | OpenDataSet (const char *pcszName, bool bThrowException=true) |
| void | PutData (void *pData, const char *pcszName=NULL, int bFlush=false) |
| void | PutDataSubSet (void *pData, int *piStart, int *piSize, const char *pcszName=NULL) |
Data set reading | |
| void | GetData (NexusDataSet *pDataSet, const char *pcszDataSet=NULL) |
| void | GetDataSubSet (NexusDataSet *pDataSet, const char *pcszDataSet=NULL) |
| void | GetDataSetInfo (NexusDataSetInfo *pDataSetInfo, const char *pcszDataSet) |
Getting attributes | |
| void | GetAttribute (const char *pcszAttr, int *piBufLen, void *pData, NexusDataType eDataType) |
| void | GetAttribute (const char *pcszAttr, long *plValue) |
| void | GetAttribute (const char *pcszAttr, double *pdValue) |
| void | GetAttribute (const char *pcszAttr, float *pfValue) |
| void | GetAttribute (const char *pcszAttr, std::string *pstrValue) |
Putting attributes | |
Writes an attribute of the currently open data set. If no data set is open, a global attribute is generated. The attribute has both a name and a value. | |
| void | PutAttr (const char *pcszName, void *pValue, int iLen, NexusDataType eDataType) |
| void | PutAttr (const char *pcszName, long lValue) |
| void | PutAttr (const char *pcszName, const char *pcszValue) |
| void | PutAttr (const char *pcszName, double dValue) |
| void | PutAttr (const char *pcszName, float fValue) |
Browsing methods | |
| int | ItemCount () |
| Get the number of items in the current group. More... | |
| int | AttrCount () |
| Get the number of attributes in the current data set. More... | |
| int | GetFirstItem (NexusItemInfo *pItemInfo) |
| int | GetNextItem (NexusItemInfo *pItemInfo) |
| int | GetFirstAttribute (NexusAttrInfo *pAttrInfo, const char *pcszDataSet=NULL) |
| int | GetNextAttribute (NexusAttrInfo *pAttrInfo) |
Item linking methods | |
| void | GetDataSetLink (NexusItemID *pnxl) |
| void | GetGroupLink (NexusItemID *pnxl) |
| void | LinkToCurrentGroup (const NexusItemID &nxl) |
User pointer accessors | |
| void * | UserPtr () const |
| Get user pointer. More... | |
| void | SetUserPtr (void *p) |
| Set user pointer. More... | |
high level methods | |
| bool | OpenGroupPath (const char *pszPath, bool bThrowException=true) |
| bool | CreateGroupPath (const char *pszPath) |
| int | SearchGroup (const char *pszGroupName, const char *pszClassName, std::vector< std::string > *pvecPaths, const char *pszStartPath=NULL) |
| int | SearchDataSetFromAttr (const char *pszAttrName, std::vector< std::string > *pvecDataSets, const std::string &strAttrVal="") |
| int | SearchFirstDataSetFromAttr (const char *pszAttrName, std::string *pstrDataSet, const std::string &strAttrVal="") |
| int | SearchDataSetFromAttrAndRank (const char *pszAttrName, int iRank, std::vector< std::string > *pvecDataSets, const std::string &strAttrVal="") |
| int | SearchFirstDataSetFromAttrAndRank (const char *pszAttrName, int iRank, std::string *pstrDataSet, const std::string &strAttrVal="") |
| std::string | GetAttributeAsString (const NexusAttrInfo &aAttrInfo) |
| bool | HasAttribute (const char *pszAttrName, const char *pcszDataSet=NULL, const std::string &strAttrVal="") |
| bool | GetAttributeAsString (const char *pszAttrName, const char *pcszDataSet, std::string *pstrValue) |
| bool | BuildAxisDict (std::map< std::string, std::string > *pmapAxis, const char *pszGroupPath=NULL, const char *pcszDataSet=NULL) |
| bool | BuildScanAxisDict (std::map< std::string, std::string > *pmapAxis, const char *pszGroupPath=NULL, const char *pcszDataSet=NULL) |
| int | GetScanDim (const char *pszDataGroupPath) |
| std::string | CurrentGroupName () |
| Current Group Name. More... | |
| std::string | CurrentGroupClass () |
| Current Group Class. More... | |
| std::string | CurrentGroupPath () |
| Currently opened group path inside NeXus file. More... | |
| std::string | CurrentDataset () |
| Currently opened dataset. More... | |
| void | GetGroupChildren (std::vector< std::string > *pvecDatasets, std::vector< std::string > *pvecGroupNames, std::vector< std::string > *pvecGroupClasses) |
| NexusItemInfoList | GetGroupChildren () |
Deprecated methods | |
| void | GetAttribute (const char *, char *, int) |
Static Public Member Functions | |
| static void | Initialize () |
Static Public Attributes | |
| static const bool | USE_LOCK = true |
NeXus File Class
This class allow manipulation of NeXus File with no need to known about nexus file handle
| nxcpp::NexusFile::NexusFile | ( | const char * | pcszFullPath = NULL, |
| OpenMode | eMode = NONE, |
||
| bool | use_lock = false |
||
| ) |
Constructor
| pcszFullPath | path + complete filename |
| eMode | OpenMode (NONE/READ/WRITE) |
| use_lock | if 'true' then use file-system locking for each file access |
| nxcpp::NexusFile::~NexusFile | ( | ) |
Destructor
Perform all operations needed such as closing open groups
| int nxcpp::NexusFile::AttrCount | ( | ) |
Get the number of attributes in the current data set.
| bool nxcpp::NexusFile::BuildAxisDict | ( | std::map< std::string, std::string > * | pmapAxis, |
| const char * | pszGroupPath = NULL, |
||
| const char * | pcszDataSet = NULL |
||
| ) |
Build a dictionnary that contains axis datasets for each dimension belong to a given dataset Entries in the dictionnary are in the form : "axis_<axis>_<primary>=<dataset name>""
| pmapAxis | Map of axis that will contains the axis datasets name |
| pszGroupPath | Group Path |
| pcszDataSet | DataSet name |
| bool nxcpp::NexusFile::BuildScanAxisDict | ( | std::map< std::string, std::string > * | pmapAxis, |
| const char * | pszGroupPath = NULL, |
||
| const char * | pcszDataSet = NULL |
||
| ) |
Build a dictionnary that contains axis values (readed and setted) datasets for each dimension belong to a given dataset Entries in the dictionnary are in the form : "axis-readed_<axis>_<primary> = <dataset name>" "axis-setted_<axis>_<primary> = <dataset name>"
| pmapAxis | Map of axis that will contains the axis datasets name |
| pszGroupPath | Group Path |
| pcszDataSet | DataSet name |
| void nxcpp::NexusFile::Close | ( | ) |
Closes currently opened file Frees all allocated objects (groups & data sets)
| void nxcpp::NexusFile::CloseAllGroups | ( | ) |
Closes all opened groups.
| void nxcpp::NexusFile::CloseDataSet | ( | ) |
Closes currenly open dataset
| void nxcpp::NexusFile::CloseGroup | ( | ) |
Closes current group.
| void nxcpp::NexusFile::Create | ( | const char * | pcszFullPath, |
| ENexusCreateMode | eMode = NX_HDF5 |
||
| ) |
Creating file
Create Nexus file
| pcszFullPath | path + complete filename |
| eMode | creating mode can be NX_HDF5, NX_HDF4 or NX_XML |
| void nxcpp::NexusFile::CreateCompressedDataSet | ( | const char * | pcszName, |
| NexusDataType | eDataType, | ||
| int | iRank, | ||
| int * | piDim, | ||
| int * | piChunkDim, | ||
| CompressionFilter | filter = CompressZLIB, |
||
| FilterConfig | filter_config = FilterConfig(), |
||
| int | bOpen = true |
||
| ) |
Creates compressed data set
| pcszName | Data set name |
| eDataType | Data type (see napi.h) |
| iRank | Data set rank |
| piDim | Pointer to array of dimensions |
| piChunkDim | Pointer to array of chunk dimensions |
| filter | compression filter to apply |
| filter_config | filter parameters |
| bOpen | If 'true' keep the data set open after its creation |
| void nxcpp::NexusFile::CreateDataSet | ( | const char * | pcszName, |
| NexusDataType | eDataType, | ||
| int | iRank, | ||
| int * | piDim, | ||
| int | bOpen = true |
||
| ) |
Creates data set
| pcszName | Data set name |
| eDataType | Data type |
| iRank | Data set rank |
| piDim | Pointer to array of dimensions |
| bOpen | If 'true' keep the data set open after its creation |
| void nxcpp::NexusFile::CreateGroup | ( | const char * | pcszName, |
| const char * | pcszClass, | ||
| bool | bOpen = true |
||
| ) |
Adds a new group
The new group is added under the currently opened group If no group is already open add the group at the top-level (hope this is a NXentry group)
| pcszName | Group name |
| pcszClass | NeXus class |
| bOpen | If 'true' automatically open the group |
| bool nxcpp::NexusFile::CreateGroupPath | ( | const char * | pszPath | ) |
Create and open a group from a given path This method may throw a exception
| pszPath | path to group in the form : "/<NXroot>/{Group name}<{group class}>/..." if no group name is specified then open the first group for the given class example : "/<NXroot>/scan_1<NXentry>/<NXdata>" |
| std::string nxcpp::NexusFile::CurrentDataset | ( | ) |
Currently opened dataset.
| std::string nxcpp::NexusFile::CurrentGroupClass | ( | ) |
Current Group Class.
| std::string nxcpp::NexusFile::CurrentGroupName | ( | ) |
Current Group Name.
| std::string nxcpp::NexusFile::CurrentGroupPath | ( | ) |
Currently opened group path inside NeXus file.
| void nxcpp::NexusFile::Flush | ( | ) |
Flushes all data to the NeXus file.
| void nxcpp::NexusFile::GetAttribute | ( | const char * | pcszAttr, |
| int * | piBufLen, | ||
| void * | pData, | ||
| NexusDataType | eDataType | ||
| ) |
Gets a attribute
| pcszAttr | Attribute name |
| piBufLen | Pointer to BufLen |
| pData | Pointer to attribute value buffer |
| eDataType | Attribute data value type |
| void nxcpp::NexusFile::GetAttribute | ( | const char * | pcszAttr, |
| long * | plValue | ||
| ) |
Gets a 'long' attribute. Call
| pcszAttr | Attribute name |
| plValue | Pointer to attribute value buffer |
| void nxcpp::NexusFile::GetAttribute | ( | const char * | pcszAttr, |
| double * | pdValue | ||
| ) |
Gets a 'double' attribute
| pcszAttr | Attribute name |
| pdValue | Pointer to attribute value buffer |
| void nxcpp::NexusFile::GetAttribute | ( | const char * | pcszAttr, |
| float * | pfValue | ||
| ) |
Gets a 'float' attribute
| pcszAttr | Attribute name |
| pfValue | Pointer to attribute value buffer |
| void nxcpp::NexusFile::GetAttribute | ( | const char * | pcszAttr, |
| std::string * | pstrValue | ||
| ) |
Gets a 'std::string' attribute
| pcszAttr | Attribute name |
| pstrValue | Pointer to attribute value |
| void nxcpp::NexusFile::GetAttribute | ( | const char * | , |
| char * | , | ||
| int | |||
| ) |
| std::string nxcpp::NexusFile::GetAttributeAsString | ( | const NexusAttrInfo & | aAttrInfo | ) |
Gets a attribute as a string regardless of its type
| aAttrInfo | Attribute info object |
| bool nxcpp::NexusFile::GetAttributeAsString | ( | const char * | pszAttrName, |
| const char * | pcszDataSet, | ||
| std::string * | pstrValue | ||
| ) |
Gets a attribute as a std::string regardless of its type
| pszAttrName | Attribute name |
| pcszDataSet | Name of the data set containing the attributge |
| pstrValue | std::string object to put the value in |
| void nxcpp::NexusFile::GetData | ( | NexusDataSet * | pDataSet, |
| const char * | pcszDataSet = NULL |
||
| ) |
Reads data values from a data set in currently open group
| pDataSet | a pointer to a NexusDataSet instanciate by caller |
| pcszDataSet | Data set name |
| void nxcpp::NexusFile::GetDataSetInfo | ( | NexusDataSetInfo * | pDataSetInfo, |
| const char * | pcszDataSet | ||
| ) |
Gets info about a data set
| pDataSetInfo | a pointer to a NexusDataSetInfo instanciate by caller |
| pcszDataSet | Data set name |
| void nxcpp::NexusFile::GetDataSetLink | ( | NexusItemID * | pnxl | ) |
Get a handle on the currently open data set in order to link it with a group
| void nxcpp::NexusFile::GetDataSubSet | ( | NexusDataSet * | pDataSet, |
| const char * | pcszDataSet = NULL |
||
| ) |
Reads data values from a data set in currently open group
| pDataSet | a pointer to a NexusDataSet instanciate by caller |
| pcszDataSet | Data set name |
| int nxcpp::NexusFile::GetFirstAttribute | ( | NexusAttrInfo * | pAttrInfo, |
| const char * | pcszDataSet = NULL |
||
| ) |
Get info about the first attribute of the specified data set
| pAttrInfo | Pointer to a NexusAttrInfo object |
| pcszDataSet | Name of the data set to search in |
| int nxcpp::NexusFile::GetFirstItem | ( | NexusItemInfo * | pItemInfo | ) |
Get info about the first item (data set or group) in the current group
| pItemInfo | Pointer to NexusItemInfo used to store info |
| void nxcpp::NexusFile::GetGroupChildren | ( | std::vector< std::string > * | pvecDatasets, |
| std::vector< std::string > * | pvecGroupNames, | ||
| std::vector< std::string > * | pvecGroupClasses | ||
| ) |
Returns the children of the currently opened group
| pvecDatasets | empty std::vector for storing dataset names |
| pvecGroupNames | empty std::vector for storing subgroups names |
| pvecGroupClasses | empty std::vector for storing subgroups classes |
| NexusItemInfoList nxcpp::NexusFile::GetGroupChildren | ( | ) |
Returns the children of the currently opened group
| void nxcpp::NexusFile::GetGroupLink | ( | NexusItemID * | pnxl | ) |
Get a handle on the currently open group set in order to link it with a group
| int nxcpp::NexusFile::GetNextAttribute | ( | NexusAttrInfo * | pAttrInfo | ) |
Get info about the next attribute of the specified data set
| pAttrInfo | Pointer to a NexusAttrInfo object |
| int nxcpp::NexusFile::GetNextItem | ( | NexusItemInfo * | pItemInfo | ) |
Get info about the next item (data set or group) in the current group
| pItemInfo | Pointer to NexusItemInfo used to store info |
| int nxcpp::NexusFile::GetScanDim | ( | const char * | pszDataGroupPath | ) |
Get scam dimension
Reads NXdata group and look for variables datasets (with attribute axis) and return the biggest axis attribute value (note that in time scan case axis may be seeted to 0)
| pszDataGroupPath | Group Path |
| bool nxcpp::NexusFile::HasAttribute | ( | const char * | pszAttrName, |
| const char * | pcszDataSet = NULL, |
||
| const std::string & | strAttrVal = "" |
||
| ) |
Check if dataset has attribute
| pszAttrName | Name of looked attribute |
| pcszDataSet | (optionnal) Data set to open, if not specified look in currently opened dataset |
| strAttrVal | optionnal attribute value to match |
|
static |
| int nxcpp::NexusFile::ItemCount | ( | ) |
Get the number of items in the current group.
| void nxcpp::NexusFile::LinkToCurrentGroup | ( | const NexusItemID & | nxl | ) |
Link a item to the currently open group
| nxl | Handle of the item to link |
| bool nxcpp::NexusFile::OpenDataSet | ( | const char * | pcszName, |
| bool | bThrowException = true |
||
| ) |
Opens a already existing data set
| pcszName | Data set name |
| bThrowException | If 'true' thrown an exception in case of error |
| bool nxcpp::NexusFile::OpenGroup | ( | const char * | pcszName, |
| const char * | pcszClass, | ||
| bool | bThrowException = true |
||
| ) |
Opens a existing group
| pcszName | Group name |
| pcszClass | NeXus class |
| bThrowException | if true this method may throw a exception |
| bool nxcpp::NexusFile::OpenGroupPath | ( | const char * | pszPath, |
| bool | bThrowException = true |
||
| ) |
Opens a existing group from a given path
| pszPath | path to group in the form : /<NXroot>/{Group name}<{group class}>/... if no group name is specified then open the first group for the given class example : "/<NXroot>/scan_1<NXentry>/<NXdata>" |
| bThrowException | if true this method may throw a exception |
| void nxcpp::NexusFile::OpenRead | ( | const char * | pcszFullPath | ) |
Opens an existing file for read operations
| pcszFullPath | path + complete filename |
| void nxcpp::NexusFile::OpenReadWrite | ( | const char * | pcszFullPath | ) |
Opens an existing file for read/write operations
| pcszFullPath | path + complete filename |
| void nxcpp::NexusFile::PutAttr | ( | const char * | pcszName, |
| void * | pValue, | ||
| int | iLen, | ||
| NexusDataType | eDataType | ||
| ) |
Generic method for putting attribute
| pcszName | Data set name |
| pValue | pointer to value |
| iLen | Value buffer length |
| eDataType | NeXus Data type (see napi.h) |
| void nxcpp::NexusFile::PutAttr | ( | const char * | pcszName, |
| long | lValue | ||
| ) |
Puts a attribute of type 'long'
| pcszName | attribute name |
| lValue | attribute value |
| void nxcpp::NexusFile::PutAttr | ( | const char * | pcszName, |
| const char * | pcszValue | ||
| ) |
Puts a attribute of type 'C-style string'
| pcszName | attribute name |
| pcszValue | attribute value |
| void nxcpp::NexusFile::PutAttr | ( | const char * | pcszName, |
| double | dValue | ||
| ) |
Puts a attribute of type 'double'
| pcszName | attribute name |
| dValue | attribute value |
| void nxcpp::NexusFile::PutAttr | ( | const char * | pcszName, |
| float | fValue | ||
| ) |
Puts a attribute of type 'float'
| pcszName | attribute name |
| fValue | attribute value |
| void nxcpp::NexusFile::PutData | ( | void * | pData, |
| const char * | pcszName = NULL, |
||
| int | bFlush = false |
||
| ) |
Puts data in the currently open data set
| pData | Pointer to the data bloc |
| pcszName | Data set name |
| bFlush | If 'true' then immediately flush the data to the file |
| void nxcpp::NexusFile::PutDataSubSet | ( | void * | pData, |
| int * | piStart, | ||
| int * | piSize, | ||
| const char * | pcszName = NULL |
||
| ) |
Puts data subset in the currently open data set
| pData | Pointer to the data bloc |
| piStart | Indices of starting values in each dimension |
| piSize | Length of subset in each dimension |
| pcszName | Data set name |
| int nxcpp::NexusFile::SearchDataSetFromAttr | ( | const char * | pszAttrName, |
| std::vector< std::string > * | pvecDataSets, | ||
| const std::string & | strAttrVal = "" |
||
| ) |
Search for all occurences of a data set (name) with a given attribute
| pszAttrName | name of looked attribute |
| pvecDataSets | output std::vector of found data sets |
| strAttrVal | optionnal attribute value to match |
| int nxcpp::NexusFile::SearchDataSetFromAttrAndRank | ( | const char * | pszAttrName, |
| int | iRank, | ||
| std::vector< std::string > * | pvecDataSets, | ||
| const std::string & | strAttrVal = "" |
||
| ) |
Search for all occurences of a data set (name) with a given attribute
| pszAttrName | name of looked attribute |
| iRank | dataset rank |
| pvecDataSets | output std::vector of found data sets |
| strAttrVal | optionnal attribute value to match |
| int nxcpp::NexusFile::SearchFirstDataSetFromAttr | ( | const char * | pszAttrName, |
| std::string * | pstrDataSet, | ||
| const std::string & | strAttrVal = "" |
||
| ) |
Search for first occurence of a data set (name) with a given attribute
| pszAttrName | name of looked attribute |
| pstrDataSet | name of founded data set |
| strAttrVal | optionnal attribute value to match |
| int nxcpp::NexusFile::SearchFirstDataSetFromAttrAndRank | ( | const char * | pszAttrName, |
| int | iRank, | ||
| std::string * | pstrDataSet, | ||
| const std::string & | strAttrVal = "" |
||
| ) |
Search for all occurences of a data set (name) with a given attribute
| pszAttrName | name of looked attribute | |
| iRank | dataset rank | |
| [out] | pstrDataSet | dataset name found |
| strAttrVal | optionnal attribute value to match |
| int nxcpp::NexusFile::SearchGroup | ( | const char * | pszGroupName, |
| const char * | pszClassName, | ||
| std::vector< std::string > * | pvecPaths, | ||
| const char * | pszStartPath = NULL |
||
| ) |
Search for all occurences of a group (name and class) starting at a given level on the hierarchy
| pszGroupName | name of searched group |
| pszClassName | class of searched group |
| pvecPaths | output std::vector of found groups |
| pszStartPath | path for starting research |
|
inline |
Set user pointer.

|
inline |
Get user pointer.
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| void * | pData, | ||
| NexusDataType | eDataType, | ||
| int | iRank, | ||
| int * | piDim, | ||
| bool | bCreate = true |
||
| ) |
Writes data into a new or existing dataset
| pcszName | Data set name |
| pData | pointer to value |
| eDataType | NeXus Data type (see napi.h) |
| iRank | Dimensions count |
| piDim | Pointer to array of dimensions sizes |
| bCreate | true for creating the dataset before write data otherwise we suppose the dataset already created and opened |
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| void * | pData, | ||
| NexusDataType | eDataType, | ||
| const std::vector< std::size_t > & | Shape, | ||
| bool | bCreate = true |
||
| ) |
Writes data into a new or existing dataset
| pcszName | Data set name |
| pData | pointer to value |
| eDataType | NeXus Data type (see napi.h) |
| Shape | Dimensions arrau |
| bCreate | true for creating the dataset before write data otherwise we suppose the dataset already created and opened |
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| float | fValue, | ||
| bool | bCreate = true |
||
| ) |
'float' version of WriteData
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| double | dValue, | ||
| bool | bCreate = true |
||
| ) |
'double' version of WriteData
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| long | lValue, | ||
| bool | bCreate = true |
||
| ) |
'long' version of WriteData
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| const char * | pcszValue, | ||
| bool | bCreate = true |
||
| ) |
'std::string' version of WriteData
| void nxcpp::NexusFile::WriteData | ( | const char * | pcszName, |
| void * | pData, | ||
| int | _iLen, | ||
| bool | bCreate = true |
||
| ) |
'binary' version of WriteData
| void nxcpp::NexusFile::WriteDataSubSet | ( | const char * | pcszName, |
| void * | pData, | ||
| NexusDataType | eDataType, | ||
| int | iRank, | ||
| int * | piStart, | ||
| int * | piDim, | ||
| bool | bCreate = true, |
||
| bool | bNoDim = false |
||
| ) |
Writes data subset into a new or existing dataset
| pcszName | Data set name |
| pData | pointer to value |
| eDataType | NeXus Data type |
| iRank | Dimensions count |
| piStart | Pointer to array of start positions of the subset |
| piDim | Pointer to array of dimensions sizes |
| bCreate | true for creating the dataset before write data otherwise we suppose the dataset already created and opened |
| bNoDim | deprecated parameter, must be 'false' |
|
static |
1.8.13