TiXI
3.3.0
|
Functions | |
DLL_EXPORT ReturnCode | tixiUIDCheckDuplicates (TixiDocumentHandle handle) |
Performs a check over all UIDs and checks for duplicates. More... | |
DLL_EXPORT ReturnCode | tixiUIDCheckLinks (TixiDocumentHandle handle) |
Performs a check over all nodes with the uID "isLink" and check if the corresponding uid exists in that data set. More... | |
DLL_EXPORT ReturnCode | tixiUIDGetXPath (TixiDocumentHandle handle, const char *uID, char **xPath) |
Returns the XPath to given uID. More... | |
DLL_EXPORT ReturnCode | tixiUIDCheckExists (TixiDocumentHandle handle, const char *uID) |
Checks if a uID exists. More... | |
DLL_EXPORT ReturnCode | tixiUIDSetToXPath (TixiDocumentHandle handle, const char *xPath, const char *uID) |
Sets a uID attribute to a node, specified via its XPath. More... | |
Function for UID management.
DLL_EXPORT ReturnCode tixiUIDCheckDuplicates | ( | TixiDocumentHandle | handle | ) |
Performs a check over all UIDs and checks for duplicates.
Fortran syntax:
tixi_uid_check_duplicates( integer handle, integer error )
[in] | handle | handle as returned by tixiOpenDocument, tixiOpenDocumentRecursive, tixiOpenDocumentFromHTTP, tixiCreateDocument or tixiImportFromString |
DLL_EXPORT ReturnCode tixiUIDCheckExists | ( | TixiDocumentHandle | handle, |
const char * | uID | ||
) |
Checks if a uID exists.
Fortran syntax:
tixi_uid_check_exists( integer handle, character*n uid, integer error )
[in] | handle | handle as returned by tixiOpenDocument, tixiOpenDocumentRecursive, tixiOpenDocumentFromHTTP, tixiCreateDocument or tixiImportFromString |
[in] | uID | The uid which should be checked |
DLL_EXPORT ReturnCode tixiUIDCheckLinks | ( | TixiDocumentHandle | handle | ) |
Performs a check over all nodes with the uID "isLink" and check if the corresponding uid exists in that data set.
Fortran syntax:
tixi_uid_check_links( integer handle, integer error )
[in] | handle | handle as returned by tixiOpenDocument, tixiOpenDocumentRecursive, tixiOpenDocumentFromHTTP, tixiCreateDocument or tixiImportFromString |
DLL_EXPORT ReturnCode tixiUIDGetXPath | ( | TixiDocumentHandle | handle, |
const char * | uID, | ||
char ** | xPath | ||
) |
Returns the XPath to given uID.
On successful return the memory used for text is allocated internally and must not be released by the user. The deallocation is handle when the document referred to by handle is closed.
Fortran syntax:
tixi_uid_get_xpath( integer handle, character*n uid, character*n text, integer error )
[in] | handle | handle as returned by tixiOpenDocument, tixiOpenDocumentRecursive, tixiOpenDocumentFromHTTP, tixiCreateDocument or tixiImportFromString |
[in] | uID | The uid of which the xpath should be returned |
[out] | xPath | The XPath of the element with the right uid. Empty string if uid does not exist. |
DLL_EXPORT ReturnCode tixiUIDSetToXPath | ( | TixiDocumentHandle | handle, |
const char * | xPath, | ||
const char * | uID | ||
) |
Sets a uID attribute to a node, specified via its XPath.
Fortran syntax:
tixi_uid_set_to_xpath( integer handle, character*n xpath, character*n uid, integer error )
[in] | handle | handle as returned by tixiOpenDocument, tixiOpenDocumentRecursive, tixiOpenDocumentFromHTTP, tixiCreateDocument or tixiImportFromString |
[in] | xPath | The XPath to the node which should become the uid-attribute |
[in] | uID | The uid which should be checked |