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


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=173pt]{class_ogre_1_1_config_file__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}$<$ \hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Settings\+By\+Section} $>$ \hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Section\+Iterator}
\item 
typedef std\+::map$<$ \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map} $\ast$ $>$ \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$<$ \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map} $>$ \hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Settings\+By\+Section\+\_\+}
\item 
typedef \hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}$<$ \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map} $>$ \hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Settings\+Iterator}
\item 
typedef std\+::multimap$<$ \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} $>$ \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_config_file_ae9cea1fe4ad70279841635eb892ba514}{Config\+File} ()
\item 
void \hyperlink{class_ogre_1_1_config_file_a210c66181466a969725d196d09880fc7}{clear} (void)
\begin{DoxyCompactList}\small\item\em Clear the settings. \end{DoxyCompactList}\item 
\hyperlink{group___general_ga783e5227595f351519627abfb740ec85}{String\+Vector} \hyperlink{class_ogre_1_1_config_file_a602d8d9675dba88a33970b2dab41a3a7}{get\+Multi\+Setting} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&key, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&section=\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 
\hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Section\+Iterator} \hyperlink{class_ogre_1_1_config_file_aced12d8135c24ff4bbe6f329e900b046}{get\+Section\+Iterator} (void)
\item 
\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \hyperlink{class_ogre_1_1_config_file_a5cf5a8153d0b073faa6b758d8d37cf84}{get\+Setting} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&key, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&section=\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&default\+Value=\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 \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map} \& \hyperlink{class_ogre_1_1_config_file_abfb68162bddbd87db1cc8e725cfc05df}{get\+Settings} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&section=\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 \hyperlink{class_ogre_1_1_config_file_a1c93ac229f0693f0831579c0657ab290}{Settings\+By\+Section\+\_\+} \& \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 
\hyperlink{class_ogre_1_1_config_file_adf764e20ebcf5c52d0ea887b1468a283}{Settings\+Iterator} \hyperlink{class_ogre_1_1_config_file_a21afd77c88b4e27d4d4c04c12356d3f9}{get\+Settings\+Iterator} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&section=\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG})
\item 
void \hyperlink{class_ogre_1_1_config_file_a296b804d48bcfbab54bc1a78e09527c2}{load} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&separators=\char`\"{}\textbackslash{}=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (not using resource group locations) \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_config_file_a7bc1cffb49d4d4beb4ac7eb62e510cd6}{load} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&resource\+Group, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&separators=\char`\"{}\textbackslash{}=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (using resource group locations) \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_config_file_a5069fa46f9f7409b4ac0d92411432d88}{load} (const \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} \&stream, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&separators=\char`\"{}\textbackslash{}=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a data stream \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_config_file_acc38259b51c50f75d25f87584467ca4b}{load\+Direct} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&separators=\char`\"{}\textbackslash{}=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (not using resource group locations) \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_config_file_a1a493e60397beadb7b6edb7e4844f94e}{load\+From\+Resource\+System} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&resource\+Group, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&separators=\char`\"{}\textbackslash{}=\char`\"{}, bool trim\+Whitespace=true)
\begin{DoxyCompactList}\small\item\em load from a filename (using resource group locations) \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{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}


\subsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}\label{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!Settings\+Multi\+Map@{Settings\+Multi\+Map}}
\index{Settings\+Multi\+Map@{Settings\+Multi\+Map}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{Settings\+Multi\+Map}{SettingsMultiMap}}
{\footnotesize\ttfamily typedef std\+::multimap$<$\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}$>$ \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!Settings\+Iterator@{Settings\+Iterator}}
\index{Settings\+Iterator@{Settings\+Iterator}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{Settings\+Iterator}{SettingsIterator}}
{\footnotesize\ttfamily typedef \hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}$<$\hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}$>$ \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!Settings\+By\+Section@{Settings\+By\+Section}}
\index{Settings\+By\+Section@{Settings\+By\+Section}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{Settings\+By\+Section}{SettingsBySection}}
{\footnotesize\ttfamily typedef std\+::map$<$\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}$\ast$$>$ \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!Settings\+By\+Section\+\_\+@{Settings\+By\+Section\+\_\+}}
\index{Settings\+By\+Section\+\_\+@{Settings\+By\+Section\+\_\+}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{Settings\+By\+Section\+\_\+}{SettingsBySection\_}}
{\footnotesize\ttfamily typedef std\+::map$<$\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}, \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}$>$ \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!Section\+Iterator@{Section\+Iterator}}
\index{Section\+Iterator@{Section\+Iterator}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{Section\+Iterator}{SectionIterator}}
{\footnotesize\ttfamily typedef \hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}$<$\hyperlink{class_ogre_1_1_config_file_a77b98c7359f2ff7b67b9039e8979a2ac}{Settings\+By\+Section}$>$ \hyperlink{class_ogre_1_1_config_file_aa0167bf5f0a33e109d2de01a6a14f2f0}{Ogre\+::\+Config\+File\+::\+Section\+Iterator}}



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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_config_file_a296b804d48bcfbab54bc1a78e09527c2}\label{class_ogre_1_1_config_file_a296b804d48bcfbab54bc1a78e09527c2}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!load@{load}}
\index{load@{load}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}=\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_a7bc1cffb49d4d4beb4ac7eb62e510cd6}\label{class_ogre_1_1_config_file_a7bc1cffb49d4d4beb4ac7eb62e510cd6}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!load@{load}}
\index{load@{load}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{resource\+Group,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}=\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_a5069fa46f9f7409b4ac0d92411432d88}\label{class_ogre_1_1_config_file_a5069fa46f9f7409b4ac0d92411432d88}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!load@{load}}
\index{load@{load}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} \&}]{stream,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}=\char`\"{}},  }\item[{bool}]{trim\+Whitespace = {\ttfamily true} }\end{DoxyParamCaption})}



load from a data stream 

\mbox{\Hypertarget{class_ogre_1_1_config_file_acc38259b51c50f75d25f87584467ca4b}\label{class_ogre_1_1_config_file_acc38259b51c50f75d25f87584467ca4b}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!load\+Direct@{load\+Direct}}
\index{load\+Direct@{load\+Direct}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{load\+Direct()}{loadDirect()}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load\+Direct (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}=\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_a1a493e60397beadb7b6edb7e4844f94e}\label{class_ogre_1_1_config_file_a1a493e60397beadb7b6edb7e4844f94e}} 
\index{Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}!load\+From\+Resource\+System@{load\+From\+Resource\+System}}
\index{load\+From\+Resource\+System@{load\+From\+Resource\+System}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{load\+From\+Resource\+System()}{loadFromResourceSystem()}}
{\footnotesize\ttfamily void Ogre\+::\+Config\+File\+::load\+From\+Resource\+System (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{resource\+Group,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{separators = {\ttfamily \char`\"{}\textbackslash{}=\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\+::\+Config\+File@{Ogre\+::\+Config\+File}!get\+Setting@{get\+Setting}}
\index{get\+Setting@{get\+Setting}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{get\+Setting()}{getSetting()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} Ogre\+::\+Config\+File\+::get\+Setting (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{key,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{section = {\ttfamily \hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}},  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{default\+Value = {\ttfamily \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!get\+Multi\+Setting@{get\+Multi\+Setting}}
\index{get\+Multi\+Setting@{get\+Multi\+Setting}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{get\+Multi\+Setting()}{getMultiSetting()}}
{\footnotesize\ttfamily \hyperlink{group___general_ga783e5227595f351519627abfb740ec85}{String\+Vector} Ogre\+::\+Config\+File\+::get\+Multi\+Setting (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{key,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{section = {\ttfamily \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!get\+Section\+Iterator@{get\+Section\+Iterator}}
\index{get\+Section\+Iterator@{get\+Section\+Iterator}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{get\+Section\+Iterator()}{getSectionIterator()}}
{\footnotesize\ttfamily \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[\hyperlink{deprecated__deprecated000043}{Deprecated}]use \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!get\+Settings\+By\+Section@{get\+Settings\+By\+Section}}
\index{get\+Settings\+By\+Section@{get\+Settings\+By\+Section}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{get\+Settings\+By\+Section()}{getSettingsBySection()}}
{\footnotesize\ttfamily const \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. 



References Ogre\+::\+B\+L\+A\+N\+K\+S\+T\+R\+I\+NG.

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

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000044}{Deprecated}]use \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!get\+Settings@{get\+Settings}}
\index{get\+Settings@{get\+Settings}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\texorpdfstring{get\+Settings()}{getSettings()}}
{\footnotesize\ttfamily const \hyperlink{class_ogre_1_1_config_file_a7c64847e5235249d699b38a36c8fd2db}{Settings\+Multi\+Map}\& Ogre\+::\+Config\+File\+::get\+Settings (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{section = {\ttfamily \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\+::\+Config\+File@{Ogre\+::\+Config\+File}!clear@{clear}}
\index{clear@{clear}!Ogre\+::\+Config\+File@{Ogre\+::\+Config\+File}}
\subsubsection{\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 
\hyperlink{_ogre_config_file_8h}{Ogre\+Config\+File.\+h}\end{DoxyCompactItemize}
