![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_XMLDOCUMENT_H 00002 #define COIN_XMLDOCUMENT_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Kongsberg Oil & Gas Technologies 00018 * about acquiring a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/C/XML/types.h> 00028 00029 /* ********************************************************************** */ 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif /* __cplusplus */ 00034 00035 /* basic construction */ 00036 COIN_DLL_API cc_xml_doc * cc_xml_doc_new(void); 00037 COIN_DLL_API void cc_xml_doc_delete_x(cc_xml_doc * doc); 00038 00039 /* parser configuration */ 00040 COIN_DLL_API void cc_xml_doc_set_filter_cb_x(cc_xml_doc * doc, cc_xml_filter_cb * cb, void * userdata); 00041 COIN_DLL_API void cc_xml_doc_get_filter_cb(const cc_xml_doc * doc, cc_xml_filter_cb *& cb, void *& userdata); 00042 00043 /* document io */ 00044 COIN_DLL_API SbBool cc_xml_doc_read_file_x(cc_xml_doc * doc, const char * path); 00045 COIN_DLL_API SbBool cc_xml_doc_read_buffer_x(cc_xml_doc * doc, const char * buffer, size_t buflen); 00046 00047 COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_x(cc_xml_doc * doc, const char * buffer, size_t buflen); 00048 COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_done_x(cc_xml_doc * doc, const char * buffer, size_t buflen); 00049 00050 COIN_DLL_API SbBool cc_xml_doc_write_to_buffer(const cc_xml_doc * doc, char *& buffer, size_t & bytes); 00051 COIN_DLL_API SbBool cc_xml_doc_write_to_file(const cc_xml_doc * doc, const char * path); 00052 00053 COIN_DLL_API cc_xml_path * cc_xml_doc_diff(const cc_xml_doc * doc, const cc_xml_doc * other); 00054 00055 /* document attributes */ 00056 COIN_DLL_API void cc_xml_doc_set_filename_x(cc_xml_doc * doc, const char * path); 00057 COIN_DLL_API const char * cc_xml_doc_get_filename(const cc_xml_doc * doc); 00058 00059 /* misc... */ 00060 00061 COIN_DLL_API cc_xml_elt * cc_xml_doc_get_root(const cc_xml_doc * doc); 00062 COIN_DLL_API void cc_xml_doc_set_current_x(cc_xml_doc * doc, cc_xml_elt * elt); 00063 COIN_DLL_API cc_xml_elt * cc_xml_doc_get_current(const cc_xml_doc * doc); 00064 COIN_DLL_API void cc_xml_doc_strip_whitespace_x(cc_xml_doc * doc); 00065 00066 COIN_DLL_API void cc_xml_doc_set_root_x(cc_xml_doc * doc, cc_xml_elt * root); 00067 00068 COIN_DLL_API const cc_xml_elt * cc_xml_doc_find_element(const cc_xml_doc * doc, cc_xml_path * path); 00069 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); 00070 COIN_DLL_API cc_xml_elt * cc_xml_doc_create_element_x(cc_xml_doc * doc, cc_xml_path * path); 00071 00072 00073 #ifdef __cplusplus 00074 } /* extern "C" */ 00075 #endif /* __cplusplus */ 00076 00077 #endif /* !COIN_XML_DOCUMENT_H */
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on 7 Jan 2016 for Coin by Doxygen 1.6.1.