Colobot
Public Member Functions | Static Public Member Functions | List of all members
CLevelParserParam Class Reference

Public Member Functions

 CLevelParserParam (std::string name, std::string value)
 Create param from string. More...
 
 CLevelParserParam (std::string name, bool empty)
 Create empty parser param. More...
 
void SetLine (CLevelParserLine *line)
 Set line this param is part of. More...
 
CLevelParserLineGetLine ()
 Get line this param is part of. More...
 
std::string GetName ()
 
std::string GetValue ()
 
bool IsDefined ()
 
 CLevelParserParam (int value)
 Create param with given value. More...
 
 CLevelParserParam (float value)
 
 CLevelParserParam (std::string value)
 
 CLevelParserParam (bool value)
 
 CLevelParserParam (Gfx::Color value)
 
 CLevelParserParam (Math::Point value)
 
 CLevelParserParam (Math::Vector value)
 
 CLevelParserParam (ObjectType value)
 
 CLevelParserParam (Gfx::CameraType value)
 
 CLevelParserParam (CLevelParserParamVec &&array)
 
int AsInt ()
 Get value (throws exception if not found or unable to process) More...
 
float AsFloat ()
 
std::string AsString ()
 
bool AsBool ()
 
std::string AsPath (const std::string defaultDir)
 
Gfx::Color AsColor ()
 
Math::Vector AsPoint ()
 
ObjectType AsObjectType ()
 
DriveType AsDriveType ()
 
ToolType AsToolType ()
 
Gfx::WaterType AsWaterType ()
 
Gfx::EngineObjectType AsTerrainType ()
 
int AsBuildFlag ()
 
int AsResearchFlag ()
 
Gfx::PyroType AsPyroType ()
 
Gfx::CameraType AsCameraType ()
 
MissionType AsMissionType ()
 
const CLevelParserParamVec & AsArray ()
 
Gfx::PlanetType AsPlanetType ()
 
int AsInt (int def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
float AsFloat (float def)
 
std::string AsString (std::string def)
 
bool AsBool (bool def)
 
std::string AsPath (const std::string defaultDir, std::string def)
 
Gfx::Color AsColor (Gfx::Color def)
 
Math::Vector AsPoint (Math::Vector def)
 
ObjectType AsObjectType (ObjectType def)
 
DriveType AsDriveType (DriveType def)
 
ToolType AsToolType (ToolType def)
 
Gfx::WaterType AsWaterType (Gfx::WaterType def)
 
Gfx::EngineObjectType AsTerrainType (Gfx::EngineObjectType def)
 
int AsBuildFlag (int def)
 
int AsResearchFlag (int def)
 
Gfx::PyroType AsPyroType (Gfx::PyroType def)
 
Gfx::CameraType AsCameraType (Gfx::CameraType def)
 
MissionType AsMissionType (MissionType def)
 

Static Public Member Functions

static const std::string FromObjectType (ObjectType value)
 

Constructor & Destructor Documentation

CLevelParserParam::CLevelParserParam ( int  value)

Create param with given value.

CLevelParserParam::CLevelParserParam ( std::string  name,
std::string  value 
)

Create param from string.

CLevelParserParam::CLevelParserParam ( std::string  name,
bool  empty 
)

Create empty parser param.

Member Function Documentation

int CLevelParserParam::AsInt ( )

Get value (throws exception if not found or unable to process)

int CLevelParserParam::AsInt ( int  def)

Get value (returns default if not found, throws exception if unable to process)

void CLevelParserParam::SetLine ( CLevelParserLine line)

Set line this param is part of.

CLevelParserLine * CLevelParserParam::GetLine ( )

Get line this param is part of.


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