00001 /* 00002 SagaEngine library 00003 Copyright (c) 2002-2006 Skalden Studio AS 00004 00005 This software is provided 'as-is', without any express or implied 00006 warranty. In no event will the authors be held liable for any 00007 damages arising from the use of this software. 00008 00009 Permission is granted to distribute the library under the terms of the 00010 Q Public License version 1.0. Be sure to read and understand the license 00011 before using the library. It should be included here, or you may read it 00012 at http://www.trolltech.com/products/qt/licenses/licensing/qpl 00013 00014 The original version of this library can be located at: 00015 http://www.sagaengine.com/ 00016 00017 Rune Myrland 00018 rune@skalden.com 00019 */ 00020 00021 00022 #ifndef Parser_hpp 00023 #define Parser_hpp 00024 00025 #include "io_parse.hpp" 00026 #include "../stream/io_stream.hpp" 00027 00028 namespace se_core { 00029 class _SeCoreExport Parser { 00030 public: 00031 enum ModuleCode { 00032 AREA = 'A' 00033 , AREA_THINGS = 'B' 00034 , RANDOM_AREA_THINGS = 'C' 00035 , DICTIONARY = 'D' 00036 , EMBEDDED = 'E' 00037 , CONFIG = 'F' 00038 , AREA_GRID = 'G' 00039 , HEIGHTMAP_AREA = 'H' 00040 , LANGUAGE = 'L' 00041 , MENU = 'M' 00042 , THING = 'O' 00043 , SPEECH_POSITION = 'P' 00044 , RANDOM_AREA = 'R' 00045 , CUTSCENE = 'S' 00046 , TERRAIN = 'T' 00047 , PLAYER = 'X' 00048 , PLUGIN = 'Z' 00049 , SETTINGS = 'S' 00050 }; 00051 00052 enum ModuleGroup { 00053 ENGINE = 'E' 00054 , BASIC = 'B' 00055 , CLIENT = 'C' 00056 , SDL = 'S' 00057 , GBA = 'G' 00058 , OGRE = 'O' 00059 , LOGIC = 'L' 00060 , UI = 'U' 00061 , GAME = 'X' 00062 , FMOD = 'F' 00063 , PHYSX = 'P' 00064 }; 00065 00066 Parser(ParseManager &parser, unsigned char group, unsigned char code, int version); 00067 virtual ~Parser() {} 00068 int headerCode(); 00069 const char* headerCodeString(); 00070 virtual void parse(InputStream& in) = 0; 00071 00072 private: 00073 int moduleGroup; 00074 int moduleCode; 00075 int moduleVersion; 00076 }; 00077 00078 } 00079 00080 #endif
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:10 2007 by Doxygen version 1.3.9.1.