|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
25 #ifndef _Hydrax_CfgFileManager_H_
26 #define _Hydrax_CfgFileManager_H_
53 const bool load(
const Ogre::String& File)
const;
58 const bool save(
const Ogre::String& File,
const Ogre::String& Path =
"")
const;
60 static Ogre::String
_getCfgString(
const Ogre::String& Name,
const int& Value);
61 static Ogre::String
_getCfgString(
const Ogre::String& Name,
const Ogre::Real& Value);
62 static Ogre::String
_getCfgString(
const Ogre::String& Name,
const bool& Value);
63 static Ogre::String
_getCfgString(
const Ogre::String& Name,
const Ogre::Vector2& Value);
64 static Ogre::String
_getCfgString(
const Ogre::String& Name,
const Ogre::Vector3& Value);
70 static int _getIntValue(Ogre::ConfigFile& CfgFile,
const Ogre::String Name);
75 static Ogre::Real
_getFloatValue(Ogre::ConfigFile& CfgFile,
const Ogre::String Name);
80 static bool _getBoolValue(Ogre::ConfigFile& CfgFile,
const Ogre::String Name);
85 static Ogre::Vector2
_getVector2Value(Ogre::ConfigFile& CfgFile,
const Ogre::String Name);
90 static Ogre::Vector3
_getVector3Value(Ogre::ConfigFile& CfgFile,
const Ogre::String Name);
100 static bool _isStringInList(
const Ogre::StringVector &List,
const Ogre::String &Find);
106 const bool _saveToFile(
const Ogre::String& Data,
const Ogre::String& File,
const Ogre::String& Path)
const;
111 const void _loadCfgFile(
const Ogre::String& File, std::pair<bool,Ogre::ConfigFile> &Result)
const;
const void _loadCfgFile(const Ogre::String &File, std::pair< bool, Ogre::ConfigFile > &Result) const
Load a cfg file in an Ogre::ConfigFile.
const Ogre::String _getRttCfgString() const
Get rtt quality config string.
const bool _checkVersion(Ogre::ConfigFile &CfgFile) const
Check hydrax version cfg file.
Struct wich contains an especific width and height value.
const bool load(const Ogre::String &File) const
Load hydrax cfg file.
const void _loadRttSettings(Ogre::ConfigFile &CfgFile) const
Load rtt settings.
const bool save(const Ogre::String &File, const Ogre::String &Path="") const
Save current hydrax config to a file.
static Size _getSizeValue(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get size value.
static bool _getBoolValue(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get bool value.
static Ogre::Vector3 _getVector3Value(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get vector3 value.
const Ogre::String _getComponentsCfgString() const
Get components config string.
Hydrax * mHydrax
Hydrax parent pointer.
CfgFileManager(Hydrax *h)
const void _loadComponentsSettings(Ogre::ConfigFile &CfgFile) const
Load components settings.
static Ogre::String _getCfgString(const Ogre::String &Name, const int &Value)
const bool _saveToFile(const Ogre::String &Data, const Ogre::String &File, const Ogre::String &Path) const
Save a string in file.
Class to load/save all Hydrax options from/to a config file.
const Ogre::String _getVersionCfgString() const
Get hydrax version cfg string.
static int _getIntValue(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get int value.
static Ogre::Vector2 _getVector2Value(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get vector2 value.
static Ogre::Real _getFloatValue(Ogre::ConfigFile &CfgFile, const Ogre::String Name)
Get float value.
static bool _isStringInList(const Ogre::StringVector &List, const Ogre::String &Find)
Check is a std::vector<Ogre::String> contains a specified Ogre::String.