libsff

Home Modules Examples

/home/pinky2/mattijs/OpenFOAM/OpenFOAM-1.0/applications/utilities/mesh/conversion/ccm24ToFoam/libccmio/libccmio/ccmiocore.h File Reference

Go to the source code of this file.

Core functions

The minimal set of functions.

CCMIOError CCMIOOpen (const char *filename, CCMIOIOType mode, CCMIONode *root)
 Opens the data file.

CCMIOError CCMIOClose (CCMIONode root)
 Closes the data file.

CCMIOError CCMIOGetNode (CCMIOError *err, CCMIONode parent, const char *path, CCMIONode *node)
 Finds a node, given a node path.

CCMIOError CCMIOGetNumberOfChildren (CCMIOError *err, CCMIONode parent, int *n)
 Returns the number of children in the parent node.

CCMIOError CCMIOGetNextChild (CCMIOError *err, CCMIONode parent, int *n, CCMIONode *child)
 Returns the next child node.

CCMIOError CCMIOGetName (CCMIOError *err, CCMIONode node, char *name)
 Returns the name of the node.

CCMIOError CCMIOSetName (CCMIOError *err, CCMIONode node, const char *name)
 Sets the name of an existing node.

CCMIOError CCMIOGetLabel (CCMIOError *err, CCMIONode node, char *label)
 Returns the label of the node.

CCMIOError CCMIOSetLabel (CCMIOError *err, CCMIONode node, const char *label)
 Sets the label of an existing node.

CCMIOError CCMIOCreateNode (CCMIOError *err, CCMIONode parent, int openDup, const char *name, const char *label, CCMIONode *node)
 Creates a new node.

CCMIOError CCMIOCreateLink (CCMIOError *err, CCMIONode parent, const char *name, const char *filename, const char *destName, CCMIONode *node)
 Creates a new link.

CCMIOError CCMIODeleteNode (CCMIOError *err, CCMIONode node)
 Deletes the node.

CCMIOError CCMIODeleteAllChildren (CCMIOError *err, CCMIONode node)
 Deletes all children of the node, but not the node itself.

CCMIOError CCMIOMoveNode (CCMIOError *err, CCMIONode node, CCMIONode newParent)
 Moves the node underneath newParent.

CCMIOError CCMIOGetDimensions (CCMIOError *err, CCMIONode node, int *nDims, int **dims)
 Returns the number of items in the node's data.

CCMIOError CCMIOGetDataSize (CCMIOError *err, CCMIONode node, unsigned int *bytes)
 Returns the number of bytes of the data.

CCMIOError CCMIOGetDataType (CCMIOError *err, CCMIONode node, CCMIODataType *type)
 Returns the data type for the node.

CCMIOError CCMIOSetDataType (CCMIOError *err, CCMIONode node, CCMIODataType type,...)
 Sets the datatype of the node.

CCMIOError CCMIOvSetDataType (CCMIOError *err, CCMIONode node, CCMIODataType type, va_list args)
 Opens the data file.

CCMIOError CCMIOSetDataTypev (CCMIOError *err, CCMIONode node, CCMIODataType type, int nDims, const int *dims)
 Opens the data file.

CCMIOError CCMIOReadData (CCMIOError *err, CCMIONode node, void *data, CCMIODataType expected, int dimsExpected)
 Returns all the data in the node.

CCMIOError CCMIOReadDataPoint (CCMIOError *err, CCMIONode node, void *data,...)
 Returns one element of data.

CCMIOError CCMIOWriteDataPoint (CCMIOError *err, CCMIONode node, void *data,...)
 Write one element of data.

CCMIOError CCMIOWriteData (CCMIOError *err, CCMIONode node, const void *data)
 Writes the entire node's data.

int CCMIOAreNodesEqual (CCMIONode node1, CCMIONode node2)
 Returns TRUE if node1 == node2, FALSE otherwise.

CCMIOError CCMIOGetRootNode (CCMIOError *err, CCMIONode node, CCMIONode *root)
 Returns the root node, or kCCMIOBadParameterErr if 'node' is not valid.


Generated on Mon Dec 13 16:20:26 2004 for libccmio by doxygen 1.3.6