RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Attributes
ImprovedConfigFile Class Reference

Used by AngelScript local storage. More...

#include <ImprovedConfigFile.h>

+ Inheritance diagram for ImprovedConfigFile:
+ Collaboration diagram for ImprovedConfigFile:

Public Member Functions

 ImprovedConfigFile ()
 
 ~ImprovedConfigFile ()
 
void loadImprovedCfg (std::string const &filename, std::string const &resource_group_name)
 
bool hasSetting (Ogre::String key, Ogre::String section="")
 
bool saveImprovedCfg (std::string const &filename, std::string const &resource_group_name)
 
void setSetting (Ogre::String key, Ogre::String value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Radian getSettingRadian (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Radian value, Ogre::String section=Ogre::BLANKSTRING)
 
bool getSettingBool (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, bool value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Real getSettingReal (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Real value, Ogre::String section=Ogre::BLANKSTRING)
 
int getSettingInt (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, int value, Ogre::String section=Ogre::BLANKSTRING)
 
unsigned int getSettingUnsignedInt (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, unsigned int value, Ogre::String section=Ogre::BLANKSTRING)
 
long getSettingLong (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, long value, Ogre::String section=Ogre::BLANKSTRING)
 
unsigned long getSettingUnsignedLong (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, unsigned long value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Vector3 getSettingVector3 (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Vector3 value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Matrix3 getSettingMatrix3 (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Matrix3 value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Matrix4 getSettingMatrix4 (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Matrix4 value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::Quaternion getSettingQuaternion (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::Quaternion value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::ColourValue getSettingColorValue (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::ColourValue value, Ogre::String section=Ogre::BLANKSTRING)
 
Ogre::StringVector getSettingStringVector (Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
 
void setSetting (Ogre::String key, Ogre::StringVector value, Ogre::String section=Ogre::BLANKSTRING)
 
- Public Member Functions inherited from RoR::ConfigFile
Ogre::ColourValue getColourValue (Ogre::String const &key, Ogre::ColourValue const &defaultValue=Ogre::ColourValue())
 
Ogre::ColourValue getColourValue (Ogre::String const &key, Ogre::String const &section, Ogre::ColourValue const &defaultValue=Ogre::ColourValue())
 
Ogre::Vector3 getVector3 (Ogre::String const &key, Ogre::String const &section, Ogre::Vector3 const &defaultValue=Ogre::Vector3::ZERO)
 
float getFloat (Ogre::String const &key, float defaultValue=0.f)
 
float getFloat (Ogre::String const &key, Ogre::String const &section, float defaultValue=0.f)
 
bool getBool (Ogre::String const &key, bool defaultValue=false)
 
bool getBool (Ogre::String const &key, Ogre::String const &section, bool defaultValue=false)
 
int getInt (Ogre::String const &key, int defaultValue=0)
 
int getInt (Ogre::String const &key, Ogre::String const &section, int defaultValue=0)
 
Ogre::String getString (Ogre::String const &key, Ogre::String const &section, Ogre::String const &defaultValue="")
 
void SetString (Ogre::String key, Ogre::String value, Ogre::String section=Ogre::BLANKSTRING)
 
bool HasSection (std::string const &name)
 
void setLoggingInfo (std::string const &filename, Console::MessageArea area)
 

Protected Attributes

Ogre::String separators
 

Detailed Description

Used by AngelScript local storage.

Definition at line 36 of file ImprovedConfigFile.h.

Constructor & Destructor Documentation

◆ ImprovedConfigFile()

ImprovedConfigFile::ImprovedConfigFile ( )
inline

Definition at line 39 of file ImprovedConfigFile.h.

◆ ~ImprovedConfigFile()

ImprovedConfigFile::~ImprovedConfigFile ( )
inline

Definition at line 44 of file ImprovedConfigFile.h.

Member Function Documentation

◆ getSettingBool()

bool ImprovedConfigFile::getSettingBool ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 112 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingColorValue()

Ogre::ColourValue ImprovedConfigFile::getSettingColorValue ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 212 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingInt()

int ImprovedConfigFile::getSettingInt ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 132 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingLong()

long ImprovedConfigFile::getSettingLong ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 152 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingMatrix3()

Ogre::Matrix3 ImprovedConfigFile::getSettingMatrix3 ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 182 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingMatrix4()

Ogre::Matrix4 ImprovedConfigFile::getSettingMatrix4 ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 192 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingQuaternion()

Ogre::Quaternion ImprovedConfigFile::getSettingQuaternion ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 202 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingRadian()

Ogre::Radian ImprovedConfigFile::getSettingRadian ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 102 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingReal()

Ogre::Real ImprovedConfigFile::getSettingReal ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 122 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingStringVector()

Ogre::StringVector ImprovedConfigFile::getSettingStringVector ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 222 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingUnsignedInt()

unsigned int ImprovedConfigFile::getSettingUnsignedInt ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 142 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingUnsignedLong()

unsigned long ImprovedConfigFile::getSettingUnsignedLong ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 162 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ getSettingVector3()

Ogre::Vector3 ImprovedConfigFile::getSettingVector3 ( Ogre::String  key,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 172 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasSetting()

bool ImprovedConfigFile::hasSetting ( Ogre::String  key,
Ogre::String  section = "" 
)
inline

Definition at line 53 of file ImprovedConfigFile.h.

+ Here is the caller graph for this function:

◆ loadImprovedCfg()

void ImprovedConfigFile::loadImprovedCfg ( std::string const &  filename,
std::string const &  resource_group_name 
)
inline

Definition at line 48 of file ImprovedConfigFile.h.

+ Here is the caller graph for this function:

◆ saveImprovedCfg()

bool ImprovedConfigFile::saveImprovedCfg ( std::string const &  filename,
std::string const &  resource_group_name 
)
inline

Definition at line 58 of file ImprovedConfigFile.h.

+ Here is the caller graph for this function:

◆ setSetting() [1/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
bool  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 117 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [2/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
int  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 137 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [3/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
long  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 157 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [4/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::ColourValue  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 217 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [5/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Matrix3  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 187 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [6/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Matrix4  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 197 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [7/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Quaternion  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 207 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [8/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Radian  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 107 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [9/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Real  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 127 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [10/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::String  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 85 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSetting() [11/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::StringVector  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 227 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [12/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
Ogre::Vector3  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 177 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [13/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
unsigned int  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 147 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

◆ setSetting() [14/14]

void ImprovedConfigFile::setSetting ( Ogre::String  key,
unsigned long  value,
Ogre::String  section = Ogre::BLANKSTRING 
)
inline

Definition at line 167 of file ImprovedConfigFile.h.

+ Here is the call graph for this function:

Field Documentation

◆ separators

Ogre::String ImprovedConfigFile::separators
protected

Definition at line 233 of file ImprovedConfigFile.h.


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