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

types.h
00001 #ifndef COIN_XML_TYPES_H
00002 #define COIN_XML_TYPES_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/basic.h>
00028 
00029 /* ********************************************************************** */
00030 
00031 #define COIN_XML_CDATA_TYPE "cdata"
00032 #define COIN_XML_ROOT_TYPE  "root"
00033 
00034 typedef  struct cc_xml_doc       cc_xml_doc;
00035 typedef  struct cc_xml_elt       cc_xml_elt;
00036 typedef  struct cc_xml_attr      cc_xml_attr;
00037 typedef  struct cc_xml_ent       cc_xml_ent;
00038 typedef  struct cc_xml_path      cc_xml_path;
00039 
00040 /* non-abbreviated aliases */
00041 typedef  cc_xml_doc              cc_xml_document;
00042 typedef  cc_xml_elt              cc_xml_element;
00043 typedef  cc_xml_attr             cc_xml_attribute;
00044 typedef  cc_xml_ent              cc_xml_entity;
00045 
00046 /* streaming parsing */
00047 enum cc_xml_filter_choice {
00048   KEEP,
00049   DISCARD
00050 };
00051 
00052 typedef cc_xml_filter_choice cc_xml_filter_cb(void * userdata, cc_xml_doc * doc, cc_xml_elt * elt, int pushing);
00053 
00054 /* ********************************************************************** */
00055 
00056 #ifdef __cplusplus
00057 
00058 #if 0
00059 class SbXmlDocument;
00060 class SbXmlElement;
00061 class SbXmlAttribute;
00062 class SbXmlEntity;
00063 class SbXmlPath;
00064 
00065 SbXmlDocument *  COIN_DLL_API cc_xml_wrap(cc_xml_doc * doc, int pass_ownership = FALSE);
00066 SbXmlElement *   COIN_DLL_API cc_xml_wrap(cc_xml_elt * elt, int pass_ownership = FALSE);
00067 SbXmlAttribute * COIN_DLL_API cc_xml_wrap(cc_xml_attr * attr, int pass_ownership = FALSE);
00068 SbXmlEntity *    COIN_DLL_API cc_xml_wrap(cc_xml_ent * ent, int pass_ownership = FALSE);
00069 SbXmlPath *      COIN_DLL_API cc_xml_wrap(cc_xml_path * path, int pass_ownership = FALSE);
00070 
00071 cc_xml_doc *     COIN_DLL_API cc_xml_unwrap(SbXmlDocument * doc, int pass_ownership = FALSE);
00072 cc_xml_elt *     COIN_DLL_API cc_xml_unwrap(SbXmlElement * elt, int pass_ownership = FALSE);
00073 cc_xml_attr *    COIN_DLL_API cc_xml_unwrap(SbXmlAttribute * attr, int pass_ownership = FALSE);
00074 cc_xml_ent *     COIN_DLL_API cc_xml_unwrap(SbXmlEntity * ent, int pass_ownership = FALSE);
00075 cc_xml_path *    COIN_DLL_API cc_xml_unwrap(SbXmlPath * path, int pass_ownership = FALSE);
00076 #endif /* 0 */
00077 
00078 #endif /* __cplusplus */
00079 
00080 /* ********************************************************************** */
00081 
00082 #endif /* !COIN_XML_TYPES_H */

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

Generated on Thu Apr 28 2011 03:43:09 for Coin by Doxygen 1.7.4.