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)
 Create param with given value. More...
 
 CLevelParserParam (std::string value)
 Create param with given value. More...
 
 CLevelParserParam (bool value)
 Create param with given value. More...
 
 CLevelParserParam (Gfx::Color value)
 Create param with given value. More...
 
 CLevelParserParam (Math::Point value)
 Create param with given value. More...
 
 CLevelParserParam (Math::Vector value)
 Create param with given value. More...
 
 CLevelParserParam (ObjectType value)
 Create param with given value. More...
 
 CLevelParserParam (Gfx::CameraType value)
 Create param with given value. More...
 
 CLevelParserParam (CLevelParserParamVec &&array)
 Create param with given value. More...
 
int AsInt ()
 Get value (throws exception if not found or unable to process) More...
 
float AsFloat ()
 Get value (throws exception if not found or unable to process) More...
 
std::string AsString ()
 Get value (throws exception if not found or unable to process) More...
 
bool AsBool ()
 Get value (throws exception if not found or unable to process) More...
 
std::string AsPath (const std::string defaultDir)
 Get value (throws exception if not found or unable to process) More...
 
Gfx::Color AsColor ()
 Get value (throws exception if not found or unable to process) More...
 
Math::Vector AsPoint ()
 Get value (throws exception if not found or unable to process) More...
 
ObjectType AsObjectType ()
 Get value (throws exception if not found or unable to process) More...
 
DriveType AsDriveType ()
 Get value (throws exception if not found or unable to process) More...
 
ToolType AsToolType ()
 Get value (throws exception if not found or unable to process) More...
 
Gfx::WaterType AsWaterType ()
 Get value (throws exception if not found or unable to process) More...
 
Gfx::EngineObjectType AsTerrainType ()
 Get value (throws exception if not found or unable to process) More...
 
int AsBuildFlag ()
 Get value (throws exception if not found or unable to process) More...
 
int AsResearchFlag ()
 Get value (throws exception if not found or unable to process) More...
 
CScoreboard::SortType AsSortType ()
 Get value (throws exception if not found or unable to process) More...
 
Gfx::PyroType AsPyroType ()
 Get value (throws exception if not found or unable to process) More...
 
Gfx::CameraType AsCameraType ()
 Get value (throws exception if not found or unable to process) More...
 
MissionType AsMissionType ()
 Get value (throws exception if not found or unable to process) More...
 
const CLevelParserParamVec & AsArray ()
 Get value (throws exception if not found or unable to process) More...
 
Gfx::PlanetType AsPlanetType ()
 Get value (throws exception if not found or unable to process) More...
 
int AsInt (int def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
float AsFloat (float def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
std::string AsString (std::string def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
bool AsBool (bool def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
std::string AsPath (const std::string defaultDir, std::string def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Gfx::Color AsColor (Gfx::Color def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Math::Vector AsPoint (Math::Vector def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
ObjectType AsObjectType (ObjectType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
DriveType AsDriveType (DriveType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
ToolType AsToolType (ToolType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Gfx::WaterType AsWaterType (Gfx::WaterType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Gfx::EngineObjectType AsTerrainType (Gfx::EngineObjectType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
int AsBuildFlag (int def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
int AsResearchFlag (int def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
CScoreboard::SortType AsSortType (CScoreboard::SortType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Gfx::PyroType AsPyroType (Gfx::PyroType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
Gfx::CameraType AsCameraType (Gfx::CameraType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 
MissionType AsMissionType (MissionType def)
 Get value (returns default if not found, throws exception if unable to process) More...
 

Static Public Member Functions

static const std::string FromObjectType (ObjectType value)
 

Constructor & Destructor Documentation

◆ CLevelParserParam() [1/12]

CLevelParserParam::CLevelParserParam ( int  value)

Create param with given value.

◆ CLevelParserParam() [2/12]

CLevelParserParam::CLevelParserParam ( float  value)

Create param with given value.

◆ CLevelParserParam() [3/12]

CLevelParserParam::CLevelParserParam ( std::string  value)

Create param with given value.

◆ CLevelParserParam() [4/12]

CLevelParserParam::CLevelParserParam ( bool  value)

Create param with given value.

◆ CLevelParserParam() [5/12]

CLevelParserParam::CLevelParserParam ( Gfx::Color  value)

Create param with given value.

◆ CLevelParserParam() [6/12]

CLevelParserParam::CLevelParserParam ( Math::Point  value)

Create param with given value.

◆ CLevelParserParam() [7/12]

CLevelParserParam::CLevelParserParam ( Math::Vector  value)

Create param with given value.

◆ CLevelParserParam() [8/12]

CLevelParserParam::CLevelParserParam ( ObjectType  value)

Create param with given value.

◆ CLevelParserParam() [9/12]

CLevelParserParam::CLevelParserParam ( Gfx::CameraType  value)

Create param with given value.

◆ CLevelParserParam() [10/12]

CLevelParserParam::CLevelParserParam ( CLevelParserParamVec &&  array)

Create param with given value.

◆ CLevelParserParam() [11/12]

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

Create param from string.

◆ CLevelParserParam() [12/12]

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

Create empty parser param.

Member Function Documentation

◆ AsInt() [1/2]

int CLevelParserParam::AsInt ( )

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

◆ AsFloat() [1/2]

float CLevelParserParam::AsFloat ( )

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

◆ AsString() [1/2]

std::string CLevelParserParam::AsString ( )

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

◆ AsBool() [1/2]

bool CLevelParserParam::AsBool ( )

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

◆ AsPath() [1/2]

std::string CLevelParserParam::AsPath ( const std::string  defaultDir)

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

◆ AsColor() [1/2]

Gfx::Color CLevelParserParam::AsColor ( )

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

◆ AsPoint() [1/2]

Math::Vector CLevelParserParam::AsPoint ( )

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

◆ AsObjectType() [1/2]

ObjectType CLevelParserParam::AsObjectType ( )

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

◆ AsDriveType() [1/2]

DriveType CLevelParserParam::AsDriveType ( )

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

◆ AsToolType() [1/2]

ToolType CLevelParserParam::AsToolType ( )

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

◆ AsWaterType() [1/2]

Gfx::WaterType CLevelParserParam::AsWaterType ( )

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

◆ AsTerrainType() [1/2]

Gfx::EngineObjectType CLevelParserParam::AsTerrainType ( )

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

◆ AsBuildFlag() [1/2]

int CLevelParserParam::AsBuildFlag ( )

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

◆ AsResearchFlag() [1/2]

int CLevelParserParam::AsResearchFlag ( )

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

◆ AsSortType() [1/2]

CScoreboard::SortType CLevelParserParam::AsSortType ( )

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

◆ AsPyroType() [1/2]

Gfx::PyroType CLevelParserParam::AsPyroType ( )

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

◆ AsCameraType() [1/2]

Gfx::CameraType CLevelParserParam::AsCameraType ( )

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

◆ AsMissionType() [1/2]

MissionType CLevelParserParam::AsMissionType ( )

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

◆ AsArray()

const CLevelParserParamVec & CLevelParserParam::AsArray ( )

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

◆ AsPlanetType()

Gfx::PlanetType CLevelParserParam::AsPlanetType ( )

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

◆ AsInt() [2/2]

int CLevelParserParam::AsInt ( int  def)

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

◆ AsFloat() [2/2]

float CLevelParserParam::AsFloat ( float  def)

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

◆ AsString() [2/2]

std::string CLevelParserParam::AsString ( std::string  def)

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

◆ AsBool() [2/2]

bool CLevelParserParam::AsBool ( bool  def)

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

◆ AsPath() [2/2]

std::string CLevelParserParam::AsPath ( const std::string  defaultDir,
std::string  def 
)

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

◆ AsColor() [2/2]

Gfx::Color CLevelParserParam::AsColor ( Gfx::Color  def)

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

◆ AsPoint() [2/2]

Math::Vector CLevelParserParam::AsPoint ( Math::Vector  def)

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

◆ AsObjectType() [2/2]

ObjectType CLevelParserParam::AsObjectType ( ObjectType  def)

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

◆ AsDriveType() [2/2]

DriveType CLevelParserParam::AsDriveType ( DriveType  def)

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

◆ AsToolType() [2/2]

ToolType CLevelParserParam::AsToolType ( ToolType  def)

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

◆ AsWaterType() [2/2]

Gfx::WaterType CLevelParserParam::AsWaterType ( Gfx::WaterType  def)

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

◆ AsTerrainType() [2/2]

Gfx::EngineObjectType CLevelParserParam::AsTerrainType ( Gfx::EngineObjectType  def)

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

◆ AsBuildFlag() [2/2]

int CLevelParserParam::AsBuildFlag ( int  def)

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

◆ AsResearchFlag() [2/2]

int CLevelParserParam::AsResearchFlag ( int  def)

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

◆ AsSortType() [2/2]

CScoreboard::SortType CLevelParserParam::AsSortType ( CScoreboard::SortType  def)

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

◆ AsPyroType() [2/2]

Gfx::PyroType CLevelParserParam::AsPyroType ( Gfx::PyroType  def)

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

◆ AsCameraType() [2/2]

Gfx::CameraType CLevelParserParam::AsCameraType ( Gfx::CameraType  def)

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

◆ AsMissionType() [2/2]

MissionType CLevelParserParam::AsMissionType ( MissionType  def)

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

◆ SetLine()

void CLevelParserParam::SetLine ( CLevelParserLine line)

Set line this param is part of.

◆ GetLine()

CLevelParserLine * CLevelParserParam::GetLine ( )

Get line this param is part of.


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