diff options
Diffstat (limited to 'docs/html/_config_8h_source.html')
-rw-r--r-- | docs/html/_config_8h_source.html | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/docs/html/_config_8h_source.html b/docs/html/_config_8h_source.html new file mode 100644 index 0000000..f62730d --- /dev/null +++ b/docs/html/_config_8h_source.html @@ -0,0 +1,158 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<title>Rally X: source/data/Config.h Source File</title> + +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> + +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</script> + +</head> +<body> +<div id="top"><!-- do not remove this div! --> + + +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + + <td id="projectlogo"><img alt="Logo" src="car.PNG"/></td> + + + <td style="padding-left: 0.5em;"> + <div id="projectname">Rally X + + </div> + <div id="projectbrief">ELEN3009 Project by Justin Wernick and David Schneider</div> + </td> + + + + </tr> + </tbody> +</table> +</div> + +<!-- Generated by Doxygen 1.7.5.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div class="header"> + <div class="headertitle"> +<div class="title">source/data/Config.h</div> </div> +</div> +<div class="contents"> +<a href="_config_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef CONFIG_H</span> +<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define CONFIG_H</span> +<a name="l00003"></a>00003 <span class="preprocessor"></span> +<a name="l00004"></a>00004 <span class="preprocessor">#include <cstdlib></span> +<a name="l00005"></a>00005 <span class="preprocessor">#include <string></span> +<a name="l00006"></a>00006 <span class="preprocessor">#include <fstream></span> +<a name="l00007"></a>00007 <span class="preprocessor">#include <map></span> +<a name="l00008"></a>00008 <span class="keyword">using namespace </span>std; +<a name="l00009"></a>00009 +<a name="l00020"></a><a class="code" href="class_config.html">00020</a> <span class="keyword">class </span><a class="code" href="class_config.html" title="Object for handling user settings loaded from a file.">Config</a> +<a name="l00021"></a>00021 { +<a name="l00022"></a>00022 <span class="keyword">public</span>: +<a name="l00032"></a>00032 <a class="code" href="class_config.html" title="Object for handling user settings loaded from a file.">Config</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& filename); +<a name="l00033"></a>00033 +<a name="l00034"></a>00034 <span class="comment">//Assignment and copy operations are handled by the compiler generated versions</span> +<a name="l00035"></a>00035 +<a name="l00041"></a>00041 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> screenWidth() <span class="keyword">const</span>; +<a name="l00042"></a>00042 +<a name="l00048"></a>00048 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> screenHeight() <span class="keyword">const</span>; +<a name="l00049"></a>00049 +<a name="l00055"></a>00055 <span class="keywordtype">bool</span> fullscreen() <span class="keyword">const</span>; +<a name="l00056"></a>00056 +<a name="l00057"></a>00057 <span class="keyword">private</span>: +<a name="l00067"></a>00067 <span class="keywordtype">void</span> readFile(ifstream& file, map<string,string>& map); +<a name="l00068"></a>00068 +<a name="l00078"></a>00078 <span class="keywordtype">void</span> fillValues(<span class="keyword">const</span> map<string, string>& readValues, map<string, string>& unfoundValues); +<a name="l00079"></a>00079 +<a name="l00092"></a>00092 <span class="keywordtype">string</span> extractValue(<span class="keyword">const</span> map<string, string>& readValues, map<string, string>& unfoundValues, <span class="keyword">const</span> <span class="keywordtype">string</span>& key, <span class="keyword">const</span> <span class="keywordtype">string</span>& defaultValue); +<a name="l00093"></a>00093 +<a name="l00100"></a>00100 <span class="keywordtype">void</span> writeUnfoundValues(ofstream& file, <span class="keyword">const</span> map<string, string>& unfoundValues); +<a name="l00101"></a>00101 +<a name="l00107"></a>00107 <span class="keywordtype">void</span> setScreenWidth(<span class="keyword">const</span> <span class="keywordtype">string</span>& screenWidthStr); +<a name="l00108"></a>00108 +<a name="l00114"></a>00114 <span class="keywordtype">void</span> setScreenHeight(<span class="keyword">const</span> <span class="keywordtype">string</span>& screenHeightStr); +<a name="l00115"></a>00115 +<a name="l00121"></a>00121 <span class="keywordtype">void</span> setFullscreen(<span class="keyword">const</span> <span class="keywordtype">string</span>& fullscreenStr); +<a name="l00122"></a>00122 +<a name="l00123"></a><a class="code" href="class_config.html#a46dce43903bb24bac8c2ffc92f2ee4da">00123</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_config.html#a46dce43903bb24bac8c2ffc92f2ee4da" title="The desired width of the screen in pixels.">_screenWidth</a>; +<a name="l00124"></a><a class="code" href="class_config.html#ac27364c75bc8d5e82119988df85c1599">00124</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_config.html#ac27364c75bc8d5e82119988df85c1599" title="The desired height of the screen in pixels.">_screenHeight</a>; +<a name="l00125"></a><a class="code" href="class_config.html#ad6fddaaf52742adcba95155b3635e807">00125</a> <span class="keywordtype">bool</span> <a class="code" href="class_config.html#ad6fddaaf52742adcba95155b3635e807" title="The desired fullscreen or windowed setting.">_fullscreen</a>; +<a name="l00126"></a>00126 +<a name="l00127"></a><a class="code" href="class_config.html#abebfdbe6033183421dcdb4cdb6fc9549">00127</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#abebfdbe6033183421dcdb4cdb6fc9549" title="The key for the screen width setting, initialized to "screen_width".">SCREEN_WIDTH_KEY</a>; +<a name="l00128"></a><a class="code" href="class_config.html#a5dd914d11bd6f43c06ad4682be0efaba">00128</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#a5dd914d11bd6f43c06ad4682be0efaba" title="The key for the screen height setting, initialized to "screen_height".">SCREEN_HEIGHT_KEY</a>; +<a name="l00129"></a><a class="code" href="class_config.html#ae2dd20bca46b767d2a30c32de7ab78cb">00129</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#ae2dd20bca46b767d2a30c32de7ab78cb" title="The key for the fullscreen setting, initialized to "fullscreen".">FULLSCREEN_KEY</a>; +<a name="l00130"></a>00130 +<a name="l00131"></a><a class="code" href="class_config.html#ad6f88b173db3508eaeb7b569655b5cf2">00131</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#ad6f88b173db3508eaeb7b569655b5cf2" title="The default value for the screen width setting, initialized to 800.">SCREEN_WIDTH_DEFAULT</a>; +<a name="l00132"></a><a class="code" href="class_config.html#a2382c43dd0d51b3d52bf88d18438c579">00132</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#a2382c43dd0d51b3d52bf88d18438c579" title="The default value for the screen height setting, initialized to 600.">SCREEN_HEIGHT_DEFAULT</a>; +<a name="l00133"></a><a class="code" href="class_config.html#a3195b4273ebe9ac691167bff71394720">00133</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="class_config.html#a3195b4273ebe9ac691167bff71394720" title="The default value for the fullscreen setting, initialized to false.">FULLSCREEN_DEFAULT</a>; +<a name="l00134"></a>00134 }; +<a name="l00135"></a>00135 +<a name="l00136"></a>00136 <span class="preprocessor">#endif // CONFIG_H</span> +</pre></div></div> +</div> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a></div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + + + +<hr class="footer"/><address class="footer"><small> +Generated on Wed Oct 5 2011 20:08:30 for Rally X by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.7.5.1 +</small></address> + +</body> +</html> |