\hypertarget{class_ogre_1_1_config_file}{}\doxysection{Ogre\+::Config\+File Class Reference}
\label{class_ogre_1_1_config_file}\index{Ogre::ConfigFile@{Ogre::ConfigFile}}


Class for quickly loading settings from a text file.  




{\ttfamily \#include $<$Ogre\+Config\+File.\+h$>$}



Inheritance diagram for Ogre\+::Config\+File\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=174pt]{class_ogre_1_1_config_file__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$ \mbox{\hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Settings\+By\+Section}} $>$ \mbox{\hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Section\+Iterator}}
\item 
typedef std\+::map$<$ \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}} $\ast$ $>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Settings\+By\+Section}}
\begin{DoxyCompactList}\small\item\em Gets an iterator for stepping through all the keys / values in the file. \end{DoxyCompactList}\item 
typedef std\+::map$<$ \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}} $>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Settings\+By\+Section\+\_\+}}
\item 
typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$ \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}} $>$ \mbox{\hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Settings\+Iterator}}
\item 
typedef std\+::multimap$<$ \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} $>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}}
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_config_file_ae9cea1fe4ad70279841635eb892ba514}{Config\+File}} ()
\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_a210c66181466a969725d196d09880fc7}{clear}} (void)
\begin{DoxyCompactList}\small\item\em Clear the settings. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___general_ga783e5227595f351519627abfb740ec85}{String\+Vector}} \mbox{\hyperlink{class_ogre_1_1_config_file_a602d8d9675dba88a33970b2dab41a3a7}{get\+Multi\+Setting}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&key, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&section=\mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}) const
\begin{DoxyCompactList}\small\item\em Gets all settings from the file with the named key. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Section\+Iterator}} \mbox{\hyperlink{class_ogre_1_1_config_file_aced12d8135c24ff4bbe6f329e900b046}{get\+Section\+Iterator}} (void)
\item 
\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \mbox{\hyperlink{class_ogre_1_1_config_file_a5cf5a8153d0b073faa6b758d8d37cf84}{get\+Setting}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&key, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&section=\mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&default\+Value=\mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}) const
\begin{DoxyCompactList}\small\item\em Gets the first setting from the file with the named key. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}} \& \mbox{\hyperlink{class_ogre_1_1_config_file_abfb68162bddbd87db1cc8e725cfc05df}{get\+Settings}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&section=\mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}) const
\begin{DoxyCompactList}\small\item\em Get all the available settings in a section. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Settings\+By\+Section\+\_\+}} \& \mbox{\hyperlink{class_ogre_1_1_config_file_a62669d5b44ce5a33fbb164c6431347ed}{get\+Settings\+By\+Section}} () const
\begin{DoxyCompactList}\small\item\em Get all the available settings grouped by sections. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Settings\+Iterator}} \mbox{\hyperlink{class_ogre_1_1_config_file_a21afd77c88b4e27d4d4c04c12356d3f9}{get\+Settings\+Iterator}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&section=\mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}})
\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_a165868d7dd164934fcb0358db1b57bc7}{load}} (const \mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} \&stream, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&separators=\char`\"{}\textbackslash{}t\+:=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a data stream \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_a5b28053a489365f4b30d4d9c166443b8}{load}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&resource\+Group, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&separators=\char`\"{}\textbackslash{}t\+:=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (using resource group locations) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_a361167ade63602d0cf242ee24a10b4a8}{load}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&separators=\char`\"{}\textbackslash{}t\+:=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (not using resource group locations) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_a6f0e8df905fe76a8443fb35938b7093c}{load\+Direct}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&separators=\char`\"{}\textbackslash{}t\+:=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (not using resource group locations) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_config_file_acff4e2bdf7a14e6592a324452c243a04}{load\+From\+Resource\+System}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&resource\+Group, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&separators=\char`\"{}\textbackslash{}t\+:=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (using resource group locations) \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Class for quickly loading settings from a text file. 

\begin{DoxyRemark}{Remarks}
This class is designed to quickly parse a simple file containing key/value pairs, mainly for use in configuration settings. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
This is a very simplified approach, no multiple values per key are allowed, no grouping or context is being kept etc. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
By default the key/values pairs are tokenised based on a separator of Tab, the colon (\+:) or equals (=) character. Each key -\/ value pair must end in a carriage return. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
Settings can be optionally grouped in sections, using a header beforehand of the form \mbox{[}Section\+Name\mbox{]}. 
\end{DoxyParagraph}


\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}\label{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!SettingsMultiMap@{SettingsMultiMap}}
\index{SettingsMultiMap@{SettingsMultiMap}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{SettingsMultiMap}{SettingsMultiMap}}
{\footnotesize\ttfamily typedef std\+::multimap$<$\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}$>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Ogre\+::\+Config\+File\+::\+Settings\+Multi\+Map}}}

\mbox{\Hypertarget{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}\label{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!SettingsIterator@{SettingsIterator}}
\index{SettingsIterator@{SettingsIterator}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{SettingsIterator}{SettingsIterator}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$\mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}}$>$ \mbox{\hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Ogre\+::\+Config\+File\+::\+Settings\+Iterator}}}

\mbox{\Hypertarget{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}\label{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!SettingsBySection@{SettingsBySection}}
\index{SettingsBySection@{SettingsBySection}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{SettingsBySection}{SettingsBySection}}
{\footnotesize\ttfamily typedef std\+::map$<$\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}}$\ast$$>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Ogre\+::\+Config\+File\+::\+Settings\+By\+Section}}}



Gets an iterator for stepping through all the keys / values in the file. 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}\label{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!SettingsBySection\_@{SettingsBySection\_}}
\index{SettingsBySection\_@{SettingsBySection\_}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{SettingsBySection\_}{SettingsBySection\_}}
{\footnotesize\ttfamily typedef std\+::map$<$\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}, \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}}$>$ \mbox{\hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Ogre\+::\+Config\+File\+::\+Settings\+By\+Section\+\_\+}}}

\mbox{\Hypertarget{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}\label{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!SectionIterator@{SectionIterator}}
\index{SectionIterator@{SectionIterator}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{SectionIterator}{SectionIterator}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$\mbox{\hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Settings\+By\+Section}}$>$ \mbox{\hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Ogre\+::\+Config\+File\+::\+Section\+Iterator}}}



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_config_file_ae9cea1fe4ad70279841635eb892ba514}\label{class_ogre_1_1_config_file_ae9cea1fe4ad70279841635eb892ba514}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!ConfigFile@{ConfigFile}}
\index{ConfigFile@{ConfigFile}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{ConfigFile()}{ConfigFile()}}
{\footnotesize\ttfamily Ogre\+::\+Config\+File\+::\+Config\+File (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a361167ade63602d0cf242ee24a10b4a8}\label{class_ogre_1_1_config_file_a361167ade63602d0cf242ee24a10b4a8}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!load@{load}}
\index{load@{load}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}t\+:=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a filename (not using resource group locations) 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a5b28053a489365f4b30d4d9c166443b8}\label{class_ogre_1_1_config_file_a5b28053a489365f4b30d4d9c166443b8}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!load@{load}}
\index{load@{load}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{resource\+Group,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}t\+:=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a filename (using resource group locations) 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a165868d7dd164934fcb0358db1b57bc7}\label{class_ogre_1_1_config_file_a165868d7dd164934fcb0358db1b57bc7}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!load@{load}}
\index{load@{load}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} \&}]{stream,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}t\+:=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a data stream 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a6f0e8df905fe76a8443fb35938b7093c}\label{class_ogre_1_1_config_file_a6f0e8df905fe76a8443fb35938b7093c}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!loadDirect@{loadDirect}}
\index{loadDirect@{loadDirect}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{loadDirect()}{loadDirect()}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load\+Direct (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}t\+:=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a filename (not using resource group locations) 

\mbox{\Hypertarget{class_ogre_1_1_config_file_acff4e2bdf7a14e6592a324452c243a04}\label{class_ogre_1_1_config_file_acff4e2bdf7a14e6592a324452c243a04}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!loadFromResourceSystem@{loadFromResourceSystem}}
\index{loadFromResourceSystem@{loadFromResourceSystem}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{loadFromResourceSystem()}{loadFromResourceSystem()}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load\+From\+Resource\+System (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{resource\+Group,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}t\+:=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a filename (using resource group locations) 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a5cf5a8153d0b073faa6b758d8d37cf84}\label{class_ogre_1_1_config_file_a5cf5a8153d0b073faa6b758d8d37cf84}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getSetting@{getSetting}}
\index{getSetting@{getSetting}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getSetting()}{getSetting()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} Ogre\+::\+Config\+File\+::get\+Setting (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{key,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{section = {\ttfamily \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}},  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{default\+Value = {\ttfamily \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}} }\end{DoxyParamCaption}) const}



Gets the first setting from the file with the named key. 


\begin{DoxyParams}{Parameters}
{\em key} & The name of the setting \\
\hline
{\em section} & The name of the section it must be in (if any) \\
\hline
{\em default\+Value} & The value to return if the setting is not found \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a602d8d9675dba88a33970b2dab41a3a7}\label{class_ogre_1_1_config_file_a602d8d9675dba88a33970b2dab41a3a7}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getMultiSetting@{getMultiSetting}}
\index{getMultiSetting@{getMultiSetting}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getMultiSetting()}{getMultiSetting()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___general_ga783e5227595f351519627abfb740ec85}{String\+Vector}} Ogre\+::\+Config\+File\+::get\+Multi\+Setting (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{key,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{section = {\ttfamily \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}} }\end{DoxyParamCaption}) const}



Gets all settings from the file with the named key. 

\mbox{\Hypertarget{class_ogre_1_1_config_file_aced12d8135c24ff4bbe6f329e900b046}\label{class_ogre_1_1_config_file_aced12d8135c24ff4bbe6f329e900b046}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getSectionIterator@{getSectionIterator}}
\index{getSectionIterator@{getSectionIterator}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getSectionIterator()}{getSectionIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Section\+Iterator}} Ogre\+::\+Config\+File\+::get\+Section\+Iterator (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000046}{Deprecated}}]use \mbox{\hyperlink{class_ogre_1_1_config_file_a62669d5b44ce5a33fbb164c6431347ed}{get\+Settings\+By\+Section()}} \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a62669d5b44ce5a33fbb164c6431347ed}\label{class_ogre_1_1_config_file_a62669d5b44ce5a33fbb164c6431347ed}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getSettingsBySection@{getSettingsBySection}}
\index{getSettingsBySection@{getSettingsBySection}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getSettingsBySection()}{getSettingsBySection()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Settings\+By\+Section\+\_\+}}\& Ogre\+::\+Config\+File\+::get\+Settings\+By\+Section (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get all the available settings grouped by sections. 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a21afd77c88b4e27d4d4c04c12356d3f9}\label{class_ogre_1_1_config_file_a21afd77c88b4e27d4d4c04c12356d3f9}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getSettingsIterator@{getSettingsIterator}}
\index{getSettingsIterator@{getSettingsIterator}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getSettingsIterator()}{getSettingsIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Settings\+Iterator}} Ogre\+::\+Config\+File\+::get\+Settings\+Iterator (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{section = {\ttfamily \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}} }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000047}{Deprecated}}]use \mbox{\hyperlink{class_ogre_1_1_config_file_abfb68162bddbd87db1cc8e725cfc05df}{get\+Settings()}} \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_config_file_abfb68162bddbd87db1cc8e725cfc05df}\label{class_ogre_1_1_config_file_abfb68162bddbd87db1cc8e725cfc05df}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!getSettings@{getSettings}}
\index{getSettings@{getSettings}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{getSettings()}{getSettings()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}}\& Ogre\+::\+Config\+File\+::get\+Settings (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{section = {\ttfamily \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}}} }\end{DoxyParamCaption}) const}



Get all the available settings in a section. 

\mbox{\Hypertarget{class_ogre_1_1_config_file_a210c66181466a969725d196d09880fc7}\label{class_ogre_1_1_config_file_a210c66181466a969725d196d09880fc7}} 
\index{Ogre::ConfigFile@{Ogre::ConfigFile}!clear@{clear}}
\index{clear@{clear}!Ogre::ConfigFile@{Ogre::ConfigFile}}
\doxysubsubsection{\texorpdfstring{clear()}{clear()}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::clear (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Clear the settings. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_config_file_8h}{Ogre\+Config\+File.\+h}}\end{DoxyCompactItemize}
