![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_XML_ELEMENT_H 00002 #define COIN_XML_ELEMENT_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 <stdio.h> 00028 00029 #include <Inventor/C/XML/types.h> 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif /* __clusplus */ 00034 00035 /* ********************************************************************** */ 00036 00037 COIN_DLL_API cc_xml_elt * cc_xml_elt_new(void); 00038 COIN_DLL_API cc_xml_elt * cc_xml_elt_new_from_data(const char * type, cc_xml_attr ** attrs); 00039 COIN_DLL_API cc_xml_elt * cc_xml_elt_clone(const cc_xml_elt * elt); 00040 COIN_DLL_API void cc_xml_elt_delete_x(cc_xml_elt * elt); 00041 00042 COIN_DLL_API void cc_xml_elt_set_type_x(cc_xml_elt * elt, const char * type); 00043 COIN_DLL_API const char * cc_xml_elt_get_type(const cc_xml_elt * elt); 00044 00045 COIN_DLL_API void cc_xml_elt_set_cdata_x(cc_xml_elt * elt, const char * data); 00046 COIN_DLL_API const char * cc_xml_elt_get_cdata(const cc_xml_elt * elt); 00047 COIN_DLL_API const char * cc_xml_elt_get_data(const cc_xml_elt * elt); 00048 00049 COIN_DLL_API void cc_xml_elt_remove_all_attributes_x(cc_xml_elt * elt); 00050 COIN_DLL_API void cc_xml_elt_set_attribute_x(cc_xml_elt * elt, cc_xml_attr * attr); 00051 COIN_DLL_API void cc_xml_elt_set_attributes_x(cc_xml_elt * elt, cc_xml_attr ** attrs); 00052 00053 COIN_DLL_API cc_xml_attr * cc_xml_elt_get_attribute(const cc_xml_elt * elt, const char * attrname); 00054 COIN_DLL_API int cc_xml_elt_get_num_attributes(const cc_xml_elt * elt); 00055 COIN_DLL_API const cc_xml_attr ** cc_xml_elt_get_attributes(const cc_xml_elt * elt); 00056 00057 COIN_DLL_API int cc_xml_elt_get_num_children(const cc_xml_elt * elt); 00058 COIN_DLL_API int cc_xml_elt_get_num_children_of_type(const cc_xml_elt * elt, const char * type); 00059 COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child(const cc_xml_elt * elt, int child); 00060 COIN_DLL_API int cc_xml_elt_get_child_index(const cc_xml_elt * elt, const cc_xml_elt * child); 00061 COIN_DLL_API int cc_xml_elt_get_child_type_index(const cc_xml_elt * elt, const cc_xml_elt * child); 00062 COIN_DLL_API cc_xml_elt * cc_xml_elt_get_parent(const cc_xml_elt * elt); 00063 COIN_DLL_API cc_xml_path * cc_xml_elt_get_path(const cc_xml_elt * elt); 00064 00065 COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child_of_type(const cc_xml_elt * elt, const char * type, int idx); 00066 COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child_of_type_x(cc_xml_elt * elt, const char * type, int idx); 00067 00068 COIN_DLL_API void cc_xml_elt_set_parent_x(cc_xml_elt * elt, cc_xml_elt * parent); 00069 COIN_DLL_API void cc_xml_elt_add_child_x(cc_xml_elt * elt, cc_xml_elt * child); 00070 COIN_DLL_API void cc_xml_elt_remove_child_x(cc_xml_elt * elt, cc_xml_elt * child); 00071 COIN_DLL_API void cc_xml_elt_insert_child_x(cc_xml_elt * elt, cc_xml_elt * child, int idx); 00072 COIN_DLL_API int cc_xml_elt_replace_child_x(cc_xml_elt * elt, cc_xml_elt * oldchild, cc_xml_elt * newchild); 00073 00074 COIN_DLL_API int cc_xml_elt_get_boolean(const cc_xml_elt * elt, int * value); 00075 COIN_DLL_API int cc_xml_elt_get_integer(const cc_xml_elt * elt, int * value); 00076 COIN_DLL_API int cc_xml_elt_get_uint64(const cc_xml_elt * elt, uint64_t * value); 00077 COIN_DLL_API int cc_xml_elt_get_int64(const cc_xml_elt * elt, int64_t * value); 00078 COIN_DLL_API int cc_xml_elt_get_uint32(const cc_xml_elt * elt, uint32_t * value); 00079 COIN_DLL_API int cc_xml_elt_get_int32(const cc_xml_elt * elt, int32_t * value); 00080 COIN_DLL_API int cc_xml_elt_get_float(const cc_xml_elt * elt, float * value); 00081 COIN_DLL_API int cc_xml_elt_get_double(const cc_xml_elt * elt, double * value); 00082 00083 COIN_DLL_API void cc_xml_elt_set_boolean_x(cc_xml_elt * elt, int value); 00084 COIN_DLL_API void cc_xml_elt_set_integer_x(cc_xml_elt * elt, int value); 00085 COIN_DLL_API void cc_xml_elt_set_uint64_x(cc_xml_elt * elt, uint64_t value); 00086 COIN_DLL_API void cc_xml_elt_set_int64_x(cc_xml_elt * elt, int64_t value); 00087 COIN_DLL_API void cc_xml_elt_set_uint32_x(cc_xml_elt * elt, uint32_t value); 00088 COIN_DLL_API void cc_xml_elt_set_int32_x(cc_xml_elt * elt, int32_t value); 00089 COIN_DLL_API void cc_xml_elt_set_float_x(cc_xml_elt * elt, float value); 00090 COIN_DLL_API void cc_xml_elt_set_double_x(cc_xml_elt * elt, double value); 00091 00092 COIN_DLL_API void cc_xml_elt_strip_whitespace_x(cc_xml_elt * elt); 00093 00094 COIN_DLL_API cc_xml_elt * cc_xml_elt_get_traversal_next(const cc_xml_elt * root, cc_xml_elt * here); 00095 00096 COIN_DLL_API const cc_xml_elt * cc_xml_elt_find(const cc_xml_elt * root, const cc_xml_path * path); 00097 COIN_DLL_API const cc_xml_elt * cc_xml_elt_find_next(const cc_xml_elt * root, cc_xml_elt * from, cc_xml_path * path); 00098 COIN_DLL_API cc_xml_elt * cc_xml_elt_create_x(cc_xml_elt * from, cc_xml_path * path); 00099 00100 /* ********************************************************************** */ 00101 00102 #ifdef __cplusplus 00103 } /* extern "C" */ 00104 #endif /* __clusplus */ 00105 00106 #endif /* !COIN_XML_ELEMENT_H */
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.7.5.1.