types.h Source File

| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

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
34 typedef struct cc_xml_doc cc_xml_doc;
35 typedef struct cc_xml_elt cc_xml_elt;
36 typedef struct cc_xml_attr cc_xml_attr;
37 typedef struct cc_xml_ent cc_xml_ent;
38 typedef struct cc_xml_path cc_xml_path;
39
40 /* non-abbreviated aliases */
41 typedef cc_xml_doc cc_xml_document;
42 typedef cc_xml_elt cc_xml_element;
43 typedef cc_xml_attr cc_xml_attribute;
44 typedef cc_xml_ent cc_xml_entity;
45
46 /* streaming parsing */
47 enum cc_xml_filter_choice {
48 KEEP,
49 DISCARD
50 };
51
52 typedef 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
59 class SbXmlDocument;
60 class SbXmlElement;
61 class SbXmlAttribute;
62 class SbXmlEntity;
63 class SbXmlPath;
64
65 SbXmlDocument * COIN_DLL_API cc_xml_wrap(cc_xml_doc * doc, int pass_ownership = FALSE);
66 SbXmlElement * COIN_DLL_API cc_xml_wrap(cc_xml_elt * elt, int pass_ownership = FALSE);
67 SbXmlAttribute * COIN_DLL_API cc_xml_wrap(cc_xml_attr * attr, int pass_ownership = FALSE);
68 SbXmlEntity * COIN_DLL_API cc_xml_wrap(cc_xml_ent * ent, int pass_ownership = FALSE);
69 SbXmlPath * COIN_DLL_API cc_xml_wrap(cc_xml_path * path, int pass_ownership = FALSE);
70
71 cc_xml_doc * COIN_DLL_API cc_xml_unwrap(SbXmlDocument * doc, int pass_ownership = FALSE);
72 cc_xml_elt * COIN_DLL_API cc_xml_unwrap(SbXmlElement * elt, int pass_ownership = FALSE);
73 cc_xml_attr * COIN_DLL_API cc_xml_unwrap(SbXmlAttribute * attr, int pass_ownership = FALSE);
74 cc_xml_ent * COIN_DLL_API cc_xml_unwrap(SbXmlEntity * ent, int pass_ownership = FALSE);
75 cc_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 */
cc_xml_doc
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.