1#ifndef COIN_XML_ELEMENT_H
2#define COIN_XML_ELEMENT_H
38#include <Inventor/C/XML/types.h>
46COIN_DLL_API cc_xml_elt * cc_xml_elt_new(
void);
47COIN_DLL_API cc_xml_elt * cc_xml_elt_new_from_data(
const char * type, cc_xml_attr ** attrs);
48COIN_DLL_API cc_xml_elt * cc_xml_elt_clone(
const cc_xml_elt * elt);
49COIN_DLL_API
void cc_xml_elt_delete_x(cc_xml_elt * elt);
51COIN_DLL_API
void cc_xml_elt_set_type_x(cc_xml_elt * elt,
const char * type);
52COIN_DLL_API
const char * cc_xml_elt_get_type(
const cc_xml_elt * elt);
54COIN_DLL_API
void cc_xml_elt_set_cdata_x(cc_xml_elt * elt,
const char * data);
55COIN_DLL_API
const char * cc_xml_elt_get_cdata(
const cc_xml_elt * elt);
56COIN_DLL_API
const char * cc_xml_elt_get_data(
const cc_xml_elt * elt);
58COIN_DLL_API
void cc_xml_elt_remove_all_attributes_x(cc_xml_elt * elt);
59COIN_DLL_API
void cc_xml_elt_set_attribute_x(cc_xml_elt * elt, cc_xml_attr * attr);
60COIN_DLL_API
void cc_xml_elt_set_attributes_x(cc_xml_elt * elt, cc_xml_attr ** attrs);
62COIN_DLL_API cc_xml_attr * cc_xml_elt_get_attribute(
const cc_xml_elt * elt,
const char * attrname);
63COIN_DLL_API
int cc_xml_elt_get_num_attributes(
const cc_xml_elt * elt);
64COIN_DLL_API
const cc_xml_attr ** cc_xml_elt_get_attributes(
const cc_xml_elt * elt);
66COIN_DLL_API
int cc_xml_elt_get_num_children(
const cc_xml_elt * elt);
67COIN_DLL_API
int cc_xml_elt_get_num_children_of_type(
const cc_xml_elt * elt,
const char * type);
68COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child(
const cc_xml_elt * elt,
int child);
69COIN_DLL_API
int cc_xml_elt_get_child_index(
const cc_xml_elt * elt,
const cc_xml_elt * child);
70COIN_DLL_API
int cc_xml_elt_get_child_type_index(
const cc_xml_elt * elt,
const cc_xml_elt * child);
71COIN_DLL_API cc_xml_elt * cc_xml_elt_get_parent(
const cc_xml_elt * elt);
72COIN_DLL_API cc_xml_path * cc_xml_elt_get_path(
const cc_xml_elt * elt);
74COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child_of_type(
const cc_xml_elt * elt,
const char * type,
int idx);
75COIN_DLL_API cc_xml_elt * cc_xml_elt_get_child_of_type_x(cc_xml_elt * elt,
const char * type,
int idx);
77COIN_DLL_API
void cc_xml_elt_set_parent_x(cc_xml_elt * elt, cc_xml_elt * parent);
78COIN_DLL_API
void cc_xml_elt_add_child_x(cc_xml_elt * elt, cc_xml_elt * child);
79COIN_DLL_API
void cc_xml_elt_remove_child_x(cc_xml_elt * elt, cc_xml_elt * child);
80COIN_DLL_API
void cc_xml_elt_insert_child_x(cc_xml_elt * elt, cc_xml_elt * child,
int idx);
81COIN_DLL_API
int cc_xml_elt_replace_child_x(cc_xml_elt * elt, cc_xml_elt * oldchild, cc_xml_elt * newchild);
83COIN_DLL_API
int cc_xml_elt_get_boolean(
const cc_xml_elt * elt,
int * value);
84COIN_DLL_API
int cc_xml_elt_get_integer(
const cc_xml_elt * elt,
int * value);
85COIN_DLL_API
int cc_xml_elt_get_uint64(
const cc_xml_elt * elt, uint64_t * value);
86COIN_DLL_API
int cc_xml_elt_get_int64(
const cc_xml_elt * elt, int64_t * value);
87COIN_DLL_API
int cc_xml_elt_get_uint32(
const cc_xml_elt * elt, uint32_t * value);
88COIN_DLL_API
int cc_xml_elt_get_int32(
const cc_xml_elt * elt, int32_t * value);
89COIN_DLL_API
int cc_xml_elt_get_float(
const cc_xml_elt * elt,
float * value);
90COIN_DLL_API
int cc_xml_elt_get_double(
const cc_xml_elt * elt,
double * value);
92COIN_DLL_API
void cc_xml_elt_set_boolean_x(cc_xml_elt * elt,
int value);
93COIN_DLL_API
void cc_xml_elt_set_integer_x(cc_xml_elt * elt,
int value);
94COIN_DLL_API
void cc_xml_elt_set_uint64_x(cc_xml_elt * elt, uint64_t value);
95COIN_DLL_API
void cc_xml_elt_set_int64_x(cc_xml_elt * elt, int64_t value);
96COIN_DLL_API
void cc_xml_elt_set_uint32_x(cc_xml_elt * elt, uint32_t value);
97COIN_DLL_API
void cc_xml_elt_set_int32_x(cc_xml_elt * elt, int32_t value);
98COIN_DLL_API
void cc_xml_elt_set_float_x(cc_xml_elt * elt,
float value);
99COIN_DLL_API
void cc_xml_elt_set_double_x(cc_xml_elt * elt,
double value);
101COIN_DLL_API
void cc_xml_elt_strip_whitespace_x(cc_xml_elt * elt);
103COIN_DLL_API cc_xml_elt * cc_xml_elt_get_traversal_next(
const cc_xml_elt * root, cc_xml_elt * here);
105COIN_DLL_API
const cc_xml_elt * cc_xml_elt_find(
const cc_xml_elt * root,
const cc_xml_path * path);
106COIN_DLL_API
const cc_xml_elt * cc_xml_elt_find_next(
const cc_xml_elt * root, cc_xml_elt * from, cc_xml_path * path);
107COIN_DLL_API cc_xml_elt * cc_xml_elt_create_x(cc_xml_elt * from, cc_xml_path * path);