Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 303

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CConfigFileBase.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</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">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Defines</a>  </div>
  <div class="headertitle">
<div class="title">CConfigFileBase.h File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="utils__defs_8h_source.html">mrpt/utils/utils_defs.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_t_enum_type_8h_source.html">mrpt/utils/TEnumType.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_c_matrix_template_8h_source.html">mrpt/math/CMatrixTemplate.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="string__utils_8h_source.html">mrpt/system/string_utils.h</a>&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for CConfigFileBase.h:</div>
<div class="dyncontent">
<div class="center"><img src="_c_config_file_base_8h__incl.png" border="0" usemap="#_c_config_file_base_8h" alt=""/></div>
<map name="_c_config_file_base_8h" id="_c_config_file_base_8h">
<area shape="rect" id="node3" href="utils__defs_8h.html" title="mrpt/utils/utils_defs.h" alt="" coords="998,229,1144,256"/><area shape="rect" id="node116" href="_t_enum_type_8h.html" title="mrpt/utils/TEnumType.h" alt="" coords="752,155,915,181"/><area shape="rect" id="node123" href="_c_matrix_template_8h.html" title="mrpt/math/CMatrixTemplate.h" alt="" coords="436,80,631,107"/><area shape="rect" id="node141" href="string__utils_8h.html" title="mrpt/system/string_utils.h" alt="" coords="950,80,1123,107"/><area shape="rect" id="node7" href="os_8h.html" title="mrpt/system/os.h" alt="" coords="1948,304,2071,331"/><area shape="rect" id="node20" href="base_2include_2mrpt_2base_2link__pragmas_8h.html" title="mrpt/base/link_pragmas.h" alt="" coords="394,528,566,555"/><area shape="rect" id="node23" href="boost__join_8h.html" title="mrpt/utils/boost_join.h" alt="" coords="161,603,311,629"/><area shape="rect" id="node25" href="base_2include_2mrpt_2utils_2types_8h.html" title="mrpt/utils/types.h" alt="" coords="1767,379,1890,405"/><area shape="rect" id="node63" href="mrpt__macros_8h.html" title="mrpt/utils/mrpt_macros.h" alt="" coords="2234,379,2400,405"/><area shape="rect" id="node66" href="compiler__fixes_8h.html" title="mrpt/utils/compiler_fixes.h" alt="" coords="1109,304,1283,331"/><area shape="rect" id="node93" href="smart__ptr_8hpp.html" title="mrpt/otherlibs/stlplus/smart_ptr.hpp" alt="" coords="547,379,774,405"/><area shape="rect" id="node110" href="bits_8h.html" title="mrpt/utils/bits.h" alt="" coords="820,304,931,331"/><area shape="rect" id="node37" href="mrpt__stdint_8h.html" title="mrpt/utils/mrpt_stdint.h" alt="" coords="1909,528,2064,555"/><area shape="rect" id="node40" href="mrpt__inttypes_8h.html" title="mrpt/utils/mrpt_inttypes.h" alt="" coords="2024,453,2195,480"/><area shape="rect" id="node43" href="math__frwds_8h.html" title="mrpt/math/math_frwds.h" alt="" coords="132,453,295,480"/><area shape="rect" id="node59" href="_dense.html" title="Eigen/Dense" alt="" coords="1660,453,1756,480"/><area shape="rect" id="node95" href="containers__fixes_8hpp.html" title="containers_fixes.hpp" alt="" coords="1013,528,1155,555"/><area shape="rect" id="node97" href="exceptions_8hpp.html" title="exceptions.hpp" alt="" coords="1064,453,1174,480"/><area shape="rect" id="node104" href="atomic__incr_8h.html" title="mrpt/synch/atomic_incr.h" alt="" coords="646,453,815,480"/><area shape="rect" id="node108" href="smart__ptr_8tpp.html" title="smart_ptr.tpp" alt="" coords="523,453,622,480"/><area shape="rect" id="node112" href="_s_s_e__types_8h.html" title="mrpt/utils/SSE_types.h" alt="" coords="798,379,955,405"/><area shape="rect" id="node119" href="stl__extensions_8h.html" title="mrpt/utils/stl_extensions.h" alt="" coords="233,229,407,256"/><area shape="rect" id="node126" href="memory_8h.html" title="mrpt/system/memory.h" alt="" coords="571,155,728,181"/><area shape="rect" id="node129" href="datetime_8h.html" title="mrpt/system/datetime.h" alt="" coords="939,155,1098,181"/><area shape="rect" id="node133" href="matrix__adaptors_8h.html" title="mrpt/math/matrix_adaptors.h" alt="" coords="144,155,334,181"/><area shape="rect" id="node137" href="_c_array_8h.html" title="mrpt/math/CArray.h" alt="" coords="358,155,495,181"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="_c_config_file_base_8h__dep__incl.png" border="0" usemap="#_c_config_file_base_8hdep" alt=""/></div>
<map name="_c_config_file_base_8hdep" id="_c_config_file_base_8hdep">
<area shape="rect" id="node3" href="_c_loadable_options_8h.html" title="CLoadableOptions.h" alt="" coords="1110,80,1249,107"/><area shape="rect" id="node9" href="_t_camera_8h.html" title="TCamera.h" alt="" coords="2378,155,2464,181"/><area shape="rect" id="node19" href="_wx_utils_8h.html" title="WxUtils.h" alt="" coords="2889,304,2968,331"/><area shape="rect" id="node27" href="_c_range_bearing_k_f_s_l_a_m_8h.html" title="CRangeBearingKFSLAM.h" alt="" coords="15,603,193,629"/><area shape="rect" id="node29" href="_c_range_bearing_k_f_s_l_a_m2_d_8h.html" title="CRangeBearingKFSLAM2D.h" alt="" coords="265,603,460,629"/><area shape="rect" id="node109" href="_c_config_file_memory_8h.html" title="CConfigFileMemory.h" alt="" coords="2793,80,2941,107"/><area shape="rect" id="node116" href="_c_config_file_8h.html" title="CConfigFile.h" alt="" coords="2687,229,2789,256"/><area shape="rect" id="node121" href="_c2_d_range_finder_abstract_8h.html" title="C2DRangeFinderAbstract.h" alt="" coords="3357,155,3539,181"/><area shape="rect" id="node130" href="_c_generic_sensor_8h.html" title="CGenericSensor.h" alt="" coords="3254,80,3383,107"/><area shape="rect" id="node133" href="_c_board_d_l_m_s_8h.html" title="CBoardDLMS.h" alt="" coords="3017,155,3132,181"/><area shape="rect" id="node135" href="_c_board_e_noses_8h.html" title="CBoardENoses.h" alt="" coords="3157,155,3280,181"/><area shape="rect" id="node137" href="_c_board_sonars_8h.html" title="CBoardSonars.h" alt="" coords="3563,155,3681,181"/><area shape="rect" id="node139" href="_c_camera_sensor_8h.html" title="CCameraSensor.h" alt="" coords="3705,155,3835,181"/><area shape="rect" id="node142" href="_c_wireless_power_8h.html" title="CWirelessPower.h" alt="" coords="3860,155,3989,181"/><area shape="rect" id="node148" href="_c_robotic_head_interface_8h.html" title="CRoboticHeadInterface.h" alt="" coords="3560,80,3731,107"/><area shape="rect" id="node5" href="_c_particle_filter_8h.html" title="CParticleFilter.h" alt="" coords="1221,528,1336,555"/><area shape="rect" id="node7" href="_c_metric_map_builder_r_b_p_f_8h.html" title="CMetricMapBuilderRBPF.h" alt="" coords="935,603,1115,629"/><area shape="rect" id="node13" href="base_2include_2mrpt_2utils_8h.html" title="utils.h" alt="" coords="2803,304,2860,331"/><area shape="rect" id="node21" href="_c_occupancy_grid_map2_d_8h.html" title="COccupancyGridMap2D.h" alt="" coords="743,304,917,331"/><area shape="rect" id="node23" href="_c_multi_metric_map_8h.html" title="CMultiMetricMap.h" alt="" coords="719,453,851,480"/><area shape="rect" id="node25" href="_c_incremental_map_partitioner_8h.html" title="CIncrementalMapPartitioner.h" alt="" coords="333,528,528,555"/><area shape="rect" id="node31" href="_c_multi_metric_map_p_d_f_8h.html" title="CMultiMetricMapPDF.h" alt="" coords="654,528,812,555"/><area shape="rect" id="node35" href="_c_random_field_grid_map2_d_8h.html" title="CRandomFieldGridMap2D.h" alt="" coords="1496,304,1683,331"/><area shape="rect" id="node37" href="_c_reflectivity_grid_map2_d_8h.html" title="CReflectivityGridMap2D.h" alt="" coords="942,304,1116,331"/><area shape="rect" id="node42" href="_c_landmarks_map_8h.html" title="CLandmarksMap.h" alt="" coords="1190,379,1321,405"/><area shape="rect" id="node45" href="_c_grid_map_aligner_8h.html" title="CGridMapAligner.h" alt="" coords="1165,453,1296,480"/><area shape="rect" id="node47" href="multi_desc__utils_8h.html" title="multiDesc_utils.h" alt="" coords="1516,453,1639,480"/><area shape="rect" id="node51" href="vision_2include_2mrpt_2vision_2types_8h.html" title="types.h" alt="" coords="1931,304,1996,331"/><area shape="rect" id="node53" href="vision_2include_2mrpt_2vision_2utils_8h.html" title="utils.h" alt="" coords="1935,379,1992,405"/><area shape="rect" id="node77" href="_c_kalman_filter_capable_8h.html" title="CKalmanFilterCapable.h" alt="" coords="94,528,257,555"/><area shape="rect" id="node83" href="_c_height_grid_map2_d_8h.html" title="CHeightGridMap2D.h" alt="" coords="551,379,697,405"/><area shape="rect" id="node87" href="_c_points_map_8h.html" title="CPointsMap.h" alt="" coords="1497,155,1601,181"/><area shape="rect" id="node92" href="_c_beacon_map_8h.html" title="CBeaconMap.h" alt="" coords="641,229,752,256"/><area shape="rect" id="node98" href="_c_i_c_p_8h.html" title="CICP.h" alt="" coords="500,229,567,256"/><area shape="rect" id="node101" href="_t_k_l_d_params_8h.html" title="TKLDParams.h" alt="" coords="1625,155,1736,181"/><area shape="rect" id="node11" href="_c_image_8h.html" title="CImage.h" alt="" coords="1995,229,2073,256"/><area shape="rect" id="node40" href="_c_observation_image_8h.html" title="CObservationImage.h" alt="" coords="1707,304,1855,331"/><area shape="rect" id="node49" href="_c_rovio_8h.html" title="CRovio.h" alt="" coords="2752,379,2828,405"/><area shape="rect" id="node55" href="_c_cam_model_8h.html" title="CCamModel.h" alt="" coords="1788,453,1895,480"/><area shape="rect" id="node57" href="pinhole_8h.html" title="pinhole.h" alt="" coords="1981,453,2055,480"/><area shape="rect" id="node59" href="bundle__adjustment_8h.html" title="bundle_adjustment.h" alt="" coords="2275,379,2417,405"/><area shape="rect" id="node63" href="_c_observation_stereo_images_features_8h.html" title="CObservationStereoImagesFeatures.h" alt="" coords="2219,304,2464,331"/><area shape="rect" id="node65" href="_c_undistort_map_8h.html" title="CUndistortMap.h" alt="" coords="2073,304,2193,331"/><area shape="rect" id="node17" href="_c_object_detection_8h.html" title="CObjectDetection.h" alt="" coords="2489,304,2625,331"/><area shape="rect" id="node15" href="_c_l_m_s100eth_8h.html" title="CLMS100eth.h" alt="" coords="3281,379,3391,405"/><area shape="rect" id="node114" href="_c_rawlog_8h.html" title="CRawlog.h" alt="" coords="2754,155,2840,181"/><area shape="rect" id="node123" href="_c_hokuyo_u_r_g_8h.html" title="CHokuyoURG.h" alt="" coords="3297,229,3415,256"/><area shape="rect" id="node126" href="_c_sick_laser_serial_8h.html" title="CSickLaserSerial.h" alt="" coords="3439,229,3573,256"/><area shape="rect" id="node128" href="_c_sick_laser_u_s_b_8h.html" title="CSickLaserUSB.h" alt="" coords="3598,229,3727,256"/></map>
</div>
</div>
<p><a href="_c_config_file_base_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1utils_1_1_c_config_file_base.html">mrpt::utils::CConfigFileBase</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This class allows loading and storing values and vectors of different types from a configuration text, which can be implemented as a ".ini" file, a memory-stored string, etc...  <a href="classmrpt_1_1utils_1_1_c_config_file_base.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt.html">mrpt</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. </p>
<br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1utils.html">mrpt::utils</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL. </p>
<br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#aaec769c207be6c03605ac7f4beff9262">MRPT_LOAD_CONFIG_VAR</a>(variableName, variableType, configFileObject, sectionNameStr)&#160;&#160;&#160;{ variableName = configFileObject.read_##variableType(sectionNameStr,#variableName,variableName); }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An useful macro for loading variables stored in a INI-like file under a key with the same name that the variable, and assigning the variable the current value if not found in the config file.  <a href="#aaec769c207be6c03605ac7f4beff9262"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#aba1d60d70e380805247788d45ea84a92">MRPT_LOAD_CONFIG_VAR_DEGREES</a>(variableName, configFileObject, sectionNameStr)&#160;&#160;&#160;{ variableName = DEG2RAD( configFileObject.read_float(sectionNameStr,#variableName, RAD2DEG(variableName)) ); }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads a float variable, stored as radians but entered in the INI-file as degrees:  <a href="#aba1d60d70e380805247788d45ea84a92"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#add47e3b083e18b26d2f6fd1aa515835e">MRPT_LOAD_CONFIG_VAR_CAST</a>(variableName, variableType, variableTypeCast, configFileObject, sectionNameStr)&#160;&#160;&#160;{ variableName = static_cast&lt;variableTypeCast&gt;(configFileObject.read_##variableType(sectionNameStr,#variableName,variableName)); }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#ad1046b55656cdc9b8744e101f9fff328">MRPT_LOAD_HERE_CONFIG_VAR</a>(variableName, variableType, targetVariable, configFileObject, sectionNameStr)&#160;&#160;&#160;targetVariable = configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable,false);</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#ade8eb5db25decb10810d54a93e246298">MRPT_LOAD_HERE_CONFIG_VAR_NO_DEFAULT</a>(variableName, variableType, targetVariable, configFileObject, sectionNameStr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#a82e3b061814a1020f26d27b5143a6b72">MRPT_LOAD_CONFIG_VAR_NO_DEFAULT</a>(variableName, variableType, configFileObject, sectionNameStr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#a3d48ab97d78730107bbcf01ceacb7fb4">MRPT_LOAD_CONFIG_VAR_CAST_NO_DEFAULT</a>(variableName, variableType, variableTypeCast, configFileObject, sectionNameStr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#aa2c94018dfea40f87f2150e6c038412d">MRPT_LOAD_HERE_CONFIG_VAR_CAST</a>(variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr)&#160;&#160;&#160;targetVariable = static_cast&lt;variableTypeCast&gt;(configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable));</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#ad98383b1940c81e4dd8ef3ba4c6e4517">MRPT_LOAD_HERE_CONFIG_VAR_CAST_NO_DEFAULT</a>(variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#a00755ff234584f9062e1d6e8ed1fd852">MRPT_SAVE_CONFIG_VAR</a>(variableName, configFileObject, sectionNameStr)&#160;&#160;&#160;{ configFileObject.write(sectionNameStr,#variableName,variableName); }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_config_file_base_8h.html#a1709453223a994882a5f6ea69da5154b">MRPT_SAVE_CONFIG_VAR_DEGREES</a>(variableName, configFileObject, sectionNameStr)&#160;&#160;&#160;{ configFileObject.write(sectionNameStr,#variableName, RAD2DEG(variableName)); }</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="aaec769c207be6c03605ac7f4beff9262"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_CONFIG_VAR" ref="aaec769c207be6c03605ac7f4beff9262" args="(variableName, variableType, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_CONFIG_VAR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ variableName = configFileObject.read_##variableType(sectionNameStr,#variableName,variableName); }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>An useful macro for loading variables stored in a INI-like file under a key with the same name that the variable, and assigning the variable the current value if not found in the config file. </p>
<p>The variableType must be the suffix of "read_XXX" functions, i.e. int, bool,... </p>

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00266">266</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="add47e3b083e18b26d2f6fd1aa515835e"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_CONFIG_VAR_CAST" ref="add47e3b083e18b26d2f6fd1aa515835e" args="(variableName, variableType, variableTypeCast, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_CONFIG_VAR_CAST</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableTypeCast, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ variableName = static_cast&lt;variableTypeCast&gt;(configFileObject.read_##variableType(sectionNameStr,#variableName,variableName)); }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00274">274</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3d48ab97d78730107bbcf01ceacb7fb4"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_CONFIG_VAR_CAST_NO_DEFAULT" ref="a3d48ab97d78730107bbcf01ceacb7fb4" args="(variableName, variableType, variableTypeCast, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_CONFIG_VAR_CAST_NO_DEFAULT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableTypeCast, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">{ <span class="keywordflow">try</span> { \
                variableName = <span class="keyword">static_cast&lt;</span>variableTypeCast<span class="keyword">&gt;</span>(configFileObject.read_##variableType(sectionNameStr,#variableName,variableName,<span class="keyword">true</span>)); \
    } <span class="keywordflow">catch</span> (<a class="code" href="classstd_1_1exception.html" title="STL class.">std::exception</a> &amp;) \
    { \
                THROW_EXCEPTION( <a class="code" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8" title="A std::string version of C sprintf.">format</a>( <span class="stringliteral">&quot;Value for &#39;%s&#39; not found in config file&quot;</span>, static_cast&lt;const char*&gt;(#variableName ) )); \
        } }\
</pre></div>
<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00298">298</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="aba1d60d70e380805247788d45ea84a92"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_CONFIG_VAR_DEGREES" ref="aba1d60d70e380805247788d45ea84a92" args="(variableName, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_CONFIG_VAR_DEGREES</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ variableName = DEG2RAD( configFileObject.read_float(sectionNameStr,#variableName, RAD2DEG(variableName)) ); }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Loads a float variable, stored as radians but entered in the INI-file as degrees: </p>

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00271">271</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="a82e3b061814a1020f26d27b5143a6b72"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_CONFIG_VAR_NO_DEFAULT" ref="a82e3b061814a1020f26d27b5143a6b72" args="(variableName, variableType, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_CONFIG_VAR_NO_DEFAULT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">{ <span class="keywordflow">try</span> { \
                variableName = configFileObject.read_##variableType(sectionNameStr,#variableName,variableName,<span class="keyword">true</span>); \
    } <span class="keywordflow">catch</span> (<a class="code" href="classstd_1_1exception.html" title="STL class.">std::exception</a> &amp;) \
    { \
                THROW_EXCEPTION( <a class="code" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8" title="A std::string version of C sprintf.">format</a>( <span class="stringliteral">&quot;Value for &#39;%s&#39; not found in config file&quot;</span>, static_cast&lt;const char*&gt;(#variableName ) )); \
        } }\
</pre></div>
<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00290">290</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad1046b55656cdc9b8744e101f9fff328"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_HERE_CONFIG_VAR" ref="ad1046b55656cdc9b8744e101f9fff328" args="(variableName, variableType, targetVariable, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_HERE_CONFIG_VAR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">targetVariable, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;targetVariable = configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable,false);</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00278">278</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa2c94018dfea40f87f2150e6c038412d"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_HERE_CONFIG_VAR_CAST" ref="aa2c94018dfea40f87f2150e6c038412d" args="(variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_HERE_CONFIG_VAR_CAST</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableTypeCast, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">targetVariable, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;targetVariable = static_cast&lt;variableTypeCast&gt;(configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable));</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00307">307</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad98383b1940c81e4dd8ef3ba4c6e4517"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_HERE_CONFIG_VAR_CAST_NO_DEFAULT" ref="ad98383b1940c81e4dd8ef3ba4c6e4517" args="(variableName, variableType, variableTypeCast, targetVariable, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_HERE_CONFIG_VAR_CAST_NO_DEFAULT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableTypeCast, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">targetVariable, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">{ <span class="keywordflow">try</span> { \
                targetVariable = <span class="keyword">static_cast&lt;</span>variableTypeCast<span class="keyword">&gt;</span>(configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable,<span class="keyword">true</span>)); \
    } <span class="keywordflow">catch</span> (<a class="code" href="classstd_1_1exception.html" title="STL class.">std::exception</a> &amp;) \
    { \
                THROW_EXCEPTION( <a class="code" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8" title="A std::string version of C sprintf.">format</a>( <span class="stringliteral">&quot;Value for &#39;%s&#39; not found in config file&quot;</span>, static_cast&lt;const char*&gt;(#variableName ) )); \
        } }\
</pre></div>
<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00310">310</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="ade8eb5db25decb10810d54a93e246298"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_LOAD_HERE_CONFIG_VAR_NO_DEFAULT" ref="ade8eb5db25decb10810d54a93e246298" args="(variableName, variableType, targetVariable, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_LOAD_HERE_CONFIG_VAR_NO_DEFAULT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">targetVariable, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">{ <span class="keywordflow">try</span> { \
                targetVariable = configFileObject.read_##variableType(sectionNameStr,#variableName,targetVariable,<span class="keyword">true</span>); \
    } <span class="keywordflow">catch</span> (<a class="code" href="classstd_1_1exception.html" title="STL class.">std::exception</a> &amp;) \
    { \
                THROW_EXCEPTION( <a class="code" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8" title="A std::string version of C sprintf.">format</a>( <span class="stringliteral">&quot;Value for &#39;%s&#39; not found in config file&quot;</span>, static_cast&lt;const char*&gt;(#variableName ) )); \
        } }\
</pre></div>
<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00281">281</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="a00755ff234584f9062e1d6e8ed1fd852"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_SAVE_CONFIG_VAR" ref="a00755ff234584f9062e1d6e8ed1fd852" args="(variableName, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_SAVE_CONFIG_VAR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ configFileObject.write(sectionNameStr,#variableName,variableName); }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00319">319</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1709453223a994882a5f6ea69da5154b"></a><!-- doxytag: member="CConfigFileBase.h::MRPT_SAVE_CONFIG_VAR_DEGREES" ref="a1709453223a994882a5f6ea69da5154b" args="(variableName, configFileObject, sectionNameStr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MRPT_SAVE_CONFIG_VAR_DEGREES</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">variableName, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">configFileObject, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sectionNameStr&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ configFileObject.write(sectionNameStr,#variableName, RAD2DEG(variableName)); }</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_config_file_base_8h_source.html#l00322">322</a> of file <a class="el" href="_c_config_file_base_8h_source.html">CConfigFileBase.h</a>.</p>

</div>
</div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>