Coin Logo http://www.sim.no/
http://www.coin3d.org/

document.h
1 #ifndef COIN_XMLDOCUMENT_H
2 #define COIN_XMLDOCUMENT_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) by Kongsberg Oil & Gas Technologies.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Kongsberg Oil & Gas Technologies
18  * about acquiring a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/C/XML/types.h>
28 
29 /* ********************************************************************** */
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34 
35 /* basic construction */
36 COIN_DLL_API cc_xml_doc * cc_xml_doc_new(void);
37 COIN_DLL_API void cc_xml_doc_delete_x(cc_xml_doc * doc);
38 
39 /* parser configuration */
40 COIN_DLL_API void cc_xml_doc_set_filter_cb_x(cc_xml_doc * doc, cc_xml_filter_cb * cb, void * userdata);
41 COIN_DLL_API void cc_xml_doc_get_filter_cb(const cc_xml_doc * doc, cc_xml_filter_cb *& cb, void *& userdata);
42 
43 /* document io */
44 COIN_DLL_API SbBool cc_xml_doc_read_file_x(cc_xml_doc * doc, const char * path);
45 COIN_DLL_API SbBool cc_xml_doc_read_buffer_x(cc_xml_doc * doc, const char * buffer, size_t buflen);
46 
47 COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_x(cc_xml_doc * doc, const char * buffer, size_t buflen);
48 COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_done_x(cc_xml_doc * doc, const char * buffer, size_t buflen);
49 
50 COIN_DLL_API SbBool cc_xml_doc_write_to_buffer(const cc_xml_doc * doc, char *& buffer, size_t & bytes);
51 COIN_DLL_API SbBool cc_xml_doc_write_to_file(const cc_xml_doc * doc, const char * path);
52 
53 COIN_DLL_API cc_xml_path * cc_xml_doc_diff(const cc_xml_doc * doc, const cc_xml_doc * other);
54 
55 /* document attributes */
56 COIN_DLL_API void cc_xml_doc_set_filename_x(cc_xml_doc * doc, const char * path);
57 COIN_DLL_API const char * cc_xml_doc_get_filename(const cc_xml_doc * doc);
58 
59 /* misc... */
60 
61 COIN_DLL_API cc_xml_elt * cc_xml_doc_get_root(const cc_xml_doc * doc);
62 COIN_DLL_API void cc_xml_doc_set_current_x(cc_xml_doc * doc, cc_xml_elt * elt);
63 COIN_DLL_API cc_xml_elt * cc_xml_doc_get_current(const cc_xml_doc * doc);
64 COIN_DLL_API void cc_xml_doc_strip_whitespace_x(cc_xml_doc * doc);
65 
66 COIN_DLL_API void cc_xml_doc_set_root_x(cc_xml_doc * doc, cc_xml_elt * root);
67 
68 COIN_DLL_API const cc_xml_elt * cc_xml_doc_find_element(const cc_xml_doc * doc, cc_xml_path * path);
69 COIN_DLL_API const cc_xml_elt * cc_xml_doc_find_next_element(const cc_xml_doc * doc, cc_xml_elt * elt, cc_xml_path * path);
70 COIN_DLL_API cc_xml_elt * cc_xml_doc_create_element_x(cc_xml_doc * doc, cc_xml_path * path);
71 
72 
73 #ifdef __cplusplus
74 } /* extern "C" */
75 #endif /* __cplusplus */
76 
77 #endif /* !COIN_XML_DOCUMENT_H */
cc_xml_doc * cc_xml_doc_new(void)
void cc_xml_doc_get_filter_cb(const cc_xml_doc *doc, cc_xml_filter_cb *&cb, void *&userdata)
void cc_xml_doc_delete_x(cc_xml_doc *doc)
void cc_xml_doc_set_filter_cb_x(cc_xml_doc *doc, cc_xml_filter_cb *cb, void *userdata)
struct cc_xml_doc cc_xml_doc
opaque container object type for XML documents
Definition: types.h:34

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Feb 7 2018 for Coin by Doxygen 1.8.14.