FMI Library: part of JModelica.org
|
Data Structures | |
struct | fmi2_xml_callbacks_t |
XML callbacks are used to process parts of XML that are not handled by the library. More... | |
Typedefs | |
typedef struct fmi2_xml_callbacks_t | fmi2_xml_callbacks_t |
Variables | |
fmi2_xml_element_start_handle_ft | fmi2_xml_callbacks_t::startHandle |
fmi2_xml_element_data_handle_ft | fmi2_xml_callbacks_t::dataHandle |
Handle start of an XML element within tool annotation in a SAX parser. More... | |
fmi2_xml_element_end_handle_ft | fmi2_xml_callbacks_t::endHandle |
Handle data of an XML element within tool annotation in a SAX parser. More... | |
void * | fmi2_xml_callbacks_t::context |
Handle end of an XML element within tool annotation in a SAX parser. More... | |
XML handling callbacks | |
typedef int(* | fmi2_xml_element_start_handle_ft) (void *context, const char *toolName, void *parent, const char *elm, const char **attr) |
Handle start of an XML element within tool annotation in a SAX parser. More... | |
typedef int(* | fmi2_xml_element_data_handle_ft) (void *context, const char *s, int len) |
Handle data of an XML element within tool annotation in a SAX parser. More... | |
typedef int(* | fmi2_xml_element_end_handle_ft) (void *context, const char *elm) |
Handle end of an XML element within tool annotation in a SAX parser. More... | |
typedef struct fmi2_xml_callbacks_t fmi2_xml_callbacks_t |
Definition at line 33 of file fmi2_xml_callbacks.h.
typedef int(* fmi2_xml_element_start_handle_ft) (void *context, const char *toolName, void *parent, const char *elm, const char **attr) |
Handle start of an XML element within tool annotation in a SAX parser.
context | as specified when setting up the callbacks, |
parentName | - tool name as given by name attibute to the Tool elelent, |
parent | - NULL for model level annotations; fmi2_import_variable_t * variable pointer for variable annotations. |
elm | - name of the element, |
attr | - attributes (names and values). The function should return 0 on success or error code on exit (in which case parsing will be aborted). |
Definition at line 47 of file fmi2_xml_callbacks.h.
typedef int(* fmi2_xml_element_data_handle_ft) (void *context, const char *s, int len) |
Handle data of an XML element within tool annotation in a SAX parser.
context | as specified when setting up the callbacks |
s | - data string |
len | - length of the data. The function should return 0 on success or error code on exit (in which case parsing will be aborted). |
Definition at line 56 of file fmi2_xml_callbacks.h.
typedef int(* fmi2_xml_element_end_handle_ft) (void *context, const char *elm) |
Handle end of an XML element within tool annotation in a SAX parser.
context | as specified when setting up the callbacks |
elm | - name of the element. The function should return 0 on success or error code on exit (in which case parsing will be aborted). |
Definition at line 64 of file fmi2_xml_callbacks.h.
fmi2_xml_element_start_handle_ft fmi2_xml_callbacks_t::startHandle |
Definition at line 68 of file fmi2_xml_callbacks.h.
fmi2_xml_element_data_handle_ft fmi2_xml_callbacks_t::dataHandle |
Handle start of an XML element within tool annotation in a SAX parser.
Definition at line 69 of file fmi2_xml_callbacks.h.
fmi2_xml_element_end_handle_ft fmi2_xml_callbacks_t::endHandle |
Handle data of an XML element within tool annotation in a SAX parser.
Definition at line 70 of file fmi2_xml_callbacks.h.
void* fmi2_xml_callbacks_t::context |
Handle end of an XML element within tool annotation in a SAX parser.
Definition at line 71 of file fmi2_xml_callbacks.h.