se_core::CompositeParser Class Reference

#include <CompositeParser.hpp>

Inheritance diagram for se_core::CompositeParser:

se_core::Parser List of all members.

Public Types

enum  ModuleCode {
  AREA = 'A', AREA_THINGS = 'B', RANDOM_AREA_THINGS = 'C', DICTIONARY = 'D',
  EMBEDDED = 'E', CONFIG = 'F', AREA_GRID = 'G', HEIGHTMAP_AREA = 'H',
  LANGUAGE = 'L', MENU = 'M', THING = 'O', SPEECH_POSITION = 'P',
  RANDOM_AREA = 'R', CUTSCENE = 'S', TERRAIN = 'T', PLAYER = 'X',
  PLUGIN = 'Z', SETTINGS = 'S'
}
enum  ModuleGroup {
  ENGINE = 'E', BASIC = 'B', CLIENT = 'C', SDL = 'S',
  GBA = 'G', OGRE = 'O', LOGIC = 'L', UI = 'U',
  GAME = 'X', FMOD = 'F', PHYSX = 'P'
}

Public Member Functions

 CompositeParser (ParseManager &parser)
 Constructor.
void parse (InputStream &in)
 Parse a composite, calling component parsers as needed.
int headerCode ()
const char * headerCodeString ()

Member Enumeration Documentation

enum se_core::Parser::ModuleCode [inherited]
 

Enumeration values:
AREA 
AREA_THINGS 
RANDOM_AREA_THINGS 
DICTIONARY 
EMBEDDED 
CONFIG 
AREA_GRID 
HEIGHTMAP_AREA 
LANGUAGE 
MENU 
THING 
SPEECH_POSITION 
RANDOM_AREA 
CUTSCENE 
TERRAIN 
PLAYER 
PLUGIN 
SETTINGS 

Definition at line 31 of file Parser.hpp.

enum se_core::Parser::ModuleGroup [inherited]
 

Enumeration values:
ENGINE 
BASIC 
CLIENT 
SDL 
GBA 
OGRE 
LOGIC 
UI 
GAME 
FMOD 
PHYSX 

Definition at line 52 of file Parser.hpp.


Constructor & Destructor Documentation

se_core::CompositeParser::CompositeParser ParseManager parser  ) 
 

Constructor.

Definition at line 42 of file CompositeParser.cpp.


Member Function Documentation

int se_core::Parser::headerCode  )  [inherited]
 

Definition at line 38 of file Parser.cpp.

Referenced by se_core::ParseManager::add().

const char * se_core::Parser::headerCodeString  )  [inherited]
 

Definition at line 45 of file Parser.cpp.

Referenced by se_core::ParseManager::add().

void se_core::CompositeParser::parse InputStream in  )  [virtual]
 

Parse a composite, calling component parsers as needed.

File format:

EO01 L(evel)|A(rea)|T(hing)|E(existing thing) name

[Z component_type] (component parser formatted data) [Z component_type] (component parser formatted data) [...]

[Q}

component_type must be registered in the dictionary DE_COMPONENT_TYPE. A parser for the component type must be registered in IoSchema::parsers().

Implements se_core::Parser.

Definition at line 48 of file CompositeParser.cpp.

References se_core::CompositeFactory::addComponent(), se_core::SpawnManager::addFactory(), AssertFatal, se_core::DE_COMPONENT_TYPE, se_core::InputStream::eof(), se_core::String::get(), LogFatal, se_core::InputStream::name(), se_core::ParseManager::parseComponent(), se_core::IoSchema::parser(), se_core::InputStream::readDictionaryWord(), se_core::InputStream::readInfoCode(), se_core::InputStream::readString(), se_core::SimSchema::spawnManager(), se_core::st_ACTOR, se_core::st_AREA, and se_core::st_LEVEL.


The documentation for this class was generated from the following files:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:24 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo