FreeWRL / FreeX3D 4.3.0
ColladaParser.h
1/*
2
3
4Collada parser functions.
5
6*/
7
8/****************************************************************************
9 This file is part of the FreeWRL/FreeX3D Distribution.
10
11 Copyright 2009 CRC Canada. (http://www.crc.gc.ca)
12
13 FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
14 it under the terms of the GNU Lesser Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 FreeWRL/FreeX3D is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with FreeWRL/FreeX3D. If not, see <http://www.gnu.org/licenses/>.
25****************************************************************************/
26
27
28#ifndef __FREEWRL_COLLADA_PARSER_H__
29#define __FREEWRL_COLLADA_PARSER_H__
30
31int freewrl_XML_GetCurrentLineNumber();
32
33#define PARENTSTACKSIZE 256
34#define LINE freewrl_XML_GetCurrentLineNumber()
35/* this ifdef sequence is kept around, for a possible Microsoft Vista port */
36#ifdef XML_LARGE_SIZE
37#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
38#define XML_FMT_INT_MOD "I64"
39#else
40#define XML_FMT_INT_MOD "ll"
41#endif
42#else
43#define XML_FMT_INT_MOD "l"
44#endif
45
46
47//extern int CDATA_Text_curlen;
48//extern char *CDATA_Text;
49
50//extern struct X3D_Node *colladaParentStack[PARENTSTACKSIZE];
51
52/* See: .... = NULL ; make sure we know the state of the new Top of Stack */
53/*
54#define INCREMENT_PARENTINDEXC \
55 if (parentIndex < (PARENTSTACKSIZE-2)) { \
56 parentIndex++; \
57 colladaParentStack[parentIndex] = NULL; \
58 } else ConsoleMessage ("ColladaParser, line %d stack overflow",LINE);
59*/
60
61int ColladaParse (struct X3D_Group* myParent, const char *inputstring);
62
63#endif /* __FREEWRL_COLLADA_PARSER_H__ */