|
void | ua_file_namespace_init (struct ua_file_namespace *ns) |
|
void | ua_file_namespace_clear (struct ua_file_namespace *ns) |
|
void | ua_file_basenode_init (struct ua_file_basenode *node) |
|
void | ua_file_basenode_clear (struct ua_file_basenode *node) |
|
int | ua_file_basenode_set_nodeid (struct ua_file_basenode *n, struct ua_nodeid *id) |
|
int | ua_file_basenode_set_browsename (struct ua_file_basenode *n, struct ua_file_qualifiedname_ref *qn) |
|
int | ua_file_basenode_set_displayname (struct ua_file_basenode *n, struct ua_file_localizedtext_ref *lt) |
|
int | ua_file_basenode_set_description (struct ua_file_basenode *n, struct ua_file_localizedtext_ref *lt) |
|
int | ua_file_basenode_set_writemask (struct ua_file_basenode *n, uint32_t writemask) |
|
int | ua_file_basenode_add_extension (struct ua_file_basenode *n, struct ua_file_extension *ex) |
|
void | ua_file_variable_init (struct ua_file_variable *node) |
|
void | ua_file_variable_clear (struct ua_file_variable *node) |
|
int | ua_file_variable_set_value (struct ua_file_variable *n, struct ua_variant *value) |
|
int | ua_file_variable_set_datatype (struct ua_file_variable *n, struct ua_nodeid *datatype) |
|
int | ua_file_variable_set_valuerank (struct ua_file_variable *n, int32_t valuerank) |
|
int | ua_file_variable_set_arraydimensions (struct ua_file_variable *n, uint8_t num_dimensions, uint32_t *dimensions) |
|
int | ua_file_variable_set_accesslevel (struct ua_file_variable *n, uint8_t access_level) |
|
int | ua_file_variable_set_minimumsamplinginterval (struct ua_file_variable *n, uint32_t sampling_interval) |
|
int | ua_file_variable_set_historizing (struct ua_file_variable *n, bool historizing) |
|
void | ua_file_object_init (struct ua_file_object *node) |
|
void | ua_file_object_clear (struct ua_file_object *node) |
|
int | ua_file_object_set_eventnotifier (struct ua_file_object *n, uint8_t event_notifier) |
|
void | ua_file_method_init (struct ua_file_method *node) |
|
void | ua_file_method_clear (struct ua_file_method *node) |
|
int | ua_file_method_set_executable (struct ua_file_method *n, bool executable) |
|
void | ua_file_view_init (struct ua_file_view *node) |
|
void | ua_file_view_clear (struct ua_file_view *node) |
|
int | ua_file_view_set_eventnotifier (struct ua_file_view *n, uint8_t event_notifier) |
|
int | ua_file_view_set_containsnoloops (struct ua_file_view *n, bool contains_no_loops) |
|
void | ua_file_variabletype_init (struct ua_file_variabletype *node) |
|
void | ua_file_variabletype_clear (struct ua_file_variabletype *node) |
|
int | ua_file_variabletype_set_isabstract (struct ua_file_variabletype *n, bool isabstract) |
|
int | ua_file_variabletype_set_value (struct ua_file_variabletype *n, struct ua_variant *value) |
|
int | ua_file_variabletype_set_datatype (struct ua_file_variabletype *n, struct ua_nodeid *datatype) |
|
int | ua_file_variabletype_set_valuerank (struct ua_file_variabletype *n, int32_t valuerank) |
|
int | ua_file_variabletype_set_arraydimensions (struct ua_file_variabletype *n, uint8_t num_dimensions, uint32_t *dimensions) |
|
void | ua_file_objecttype_init (struct ua_file_objecttype *node) |
|
void | ua_file_objecttype_clear (struct ua_file_objecttype *node) |
|
int | ua_file_objecttype_set_isabstract (struct ua_file_objecttype *n, bool isabstract) |
|
void | ua_file_datatype_init (struct ua_file_datatype *node) |
|
void | ua_file_datatype_clear (struct ua_file_datatype *node) |
|
int | ua_file_datatype_set_isabstract (struct ua_file_datatype *n, bool isabstract) |
|
int | ua_file_datatype_set_datatypedefinition (struct ua_file_datatype *n, struct ua_file_datatypedefinition *dtdef) |
|
void | ua_file_referencetype_init (struct ua_file_referencetype *node) |
|
void | ua_file_referencetype_clear (struct ua_file_referencetype *node) |
|
int | ua_file_referencetype_set_isabstract (struct ua_file_referencetype *n, bool isabstract) |
|
int | ua_file_referencetype_set_symmetric (struct ua_file_referencetype *n, bool symmetric) |
|
int | ua_file_referencetype_set_inversename (struct ua_file_referencetype *n, struct ua_file_localizedtext_ref *inverse_name) |
|
int | ua_file_writer_init (struct ua_file_writer *w) |
| Intializes the file writer context. More...
|
|
int | ua_file_writer_clear (struct ua_file_writer *w) |
| Cleans up the file writer context. More...
|
|
int | ua_file_writer_init_registry (struct ua_file_writer *w, unsigned int size) |
| Intializes the file writer extension registry. More...
|
|
int | ua_file_writer_open (struct ua_file_writer *w, const char *filename) |
|
int | ua_file_writer_write_datatype (struct ua_file_writer *w, struct ua_file_datatype *dt) |
|
int | ua_file_writer_add_stringtables (struct ua_file_writer *w, unsigned int num_strings, const char *locales) |
|
int | ua_file_writer_add_string (struct ua_file_writer *w, unsigned int table_index, unsigned int string_index, char *text) |
| Adds a new string to the given string table. More...
|
|
int | ua_file_writer_add_namespace (struct ua_file_writer *w, const struct ua_file_namespace *ns) |
| Adds a new namespace which is provided by this model. More...
|
|
int | ua_file_writer_add_required_namespace (struct ua_file_writer *w, const struct ua_file_namespace *ns) |
| Adds a required namespace which is needed for this model. More...
|
|
int | ua_file_writer_add_extension_namespace (struct ua_file_writer *w, const char *nsuri) |
| Adds a namespace for extensions. More...
|
|
int | ua_file_writer_add_extension (struct ua_file_writer *w, struct ua_file_extension *ext) |
| Adds a global extension to the file. More...
|
|
int | ua_file_writer_add_datatype (struct ua_file_writer *w, struct ua_file_datatype *node) |
| Adds a datatype node to the file.
|
|
int | ua_file_writer_add_referencetype (struct ua_file_writer *w, struct ua_file_referencetype *node) |
| Adds a referencetype node to the file.
|
|
int | ua_file_writer_add_objecttype (struct ua_file_writer *w, struct ua_file_objecttype *node) |
| Adds a objecttype node to the file.
|
|
int | ua_file_writer_add_variabletype (struct ua_file_writer *w, struct ua_file_variabletype *node) |
| Adds a variabletype node to the file.
|
|
int | ua_file_writer_add_variable (struct ua_file_writer *w, struct ua_file_variable *node) |
| Adds a variable node to the file.
|
|
int | ua_file_writer_add_method (struct ua_file_writer *w, struct ua_file_method *node) |
| Adds a method node to the file.
|
|
int | ua_file_writer_add_object (struct ua_file_writer *w, struct ua_file_object *node) |
| Adds a object node to the file.
|
|
int | ua_file_writer_add_view (struct ua_file_writer *w, struct ua_file_view *node) |
| Adds a view node to the file.
|
|
int | ua_file_writer_add_reference (struct ua_file_writer *w, struct ua_nodeid *src, struct ua_nodeid *dst, struct ua_nodeid *type) |
| Adds a reference to the file.
|
|
int | ua_file_writer_close (struct ua_file_writer *w) |
| Closes the file opened by ua_file_writer_open. More...
|
|
The file writer offers an API for creating file in the UA binary file format.
Creating files is designed for the PC use case to create binary files in engineering use cases whih are then downloaded to embedded devices running a High Performance OPC UA server.
The binary files contains the information model of the server, but can be enriched with customer specific information like e.g. a runtime address of variables using the ua_file_extension mechanism.
It is important to understand that the API does not cache the address space, but directly writes into the file. Therefor your MUST use the correct order of calls.
The following snippet from the example filewriter_demo/demo.c demonstrates the usage.