OC Updated for version 2.0
Functions
Tree Management

Functions

OCerror oc_fetch (OCobject link, const char *constraint, OCdxd dxdkind, OCflags flags, OCobject *rootp)
OCerror oc_root_free (OCobject link, OCobject ddsroot)
const char * oc_tree_text (OCobject link, OCobject ddsroot)

Function Documentation

OCerror oc_fetch ( OCobject  link,
const char *  constraint,
OCdxd  dxdkind,
OCflags  flags,
OCobject rootp 
)

This procedure is used to send requests to the server to obtain either a DAS, DDS, or DATADDS response and produce a corresponding tree. It fetchs and parses a given class of DXD the server specified at open time, and using a specified set of constraints and flags.

Parameters:
[in]linkThe link through which the server is accessed.
[in]constraintThe constraint to be applied to the request.
[in]dxdkindThe OCdxd value indicating what to fetch (i.e. DAS, DDS, or DataDDS).
[in]flagsThe 'OR' of OCflags to control the fetch: The OCONDISK flag is defined to cause the fetched xdr data to be stored on disk instead of in memory.
[out]rootpA pointer a location to store the root node of the tree associated with the the request.
Return values:
OC_NOERRThe procedure executed normally.
OtherErrorOne of the arguments (link, etc.) was invalid.

Definition at line 126 of file oc.c.

References OC_NOERR, OCDEREF, and OCVERIFY.

OCerror oc_root_free ( OCobject  link,
OCobject  ddsroot 
)

This procedure reclaims all resources associated with a given tree of objects associated with a given root. If the root is that of a DataDDS, then the associated data tree will be reclaimed as well.

Parameters:
[in]linkThe link through which the server is accessed.
[in]ddsrootThe root of the tree to be reclaimed.
Return values:
OC_NOERRThe procedure executed normally.
OtherErrorOne of the arguments (link, etc.) was invalid.

Definition at line 158 of file oc.c.

References OC_NOERR, OCDEREF, and OCVERIFY.

const char* oc_tree_text ( OCobject  link,
OCobject  ddsroot 
)

This procedure returns the textual part of a DAS, DDS, or DATADDS request exactly as sent by the server.

Parameters:
[in]linkThe link through which the server is accessed.
[in]ddsrootThe root of the tree whose text is to be returned.
Return values:
OC_NOERRThe procedure executed normally.
OtherErrorOne of the arguments (link, etc.) was invalid.

Definition at line 180 of file oc.c.

References OCDEREF, and OCVERIFYX.