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

types.h
1#ifndef COIN_XML_TYPES_H
2#define COIN_XML_TYPES_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/basic.h>
28
29/* ********************************************************************** */
30
31#define COIN_XML_CDATA_TYPE "cdata"
32#define COIN_XML_ROOT_TYPE "root"
33
34typedef struct cc_xml_doc cc_xml_doc;
35typedef struct cc_xml_elt cc_xml_elt;
36typedef struct cc_xml_attr cc_xml_attr;
37typedef struct cc_xml_ent cc_xml_ent;
38typedef struct cc_xml_path cc_xml_path;
39
40/* non-abbreviated aliases */
41typedef cc_xml_doc cc_xml_document;
42typedef cc_xml_elt cc_xml_element;
43typedef cc_xml_attr cc_xml_attribute;
44typedef cc_xml_ent cc_xml_entity;
45
46/* streaming parsing */
47enum cc_xml_filter_choice {
48 KEEP,
49 DISCARD
50};
51
52typedef cc_xml_filter_choice cc_xml_filter_cb(void * userdata, cc_xml_doc * doc, cc_xml_elt * elt, int pushing);
53
54/* ********************************************************************** */
55
56#ifdef __cplusplus
57
58#if 0
59class SbXmlDocument;
60class SbXmlElement;
61class SbXmlAttribute;
62class SbXmlEntity;
63class SbXmlPath;
64
65SbXmlDocument * COIN_DLL_API cc_xml_wrap(cc_xml_doc * doc, int pass_ownership = FALSE);
66SbXmlElement * COIN_DLL_API cc_xml_wrap(cc_xml_elt * elt, int pass_ownership = FALSE);
67SbXmlAttribute * COIN_DLL_API cc_xml_wrap(cc_xml_attr * attr, int pass_ownership = FALSE);
68SbXmlEntity * COIN_DLL_API cc_xml_wrap(cc_xml_ent * ent, int pass_ownership = FALSE);
69SbXmlPath * COIN_DLL_API cc_xml_wrap(cc_xml_path * path, int pass_ownership = FALSE);
70
71cc_xml_doc * COIN_DLL_API cc_xml_unwrap(SbXmlDocument * doc, int pass_ownership = FALSE);
72cc_xml_elt * COIN_DLL_API cc_xml_unwrap(SbXmlElement * elt, int pass_ownership = FALSE);
73cc_xml_attr * COIN_DLL_API cc_xml_unwrap(SbXmlAttribute * attr, int pass_ownership = FALSE);
74cc_xml_ent * COIN_DLL_API cc_xml_unwrap(SbXmlEntity * ent, int pass_ownership = FALSE);
75cc_xml_path * COIN_DLL_API cc_xml_unwrap(SbXmlPath * path, int pass_ownership = FALSE);
76#endif /* 0 */
77
78#endif /* __cplusplus */
79
80/* ********************************************************************** */
81
82#endif /* !COIN_XML_TYPES_H */

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

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.