Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ParseUtil.h
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: ParseUtil.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Parser utility functions
13 */
14 
15 #ifndef ParseUtil_h
16 #define ParseUtil_h
17 
18 #include <vector>
19 #include "Types.h"
20 #include "Geometry.h"
21 #include "Color.h"
22 
23 #include "Text.h"
24 #include "Parser.h"
25 #include "Reader.h"
26 #include "Token.h"
27 
28 // +--------------------------------------------------------------------+
29 
30 bool GetDefBool(bool& dst, TermDef* def, const char* file);
31 bool GetDefText(Text& dst, TermDef* def, const char* file);
32 bool GetDefText(char* dst, TermDef* def, const char* file);
33 bool GetDefNumber(int& dst, TermDef* def, const char* file);
34 bool GetDefNumber(DWORD& dst, TermDef* def, const char* file);
35 bool GetDefNumber(float& dst, TermDef* def, const char* file);
36 bool GetDefNumber(double& dst, TermDef* def, const char* file);
37 bool GetDefVec(Vec3& dst, TermDef* def, const char* file);
38 bool GetDefColor(Color& dst, TermDef* def, const char* file);
39 bool GetDefColor(ColorValue& dst, TermDef* def, const char* file);
40 bool GetDefRect(Rect& dst, TermDef* def, const char* file);
41 bool GetDefInsets(Insets& dst, TermDef* def, const char* file);
42 bool GetDefTime(int& dst, TermDef* def, const char* file);
43 
44 bool GetDefArray(int* dst, int size, TermDef* def, const char* file);
45 bool GetDefArray(float* dst, int size, TermDef* def, const char* file);
46 bool GetDefArray(double* dst, int size, TermDef* def, const char* file);
47 bool GetDefArray(std::vector<DWORD>& array, TermDef* def, const char* file);
48 bool GetDefArray(std::vector<float>& array, TermDef* def, const char* file);
49 
50 // +--------------------------------------------------------------------+
51 
52 #endif ParseUtil_h