FMI Library: part of JModelica.org
fmi2_xml_callbacks.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2012 Modelon AB
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the BSD style license.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  FMILIB_License.txt file for more details.
11 
12  You should have received a copy of the FMILIB_License.txt file
13  along with this program. If not, contact Modelon AB <http://www.modelon.com>.
14 */
15 
16 #ifndef FMI2_XML_CALLBACKS_H
17 #define FMI2_XML_CALLBACKS_H
18 
19 #include <fmilib_config.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
34 
47 typedef int (*fmi2_xml_element_start_handle_ft)( void *context, const char *toolName, void *parent, const char *elm, const char **attr);
48 
56 typedef int (*fmi2_xml_element_data_handle_ft)(void* context, const char *s, int len);
57 
64 typedef int (*fmi2_xml_element_end_handle_ft)(void *context, const char *elm);
65 
71  void* context;
72 };
73 /* @}
74 */
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 /* JM_CONTEXT_H */
80 #endif
Library configuration file generated by the build system.
void * context
Handle end of an XML element within tool annotation in a SAX parser.
fmi2_xml_element_end_handle_ft endHandle
Handle data of an XML element within tool annotation in a SAX parser.
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.
XML callbacks are used to process parts of XML that are not handled by the library.
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.
fmi2_xml_element_start_handle_ft startHandle
fmi2_xml_element_data_handle_ft dataHandle
Handle start of an XML element within tool annotation in a SAX parser.
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.