Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
CLevelParserParam Class Reference

Public Member Functions

 CLevelParserParam (std::string name, std::string value)
 Create param from string.
 
 CLevelParserParam (std::string name, bool empty)
 Create empty parser param.
 
void SetLine (CLevelParserLine *line)
 Set line this param is part of.
 
CLevelParserLineGetLine ()
 Get line this param is part of.
 
std::string GetName ()
 
std::string GetValue ()
 
bool IsDefined ()
 
 CLevelParserParam (int value)
 Create param with given value.
 
 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 (const std::vector< CLevelParserParam * > &value)
 
int AsInt ()
 Get value (throws exception if not found or unable to process)
 
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 ()
 
const std::vector
< CLevelParserParam * > & 
AsArray ()
 
int AsInt (int def)
 Get value (returns default if not found, throws exception if unable to process)
 
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)
 

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