libopc
Data Structures | Typedefs | Functions
properties.h File Reference
#include <opc/config.h>
#include <opc/container.h>

Go to the source code of this file.

Data Structures

struct  OPC_DC_SIMPLE_TYPE
 
struct  OPC_PROPERTIES_STRUCT
 

Typedefs

typedef struct OPC_DC_SIMPLE_TYPE opcDCSimpleType_t
 
typedef struct OPC_PROPERTIES_STRUCT opcProperties_t
 

Functions

opc_error_t opcCorePropertiesInit (opcProperties_t *cp)
 
opc_error_t opcCorePropertiesCleanup (opcProperties_t *cp)
 
opc_error_t opcCorePropertiesRead (opcProperties_t *cp, opcContainer *c)
 
opc_error_t opcCorePropertiesWrite (opcProperties_t *cp, opcContainer *c)
 
opc_error_t opcCorePropertiesSetString (xmlChar **prop, const xmlChar *str)
 
opc_error_t opcCorePropertiesSetStringLang (opcDCSimpleType_t *prop, const xmlChar *str, const xmlChar *lang)
 

Typedef Documentation

Represents a simple Dublin Core type.

Represents the core properties of an OPC container.

Function Documentation

opc_error_t opcCorePropertiesCleanup ( opcProperties_t cp)

Cleanup the core properties cp, i.e. release all resources.

See also
opcCorePropertiesSetString
opc_error_t opcCorePropertiesInit ( opcProperties_t cp)

Initialize the core properties cp.

See also
opcCorePropertiesSetString
opc_error_t opcCorePropertiesRead ( opcProperties_t cp,
opcContainer c 
)

Rease the core properties cp from the container .

opc_error_t opcCorePropertiesSetString ( xmlChar **  prop,
const xmlChar *  str 
)

Update a string in the core properties the right way.

1 opcProperties_t cp;
2 opcCorePropertiesInit(&cp);
3 opcCorePropertiesSetString(&cp.revision, "1");
4 opcCorePropertiesSetStringLang(&cp.creator, "Florian Reuter", NULL);
5 opcCorePropertiesCleanup(&cp);
opc_error_t opcCorePropertiesSetStringLang ( opcDCSimpleType_t prop,
const xmlChar *  str,
const xmlChar *  lang 
)

Update a core properties the right way.

See also
opcCorePropertiesSetString
opc_error_t opcCorePropertiesWrite ( opcProperties_t cp,
opcContainer c 
)

Write/Update the core properties cp in the container .