|
libopc
|
#include <opc/config.h>Go to the source code of this file.
Macros | |
| #define | OPC_RELATION_INVALID (-1) |
Typedefs | |
| typedef opc_uint32_t | opcRelation |
Functions | |
| opcRelation | opcRelationFind (opcContainer *container, opcPart part, const xmlChar *relationId, const xmlChar *mimeType) |
| opc_error_t | opcRelationDelete (opcContainer *container, opcPart part, const xmlChar *relationId, const xmlChar *mimeType) |
| opcRelation | opcRelationFirst (opcContainer *container, opcPart part) |
| opcRelation | opcRelationNext (opcContainer *container, opcPart part, opcRelation relation) |
| opcPart | opcRelationGetInternalTarget (opcContainer *container, opcPart part, opcRelation relation) |
| const xmlChar * | opcRelationGetExternalTarget (opcContainer *container, opcPart part, opcRelation relation) |
| const xmlChar * | opcRelationGetType (opcContainer *container, opcPart part, opcRelation relation) |
| void | opcRelationGetInformation (opcContainer *container, opcPart part, opcRelation relation, const xmlChar **prefix, opc_uint32_t *counter, const xmlChar **type) |
| opc_uint32_t | opcRelationAdd (opcContainer *container, opcPart src, const xmlChar *rid, opcPart dest, const xmlChar *type) |
| opc_uint32_t | opcRelationAddExternal (opcContainer *container, opcPart src, const xmlChar *rid, const xmlChar *target, const xmlChar *type) |
| #define OPC_RELATION_INVALID (-1) |
Constant which represents an invalid relation.
| typedef opc_uint32_t opcRelation |
Indentifier for an OPC relation.
| opc_uint32_t opcRelationAdd | ( | opcContainer * | container, |
| opcPart | src, | ||
| const xmlChar * | rid, | ||
| opcPart | dest, | ||
| const xmlChar * | type | ||
| ) |
Add a relation to container from src part to dest part with id rid and type type.
| opc_uint32_t opcRelationAddExternal | ( | opcContainer * | container, |
| opcPart | src, | ||
| const xmlChar * | rid, | ||
| const xmlChar * | target, | ||
| const xmlChar * | type | ||
| ) |
Add an external relation to container from src part to target URL with id rid and type type.
| opc_error_t opcRelationDelete | ( | opcContainer * | container, |
| opcPart | part, | ||
| const xmlChar * | relationId, | ||
| const xmlChar * | mimeType | ||
| ) |
Deleted the relation from the container.
| opcRelation opcRelationFind | ( | opcContainer * | container, |
| opcPart | part, | ||
| const xmlChar * | relationId, | ||
| const xmlChar * | mimeType | ||
| ) |
Find a relation originating from part in container with relationId and/or mimeType. If part is OPC_PART_INVALID then part represents the root part.
| [in] | relationId | The relationId (e.g. "rId1") or NULL. |
| [in] | mimeType | The mimeType or NULL. |
| opcRelation opcRelationFirst | ( | opcContainer * | container, |
| opcPart | part | ||
| ) |
Returns the first relation. The following code will dump all relations:
| const xmlChar* opcRelationGetExternalTarget | ( | opcContainer * | container, |
| opcPart | part, | ||
| opcRelation | relation | ||
| ) |
Returns the external target or NULL if it is an internal target. The string is interned. Must not be freed.
| void opcRelationGetInformation | ( | opcContainer * | container, |
| opcPart | part, | ||
| opcRelation | relation, | ||
| const xmlChar ** | prefix, | ||
| opc_uint32_t * | counter, | ||
| const xmlChar ** | type | ||
| ) |
Get information about a relation.
| opcPart opcRelationGetInternalTarget | ( | opcContainer * | container, |
| opcPart | part, | ||
| opcRelation | relation | ||
| ) |
Returns the internal target.
| const xmlChar* opcRelationGetType | ( | opcContainer * | container, |
| opcPart | part, | ||
| opcRelation | relation | ||
| ) |
Returns the relations type. The string is interned. Must not be freed.
| opcRelation opcRelationNext | ( | opcContainer * | container, |
| opcPart | part, | ||
| opcRelation | relation | ||
| ) |
1.8.10