RigsofRods
Soft-body Physics Simulation
ImprovedConfigFile.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2016 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #pragma once
23 
24 #include "Application.h"
25 #include "ConfigFile.h"
26 
27 #include <OgreConfigFile.h>
28 #include <OgreDataStream.h>
29 #include <OgreException.h>
30 #include <OgreString.h>
31 #include <OgreResourceGroupManager.h>
32 
33 #include <cstdio>
34 
37 {
38 public:
40  {
41  ConfigFile();
42  }
43 
45  {
46  }
47 
48  void loadImprovedCfg(std::string const& filename, std::string const& resource_group_name)
49  {
50  ConfigFile::load(filename, resource_group_name, this->separators, /*trimWhitespace*/true);
51  }
52 
53  bool hasSetting(Ogre::String key, Ogre::String section = "")
54  {
55  return (mSettingsPtr.find(section) != mSettingsPtr.end() && mSettingsPtr[section]->find(key) != mSettingsPtr[section]->end());
56  }
57 
58  bool saveImprovedCfg(std::string const& filename, std::string const& resource_group_name)
59  {
60  Ogre::DataStreamPtr stream
61  = Ogre::ResourceGroupManager::getSingleton().createResource(
62  filename, resource_group_name, /*overwrite=*/true);
63 
64  const size_t BUF_LEN = 2000;
65  char buf[BUF_LEN];
66  SettingsBySection::iterator secIt;
67  for (secIt = mSettingsPtr.begin(); secIt != mSettingsPtr.end(); secIt++)
68  {
69  if (secIt->first.size() > 0)
70  {
71  int num_chars = std::snprintf(buf, BUF_LEN, "[%s]\n", secIt->first.c_str());
72  stream->write(buf, num_chars);
73  }
74 
75  SettingsMultiMap::iterator setIt;
76  for (setIt = secIt->second->begin(); setIt != secIt->second->end(); setIt++)
77  {
78  int num_chars = std::snprintf(buf, BUF_LEN, "%s%c%s\n", setIt->first.c_str(), separators[0], setIt->second.c_str());
79  stream->write(buf, num_chars);
80  }
81  }
82  return true;
83  }
84 
85  void setSetting(Ogre::String key, Ogre::String value, Ogre::String section = Ogre::BLANKSTRING)
86  {
87  SettingsMultiMap* set = mSettingsPtr[section];
88  if (!set)
89  {
90  // new section
91  set = new SettingsMultiMap();
92  mSettingsPtr[section] = set;
93  }
94  if (set->count(key))
95  // known key, delete old first
96  set->erase(key);
97  // add key
98  set->insert(std::multimap<Ogre::String, Ogre::String>::value_type(key, value));
99  }
100 
101  // type specific implementations
102  Ogre::Radian getSettingRadian(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
103  {
104  return Ogre::StringConverter::parseAngle(getString(key, section));
105  }
106 
107  void setSetting(Ogre::String key, Ogre::Radian value, Ogre::String section = Ogre::BLANKSTRING)
108  {
109  setSetting(key, TOSTRING(value), section);
110  }
111 
112  bool getSettingBool(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
113  {
114  return Ogre::StringConverter::parseBool(getString(key, section));
115  }
116 
117  void setSetting(Ogre::String key, bool value, Ogre::String section = Ogre::BLANKSTRING)
118  {
119  setSetting(key, TOSTRING(value), section);
120  }
121 
122  Ogre::Real getSettingReal(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
123  {
124  return Ogre::StringConverter::parseReal(getString(key, section));
125  }
126 
127  void setSetting(Ogre::String key, Ogre::Real value, Ogre::String section = Ogre::BLANKSTRING)
128  {
129  setSetting(key, TOSTRING(value), section);
130  }
131 
132  int getSettingInt(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
133  {
134  return Ogre::StringConverter::parseInt(getString(key, section));
135  }
136 
137  void setSetting(Ogre::String key, int value, Ogre::String section = Ogre::BLANKSTRING)
138  {
139  setSetting(key, TOSTRING(value), section);
140  }
141 
142  unsigned int getSettingUnsignedInt(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
143  {
144  return Ogre::StringConverter::parseUnsignedInt(getString(key, section));
145  }
146 
147  void setSetting(Ogre::String key, unsigned int value, Ogre::String section = Ogre::BLANKSTRING)
148  {
149  setSetting(key, TOSTRING(value), section);
150  }
151 
152  long getSettingLong(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
153  {
154  return Ogre::StringConverter::parseLong(getString(key, section));
155  }
156 
157  void setSetting(Ogre::String key, long value, Ogre::String section = Ogre::BLANKSTRING)
158  {
159  setSetting(key, TOSTRING(value), section);
160  }
161 
162  unsigned long getSettingUnsignedLong(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
163  {
164  return Ogre::StringConverter::parseUnsignedLong(getString(key, section));
165  }
166 
167  void setSetting(Ogre::String key, unsigned long value, Ogre::String section = Ogre::BLANKSTRING)
168  {
169  setSetting(key, TOSTRING(value), section);
170  }
171 
172  Ogre::Vector3 getSettingVector3(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
173  {
174  return Ogre::StringConverter::parseVector3(getString(key, section));
175  }
176 
177  void setSetting(Ogre::String key, Ogre::Vector3 value, Ogre::String section = Ogre::BLANKSTRING)
178  {
179  setSetting(key, TOSTRING(value), section);
180  }
181 
182  Ogre::Matrix3 getSettingMatrix3(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
183  {
184  return Ogre::StringConverter::parseMatrix3(getString(key, section));
185  }
186 
187  void setSetting(Ogre::String key, Ogre::Matrix3 value, Ogre::String section = Ogre::BLANKSTRING)
188  {
189  setSetting(key, TOSTRING(value), section);
190  }
191 
192  Ogre::Matrix4 getSettingMatrix4(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
193  {
194  return Ogre::StringConverter::parseMatrix4(getString(key, section));
195  }
196 
197  void setSetting(Ogre::String key, Ogre::Matrix4 value, Ogre::String section = Ogre::BLANKSTRING)
198  {
199  setSetting(key, TOSTRING(value), section);
200  }
201 
202  Ogre::Quaternion getSettingQuaternion(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
203  {
204  return Ogre::StringConverter::parseQuaternion(getString(key, section));
205  }
206 
207  void setSetting(Ogre::String key, Ogre::Quaternion value, Ogre::String section = Ogre::BLANKSTRING)
208  {
209  setSetting(key, TOSTRING(value), section);
210  }
211 
212  Ogre::ColourValue getSettingColorValue(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
213  {
214  return Ogre::StringConverter::parseColourValue(getString(key, section));
215  }
216 
217  void setSetting(Ogre::String key, Ogre::ColourValue value, Ogre::String section = Ogre::BLANKSTRING)
218  {
219  setSetting(key, TOSTRING(value), section);
220  }
221 
222  Ogre::StringVector getSettingStringVector(Ogre::String key, Ogre::String section = Ogre::BLANKSTRING)
223  {
224  return Ogre::StringConverter::parseStringVector(getString(key, section));
225  }
226 
227  void setSetting(Ogre::String key, Ogre::StringVector value, Ogre::String section = Ogre::BLANKSTRING)
228  {
229  setSetting(key, TOSTRING(value), section);
230  }
231 
232 protected:
233  Ogre::String separators;
234 };
ImprovedConfigFile::getSettingReal
Ogre::Real getSettingReal(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:122
ImprovedConfigFile::getSettingInt
int getSettingInt(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:132
ImprovedConfigFile::getSettingUnsignedLong
unsigned long getSettingUnsignedLong(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:162
ImprovedConfigFile::getSettingBool
bool getSettingBool(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:112
ImprovedConfigFile::separators
Ogre::String separators
Definition: ImprovedConfigFile.h:233
ImprovedConfigFile::saveImprovedCfg
bool saveImprovedCfg(std::string const &filename, std::string const &resource_group_name)
Definition: ImprovedConfigFile.h:58
ImprovedConfigFile::getSettingStringVector
Ogre::StringVector getSettingStringVector(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:222
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::ColourValue value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:217
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, unsigned long value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:167
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Matrix4 value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:197
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, int value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:137
ImprovedConfigFile::getSettingRadian
Ogre::Radian getSettingRadian(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:102
ImprovedConfigFile::loadImprovedCfg
void loadImprovedCfg(std::string const &filename, std::string const &resource_group_name)
Definition: ImprovedConfigFile.h:48
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Radian value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:107
RoR::ConfigFile::getString
Ogre::String getString(Ogre::String const &key, Ogre::String const &section, Ogre::String const &defaultValue="")
Definition: ConfigFile.cpp:89
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Quaternion value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:207
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Vector3 value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:177
ImprovedConfigFile::getSettingColorValue
Ogre::ColourValue getSettingColorValue(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:212
set
set(SOURCE_FILES main.cpp Application.{h, cpp} ForwardDeclarations.h AppContext.{h, cpp} GameContext.{h, cpp} audio/MumbleIntegration.{h, cpp} audio/Sound.{h, cpp} audio/SoundManager.{h, cpp} audio/SoundScriptManager.{h, cpp} gameplay/AutoPilot.{h, cpp} gameplay/Character.{h, cpp} gameplay/CharacterFactory.{h, cpp} gameplay/ChatSystem.{h, cpp} gameplay/CruiseControl.cpp gameplay/EngineSim.{h, cpp} gameplay/Landusemap.{h, cpp} gameplay/RaceSystem.{h, cpp} gameplay/RepairMode.{h, cpp} gameplay/Replay.{h, cpp} gameplay/SceneMouse.{h, cpp} gameplay/ScriptEvents.h gameplay/TorqueCurve.{h, cpp} gameplay/TyrePressure.{h, cpp} gameplay/VehicleAI.{h, cpp} gfx/AdvancedScreen.h gfx/ColoredTextAreaOverlayElement.{h, cpp} gfx/ColoredTextAreaOverlayElementFactory.h gfx/DustPool.{h, cpp} gfx/EnvironmentMap.{h, cpp} gfx/GfxActor.{h, cpp} gfx/GfxData.{h, cpp} gfx/GfxScene.{h, cpp} gfx/HydraxWater.{h, cpp} gfx/IWater.h gfx/MovableText.{h, cpp} gfx/Renderdash.{h, cpp} gfx/ShadowManager.{h, cpp} gfx/SimBuffers.{h, cpp} gfx/Skidmark.{h, cpp} gfx/SkyManager.{h, cpp} gfx/SkyXManager.{h, cpp} gfx/SurveyMapTextureCreator.{h, cpp} gfx/Water.{h, cpp} gfx/camera/CameraManager.{h, cpp} gfx/camera/PerVehicleCameraContext.h gfx/hydrax/CfgFileManager.{h, cpp} gfx/hydrax/DecalsManager.{h, cpp} gfx/hydrax/Enums.{h, cpp} gfx/hydrax/FFT.{h, cpp} gfx/hydrax/GodRaysManager.{h, cpp} gfx/hydrax/GPUNormalMapManager.{h, cpp} gfx/hydrax/Help.{h, cpp} gfx/hydrax/Hydrax.{h, cpp} gfx/hydrax/Image.{h, cpp} gfx/hydrax/MaterialManager.{h, cpp} gfx/hydrax/Mesh.{h, cpp} gfx/hydrax/Module.{h, cpp} gfx/hydrax/Noise.{h, cpp} gfx/hydrax/Perlin.{h, cpp} gfx/hydrax/Prerequisites.{h, cpp} gfx/hydrax/PressurePoint.{h, cpp} gfx/hydrax/ProjectedGrid.{h, cpp} gfx/hydrax/RadialGrid.{h, cpp} gfx/hydrax/Real.{h, cpp} gfx/hydrax/RttManager.{h, cpp} gfx/hydrax/SimpleGrid.{h, cpp} gfx/hydrax/TextureManager.{h, cpp} gfx/hydrax/Wave.{h, cpp} gfx/particle/ExtinguishableFireAffector.{h, cpp} gfx/particle/ExtinguishableFireAffectorFactory.h gfx/particle/FireExtinguisherAffector.{h, cpp} gfx/particle/FireExtinguisherAffectorFactory.h gfx/particle/OgreParticleCustomParam.h gfx/particle/OgreShaderParticleRenderer.{h, cpp} gfx/skyx/AtmosphereManager.{h, cpp} gfx/skyx/BasicController.{h, cpp} gfx/skyx/CloudsManager.{h, cpp} gfx/skyx/ColorGradient.{h, cpp} gfx/skyx/Controller.h gfx/skyx/GPUManager.{h, cpp} gfx/skyx/MeshManager.{h, cpp} gfx/skyx/MoonManager.{h, cpp} gfx/skyx/Prerequisites.{h, cpp} gfx/skyx/SCfgFileManager.{h, cpp} gfx/skyx/SkyX.{h, cpp} gfx/skyx/VCloudsManager.{h, cpp} gfx/skyx/VClouds/DataManager.{h, cpp} gfx/skyx/VClouds/Ellipsoid.{h, cpp} gfx/skyx/VClouds/FastFakeRandom.{h, cpp} gfx/skyx/VClouds/GeometryBlock.{h, cpp} gfx/skyx/VClouds/GeometryManager.{h, cpp} gfx/skyx/VClouds/Lightning.{h, cpp} gfx/skyx/VClouds/LightningManager.{h, cpp} gfx/skyx/VClouds/VClouds.{h, cpp} gui/DashBoardManager.{h, cpp} gui/GUIManager.{h, cpp} gui/GUIUtils.{h, cpp} gui/OverlayWrapper.{h, cpp} gui/RTTLayer.{h, cpp} gui/imgui/imgui.{h, cpp} gui/imgui/imgui_demo.cpp gui/imgui/imgui_draw.cpp gui/imgui/imgui_widgets.cpp gui/imgui/OgreImGuiOverlay.{h, cpp} gui/imgui/OgreImGui.{h, cpp} gui/imgui/imconfig.h gui/imgui/imgui_internal.h gui/imgui/imstb_rectpack.h gui/imgui/imstb_textedit.h gui/imgui/imstb_truetype.h gui/panels/GUI_AngelScriptExamples.{h, cpp} gui/panels/GUI_CollisionsDebug.{h, cpp} gui/panels/GUI_ConsoleView.{h, cpp} gui/panels/GUI_ConsoleWindow.{h, cpp} gui/panels/GUI_DirectionArrow.{h, cpp} gui/panels/GUI_LoadingWindow.{h, cpp} gui/panels/GUI_FlexbodyDebug.{h, cpp} gui/panels/GUI_FrictionSettings.{h, cpp} gui/panels/GUI_TopMenubar.{h, cpp} gui/panels/GUI_TextureToolWindow.{h, cpp} gui/panels/GUI_RepositorySelector.{h, cpp} gui/panels/GUI_GameControls.{h, cpp} gui/panels/GUI_GameAbout.{h, cpp} gui/panels/GUI_GameChatBox.{h, cpp} gui/panels/GUI_GameMainMenu.{h, cpp} gui/panels/GUI_GameSettings.{h, cpp} gui/panels/GUI_MainSelector.{h, cpp} gui/panels/GUI_MessageBox.{h, cpp} gui/panels/GUI_MultiplayerSelector.{h, cpp} gui/panels/GUI_MultiplayerClientList.{h, cpp} gui/panels/GUI_NodeBeamUtils.{h, cpp} gui/panels/GUI_SimActorStats.{h, cpp} gui/panels/GUI_ScriptMonitor.{h, cpp} gui/panels/GUI_SimPerfStats.{h, cpp} gui/panels/GUI_SurveyMap.{h, cpp} gui/panels/GUI_VehicleDescription.{h, cpp} gui/panels/GUI_VehicleButtons.{h, cpp} network/CurlHelpers.{h, cpp} network/DiscordRpc.{h, cpp} network/Network.{h, cpp} network/OutGauge.{h, cpp} network/RoRnet.h physics/Actor.{h, cpp} physics/ApproxMath.h physics/ActorForcesEuler.cpp physics/ActorManager.{h, cpp} physics/ActorSlideNode.cpp physics/ActorSpawner.{h, cpp} physics/ActorSpawnerFlow.cpp physics/CmdKeyInertia.{h, cpp} physics/Differentials.{h, cpp} physics/Savegame.cpp physics/SimConstants.h physics/SimData.{h, cpp} physics/SlideNode.{h, cpp} physics/air/AeroEngine.h physics/air/AirBrake.{h, cpp} physics/air/Airfoil.{h, cpp} physics/air/TurboJet.{h, cpp} physics/air/TurboProp.{h, cpp} physics/collision/CartesianToTriangleTransform.h physics/collision/Collisions.{h, cpp} physics/collision/DynamicCollisions.{h, cpp} physics/collision/PointColDetector.{h, cpp} physics/collision/Triangle.h physics/flex/Flexable.h physics/flex/FlexAirfoil.{h, cpp} physics/flex/FlexBody.{h, cpp} physics/flex/FlexFactory.{h, cpp} physics/flex/FlexMesh.{h, cpp} physics/flex/FlexMeshWheel.{h, cpp} physics/flex/FlexObj.{h, cpp} physics/flex/Locator_t.h physics/water/Buoyance.{h, cpp} physics/water/ScrewProp.{h, cpp} resources/CacheSystem.{h, cpp} resources/ContentManager.{h, cpp} resources/addonpart_fileformat/AddonPartFileFormat.{h, cpp} resources/otc_fileformat/OTCFileFormat.{h, cpp} resources/odef_fileformat/ODefFileFormat.{h, cpp} resources/rig_def_fileformat/RigDef_File.{h, cpp} resources/rig_def_fileformat/RigDef_Node.{h, cpp} resources/rig_def_fileformat/RigDef_Parser.{h, cpp} resources/rig_def_fileformat/RigDef_Prerequisites.h resources/rig_def_fileformat/RigDef_Regexes.h resources/rig_def_fileformat/RigDef_SequentialImporter.{h, cpp} resources/rig_def_fileformat/RigDef_Serializer.{h, cpp} resources/rig_def_fileformat/RigDef_Validator.{h, cpp} resources/skin_fileformat/SkinFileFormat.{h, cpp} resources/terrn2_fileformat/Terrn2FileFormat.{h, cpp} resources/tobj_fileformat/TObjFileFormat.{h, cpp} resources/tuneup_fileformat/TuneupFileFormat.{h, cpp} system/AppCommandLine.cpp system/AppConfig.cpp system/Console.{h, cpp} system/ConsoleCmd.{h, cpp} system/CVar.{h, cpp} terrain/OgreTerrainPSSMMaterialGenerator.{h, cpp} terrain/ProceduralManager.{h, cpp} terrain/ProceduralRoad.{h, cpp} terrain/SurveyMapEntity.h terrain/TerrainEditor.{h, cpp} terrain/TerrainGeometryManager.{h, cpp} terrain/Terrain.{h, cpp} terrain/TerrainObjectManager.{h, cpp} threadpool/ThreadPool.h utils/ConfigFile.{h, cpp} utils/ErrorUtils.{h, cpp} utils/ForceFeedback.{h, cpp} utils/GenericFileFormat.{h, cpp} utils/ImprovedConfigFile.h utils/InputEngine.{h, cpp} utils/InterThreadStoreVector.h utils/Language.{h, cpp} utils/MeshObject.{h, cpp} utils/PlatformUtils.{h, cpp} utils/SHA1.{h, cpp} utils/Utils.{h, cpp} utils/WriteTextToTexture.{h, cpp} utils/memory/RefCountingObject.h utils/memory/RefCountingObjectPtr.h) if(ROR_USE_ANGELSCRIPT) list(APPEND SOURCE_FILES scripting/GameScript.
Definition: CMakeLists.txt:5
TOSTRING
#define TOSTRING(x)
Definition: Application.h:56
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, bool value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:117
ImprovedConfigFile
Used by AngelScript local storage.
Definition: ImprovedConfigFile.h:36
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::String value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:85
ImprovedConfigFile::getSettingUnsignedInt
unsigned int getSettingUnsignedInt(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:142
Application.h
Central state/object manager and communications hub.
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Matrix3 value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:187
ImprovedConfigFile::getSettingLong
long getSettingLong(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:152
ImprovedConfigFile::getSettingVector3
Ogre::Vector3 getSettingVector3(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:172
ImprovedConfigFile::hasSetting
bool hasSetting(Ogre::String key, Ogre::String section="")
Definition: ImprovedConfigFile.h:53
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::StringVector value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:227
ImprovedConfigFile::getSettingMatrix3
Ogre::Matrix3 getSettingMatrix3(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:182
ImprovedConfigFile::~ImprovedConfigFile
~ImprovedConfigFile()
Definition: ImprovedConfigFile.h:44
ImprovedConfigFile::getSettingQuaternion
Ogre::Quaternion getSettingQuaternion(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:202
ImprovedConfigFile::ImprovedConfigFile
ImprovedConfigFile()
Definition: ImprovedConfigFile.h:39
RoR::ConfigFile
Adds direct parsing of custom types.
Definition: ConfigFile.h:37
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, Ogre::Real value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:127
ConfigFile.h
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, long value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:157
ImprovedConfigFile::getSettingMatrix4
Ogre::Matrix4 getSettingMatrix4(Ogre::String key, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:192
ImprovedConfigFile::setSetting
void setSetting(Ogre::String key, unsigned int value, Ogre::String section=Ogre::BLANKSTRING)
Definition: ImprovedConfigFile.h:147