<!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>os.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> > <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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#namespaces">Namespaces</a> | <a href="#define-members">Defines</a> | <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">os.h File Reference</div> </div> </div> <div class="contents"> <div class="textblock"><code>#include <mrpt/config.h></code><br/> <code>#include <cstdarg></code><br/> <code>#include <cstdlib></code><br/> <code>#include <cstring></code><br/> <code>#include <deque></code><br/> <code>#include <vector></code><br/> <code>#include <<a class="el" href="base_2include_2mrpt_2base_2link__pragmas_8h_source.html">mrpt/base/link_pragmas.h</a>></code><br/> <code>#include <<a class="el" href="base_2include_2mrpt_2utils_2types_8h_source.html">mrpt/utils/types.h</a>></code><br/> <code>#include <<a class="el" href="mrpt__macros_8h_source.html">mrpt/utils/mrpt_macros.h</a>></code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for os.h:</div> <div class="dyncontent"> <div class="center"><img src="os_8h__incl.png" border="0" usemap="#os_8h" alt=""/></div> <map name="os_8h" id="os_8h"> <area shape="rect" id="node15" href="base_2include_2mrpt_2base_2link__pragmas_8h.html" title="mrpt/base/link_pragmas.h" alt="" coords="43,229,215,256"/><area shape="rect" id="node20" href="base_2include_2mrpt_2utils_2types_8h.html" title="mrpt/utils/types.h" alt="" coords="891,80,1013,107"/><area shape="rect" id="node131" href="mrpt__macros_8h.html" title="mrpt/utils/mrpt_macros.h" alt="" coords="2623,80,2789,107"/><area shape="rect" id="node18" href="boost__join_8h.html" title="mrpt/utils/boost_join.h" alt="" coords="54,304,204,331"/><area shape="rect" id="node32" href="mrpt__stdint_8h.html" title="mrpt/utils/mrpt_stdint.h" alt="" coords="361,229,516,256"/><area shape="rect" id="node43" href="mrpt__inttypes_8h.html" title="mrpt/utils/mrpt_inttypes.h" alt="" coords="353,155,524,181"/><area shape="rect" id="node46" href="math__frwds_8h.html" title="mrpt/math/math_frwds.h" alt="" coords="1665,155,1828,181"/><area shape="rect" id="node62" href="_dense.html" title="Eigen/Dense" alt="" coords="2087,155,2184,181"/><area shape="rect" id="node35" href="pstdint_8h.html" title="pstdint.h" alt="" coords="403,304,475,331"/><area shape="rect" id="node64" href="_core.html" title="Core" alt="" coords="1947,528,1997,555"/><area shape="rect" id="node95" href="_l_u.html" title="LU" alt="" coords="2073,453,2111,480"/><area shape="rect" id="node99" href="_cholesky.html" title="Cholesky" alt="" coords="2288,453,2364,480"/><area shape="rect" id="node103" href="_q_r.html" title="QR" alt="" coords="2291,379,2333,405"/><area shape="rect" id="node108" href="_s_v_d.html" title="SVD" alt="" coords="2285,304,2336,331"/><area shape="rect" id="node112" href="_geometry.html" title="Geometry" alt="" coords="2007,229,2085,256"/><area shape="rect" id="node119" href="_eigenvalues.html" title="Eigenvalues" alt="" coords="2173,379,2267,405"/></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="os_8h__dep__incl.png" border="0" usemap="#os_8hdep" alt=""/></div> <map name="os_8hdep" id="os_8hdep"> <area shape="rect" id="node3" href="utils__defs_8h.html" title="utils_defs.h" alt="" coords="1979,80,2068,107"/><area shape="rect" id="node11" href="_c_matrix_template_numeric_8h.html" title="CMatrixTemplateNumeric.h" alt="" coords="2586,304,2768,331"/><area shape="rect" id="node16" href="_c_height_grid_map2_d_8h.html" title="CHeightGridMap2D.h" alt="" coords="2404,603,2551,629"/><area shape="rect" id="node25" href="_c_kalman_filter_capable_8h.html" title="CKalmanFilterCapable.h" alt="" coords="693,528,856,555"/><area shape="rect" id="node41" href="system_8h.html" title="system.h" alt="" coords="3422,229,3497,256"/><area shape="rect" id="node47" href="_c_observation_8h.html" title="CObservation.h" alt="" coords="869,379,981,405"/><area shape="rect" id="node63" href="_c_landmark_8h.html" title="CLandmark.h" alt="" coords="2474,229,2573,256"/><area shape="rect" id="node65" href="_c_cam_model_8h.html" title="CCamModel.h" alt="" coords="2599,229,2705,256"/><area shape="rect" id="node75" href="_c_loadable_options_8h.html" title="CLoadableOptions.h" alt="" coords="705,379,844,405"/><area shape="rect" id="node79" href="_c_client_t_c_p_socket_8h.html" title="CClientTCPSocket.h" alt="" coords="145,379,289,405"/><area shape="rect" id="node94" href="_c_image_8h.html" title="CImage.h" alt="" coords="569,229,647,256"/><area shape="rect" id="node130" href="_c_directory_explorer_8h.html" title="CDirectoryExplorer.h" alt="" coords="3388,155,3532,181"/><area shape="rect" id="node133" href="_c_file_system_watcher_8h.html" title="CFileSystemWatcher.h" alt="" coords="3557,155,3715,181"/><area shape="rect" id="node140" href="_c_pose3_d_interpolator_8h.html" title="CPose3DInterpolator.h" alt="" coords="3841,80,3995,107"/><area shape="rect" id="node147" href="_c_m_h_properties_values_list_8h.html" title="CMHPropertiesValuesList.h" alt="" coords="4020,80,4204,107"/><area shape="rect" id="node153" href="_c_beacon_8h.html" title="CBeacon.h" alt="" coords="4229,80,4315,107"/><area shape="rect" id="node5" href="zip_8h.html" title="zip.h" alt="" coords="1999,155,2049,181"/><area shape="rect" id="node7" href="distributions_8h.html" title="distributions.h" alt="" coords="2671,379,2773,405"/><area shape="rect" id="node9" href="_c_matrix_template_8h.html" title="CMatrixTemplate.h" alt="" coords="2729,229,2863,256"/><area shape="rect" id="node14" href="_c_matrix_d_8h.html" title="CMatrixD.h" alt="" coords="2354,379,2443,405"/><area shape="rect" id="node18" href="transform__gaussian_8h.html" title="transform_gaussian.h" alt="" coords="2799,379,2945,405"/><area shape="rect" id="node20" href="base_2include_2mrpt_2math_2utils_8h.html" title="utils.h" alt="" coords="2205,453,2261,480"/><area shape="rect" id="node22" href="geometry_8h.html" title="geometry.h" alt="" coords="2514,528,2600,555"/><area shape="rect" id="node27" href="ops__vectors_8h.html" title="ops_vectors.h" alt="" coords="2225,379,2329,405"/><area shape="rect" id="node30" href="_random_generators_8h.html" title="RandomGenerators.h" alt="" coords="2969,379,3116,405"/><area shape="rect" id="node32" href="fourier_8h.html" title="fourier.h" alt="" coords="3140,379,3209,405"/><area shape="rect" id="node35" href="_c_sparse_matrix_8h.html" title="CSparseMatrix.h" alt="" coords="1875,379,1995,405"/><area shape="rect" id="node38" href="memory_8h.html" title="memory.h" alt="" coords="2980,155,3059,181"/><area shape="rect" id="node43" href="datetime_8h.html" title="datetime.h" alt="" coords="2873,155,2955,181"/><area shape="rect" id="node49" href="matrix__adaptors_8h.html" title="matrix_adaptors.h" alt="" coords="2621,155,2747,181"/><area shape="rect" id="node52" href="_c_array_8h.html" title="CArray.h" alt="" coords="1387,155,1460,181"/><area shape="rect" id="node56" href="lightweight__geom__data_8h.html" title="lightweight_geom_data.h" alt="" coords="2378,155,2544,181"/><area shape="rect" id="node59" href="_c_polygon_8h.html" title="CPolygon.h" alt="" coords="1604,229,1695,256"/><area shape="rect" id="node61" href="_k_d_tree_capable_8h.html" title="KDTreeCapable.h" alt="" coords="1973,229,2099,256"/><area shape="rect" id="node67" href="_c_object_8h.html" title="CObject.h" alt="" coords="463,229,544,256"/><area shape="rect" id="node69" href="_c_stream_8h.html" title="CStream.h" alt="" coords="643,304,728,331"/><area shape="rect" id="node72" href="_c_debug_output_capable_8h.html" title="CDebugOutputCapable.h" alt="" coords="512,379,680,405"/><area shape="rect" id="node82" href="safe__pointers_8h.html" title="safe_pointers.h" alt="" coords="449,155,559,181"/><area shape="rect" id="node86" href="_c_uncopiable_8h.html" title="CUncopiable.h" alt="" coords="723,229,831,256"/><area shape="rect" id="node90" href="exceptions_8h.html" title="exceptions.h" alt="" coords="685,155,781,181"/><area shape="rect" id="node96" href="circular__buffer_8h.html" title="circular_buffer.h" alt="" coords="957,155,1072,181"/><area shape="rect" id="node98" href="bimap_8h.html" title="bimap.h" alt="" coords="1097,155,1164,181"/><area shape="rect" id="node100" href="map__as__vector_8h.html" title="map_as_vector.h" alt="" coords="1189,155,1312,181"/><area shape="rect" id="node102" href="_c_histogram_8h.html" title="CHistogram.h" alt="" coords="2047,304,2149,331"/><area shape="rect" id="node113" href="_c_sparse_matrix_template_8h.html" title="CSparseMatrixTemplate.h" alt="" coords="2277,304,2451,331"/><area shape="rect" id="node118" href="_c_spline_interpolator1_d_8h.html" title="CSplineInterpolator1D.h" alt="" coords="1485,155,1645,181"/><area shape="rect" id="node121" href="_c_tic_tac_8h.html" title="CTicTac.h" alt="" coords="271,453,352,480"/><area shape="rect" id="node125" href="model__search_8h.html" title="model_search.h" alt="" coords="1671,155,1785,181"/><area shape="rect" id="node127" href="_c_particle_filter_capable_8h.html" title="CParticleFilterCapable.h" alt="" coords="1810,155,1973,181"/></map> </div> </div> <p><a href="os_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="namespaces"></a> Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt.html">mrpt</a></td></tr> <tr><td class="mdescLeft"> </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  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1system.html">mrpt::system</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc. </p> <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1system_1_1os.html">mrpt::system::os</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>This namespace provides a OS-independent interface to low-level functions. </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="os_8h.html#a2a0a650d16403da1f447b7543ce68e2b">INVALID_TIMESTAMP</a>   (0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Represents an invalid timestamp, where applicable. <a href="#a2a0a650d16403da1f447b7543ce68e2b"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="enum-members"></a> Enumerations</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gaf024857d947a048fe9d6b7f3bfab5045">mrpt::system::TConsoleColor</a> { <a class="el" href="group__mrpt__system__os.html#ggaf024857d947a048fe9d6b7f3bfab5045a254b3e8a94af9833ceb88a73f43f7acd">mrpt::system::CONCOL_NORMAL</a> = 0, <a class="el" href="group__mrpt__system__os.html#ggaf024857d947a048fe9d6b7f3bfab5045a0f0806fc7fa11f76bdf24bef60dc1946">mrpt::system::CONCOL_BLUE</a> = 1, <a class="el" href="group__mrpt__system__os.html#ggaf024857d947a048fe9d6b7f3bfab5045afa4121ff6716d4fc242858fca5c314eb">mrpt::system::CONCOL_GREEN</a> = 2, <a class="el" href="group__mrpt__system__os.html#ggaf024857d947a048fe9d6b7f3bfab5045aa12feea04829d151f7b7434c6af3b9bc">mrpt::system::CONCOL_RED</a> = 4 }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For use in setConsoleColor. <a href="group__mrpt__system__os.html#gaf024857d947a048fe9d6b7f3bfab5045">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gaa5c66ce41ee061c2ae514e260b29e7a6">mrpt::system::os::sprintf</a> (char *buf, size_t bufSize, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(3</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compilers) <a href="group__mrpt__system__os.html#gaa5c66ce41ee061c2ae514e260b29e7a6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gae8b9937bb99f6222ecb023e4cad37e72">mrpt::system::os::vsprintf</a> (char *buf, size_t bufSize, const char *format, va_list args) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of vsprintf (Notice the bufSize param, which may be ignored in some compilers) <a href="group__mrpt__system__os.html#gae8b9937bb99f6222ecb023e4cad37e72"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gab694144137a7c14d9504357f164d9495">mrpt::system::os::vsnprintf</a> (char *buf, size_t bufSize, const char *format, va_list args) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of vsnprintf (Notice the bufSize param, which may be ignored in some compilers) <a href="group__mrpt__system__os.html#gab694144137a7c14d9504357f164d9495"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">FILE BASE_IMPEXP * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga9b309cf44c48a430f3c70524e7492108">mrpt::system::os::fopen</a> (const char *fileName, const char *mode) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of fopen. <a href="group__mrpt__system__os.html#ga9b309cf44c48a430f3c70524e7492108"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">FILE BASE_IMPEXP * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga618d3a5cbd76bc9f194557638758f0e8">mrpt::system::os::fopen</a> (const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, const char *mode) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of fopen (<a class="el" href="classstd_1_1string.html" title="STL class.">std::string</a> version) <a href="group__mrpt__system__os.html#ga618d3a5cbd76bc9f194557638758f0e8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga4cc3a0ea9b292a90300224b00e1c8fac">mrpt::system::os::fprintf</a> (FILE *fil, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(2</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of fprintf. <a href="group__mrpt__system__os.html#ga4cc3a0ea9b292a90300224b00e1c8fac"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gaf465efb0a560da1737c595780530bddf">mrpt::system::os::fclose</a> (FILE *f)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of fscanf. <a href="group__mrpt__system__os.html#gaf465efb0a560da1737c595780530bddf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">char BASE_IMPEXP * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gab63d483a73b291f710802f6df6392974">mrpt::system::os::strcat</a> (char *dest, size_t destSize, const char *source) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strcat. <a href="group__mrpt__system__os.html#gab63d483a73b291f710802f6df6392974"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">char BASE_IMPEXP * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gac649e04b317db1898fcdf3ead43723b2">mrpt::system::os::strcpy</a> (char *dest, size_t destSize, const char *source) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strcpy. <a href="group__mrpt__system__os.html#gac649e04b317db1898fcdf3ead43723b2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga3632d373059319ed674ba3d37acf76a6">mrpt::system::os::_strcmp</a> (const char *str1, const char *str2) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strcmp. <a href="group__mrpt__system__os.html#ga3632d373059319ed674ba3d37acf76a6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga0b3d8b9d83ae1b217d30f59589a1be3f">mrpt::system::os::_strcmpi</a> (const char *str1, const char *str2) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strcmpi. <a href="group__mrpt__system__os.html#ga0b3d8b9d83ae1b217d30f59589a1be3f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gadfdf22e91c68cb814d8e5585220f7bd2">mrpt::system::os::_strncmp</a> (const char *str, const char *subStr, size_t count) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strncmp. <a href="group__mrpt__system__os.html#gadfdf22e91c68cb814d8e5585220f7bd2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gaad4fd17ac25e0afdcb8e1fc8b75120fd">mrpt::system::os::_strnicmp</a> (const char *str, const char *subStr, size_t count) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strnicmp. <a href="group__mrpt__system__os.html#gaad4fd17ac25e0afdcb8e1fc8b75120fd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int64_t BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga50798351c76f6e0281c667f558d132ba">mrpt::system::os::_strtoll</a> (const char *nptr, char **endptr, int base)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strtoll. <a href="group__mrpt__system__os.html#ga50798351c76f6e0281c667f558d132ba"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint64_t BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga4a4eaddddf8f4997208c347449d7e235">mrpt::system::os::_strtoull</a> (const char *nptr, char **endptr, int base)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of strtoull. <a href="group__mrpt__system__os.html#ga4a4eaddddf8f4997208c347449d7e235"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">time_t BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga20c030721308318d3452add36f6caa5b">mrpt::system::os::timegm</a> (struct tm *tm)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of timegm (which is not present in all compilers): converts a time structure into an UTM time_t. <a href="group__mrpt__system__os.html#ga20c030721308318d3452add36f6caa5b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gae1184cfb1f617787dc4c9da98becbe3a">mrpt::system::os::memcpy</a> (void *dest, size_t destSize, const void *src, size_t copyCount) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS and compiler independent version of "memcpy". <a href="group__mrpt__system__os.html#gae1184cfb1f617787dc4c9da98becbe3a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga819ac14dfaf6d9b5f25c14196fb120eb">mrpt::system::os::getch</a> () MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of getch, which waits until a key is pushed. <a href="group__mrpt__system__os.html#ga819ac14dfaf6d9b5f25c14196fb120eb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga49ca087d2e21e81adb051d856f1827c4">mrpt::system::os::kbhit</a> () MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An OS-independent version of kbhit, which returns true if a key has been pushed. <a href="group__mrpt__system__os.html#ga49ca087d2e21e81adb051d856f1827c4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga3e5c097bf7a092bd8e40e89598caf662">mrpt::system::pause</a> (const <a class="el" href="classstd_1_1string.html">std::string</a> &msg=<a class="el" href="classstd_1_1string.html">std::string</a>("Press any key to continue...")) MRPT_NO_THROWS</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Shows the message "Press any key to continue" (or other custom message) to the current standard output and returns when a key is pressed. <a href="group__mrpt__system__os.html#ga3e5c097bf7a092bd8e40e89598caf662"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gac1bd71bc107edf108b239e05b615a621">mrpt::system::clearConsole</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clears the console window. <a href="group__mrpt__system__os.html#gac1bd71bc107edf108b239e05b615a621"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga2454cccef332c556b3efffc4d0ac24ef">mrpt::system::vectorToTextFile</a> (const <a class="el" href="classstd_1_1vector.html">std::vector</a>< float > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, bool append=false, bool byRows=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A useful function for debuging, which saves a <a class="el" href="classstd_1_1vector.html" title="STL class.">std::vector</a> into a text file (compat. <a href="group__mrpt__system__os.html#ga2454cccef332c556b3efffc4d0ac24ef"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga011e6ebf78bc7df5e02e161a7dc6b5c5">mrpt::system::vectorToTextFile</a> (const <a class="el" href="classstd_1_1vector.html">std::vector</a>< double > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, bool append=false, bool byRows=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga54a5bd22b520bc3b2c19af4d0c6acdb6">mrpt::system::vectorToTextFile</a> (const <a class="el" href="classstd_1_1vector.html">std::vector</a>< int > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, bool append=false, bool byRows=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga8f44151918f3addc0fa213224faf7ecb">mrpt::system::vectorToTextFile</a> (const <a class="el" href="classstd_1_1vector.html">std::vector</a>< size_t > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, bool append=false, bool byRows=false)</td></tr> <tr><td class="memTemplParams" colspan="2">template<class Derived > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga6e9fff689b86257749d574ca7040275b">mrpt::system::vectorToTextFile</a> (const <a class="el" href="class_eigen_1_1_matrix_base.html">Eigen::MatrixBase</a>< Derived > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga5c9824a5cf356616a6536544ecd6b7df">mrpt::system::vectorFromTextFile</a> (<a class="el" href="classstd_1_1vector.html">std::vector</a>< double > &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName, const bool byRows=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Load a <a class="el" href="classstd_1_1vector.html" title="STL class.">std::vector</a> from a text file (compat. <a href="group__mrpt__system__os.html#ga5c9824a5cf356616a6536544ecd6b7df"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga538802487a6af115d4cf809da2a08829">mrpt::system::vectorToBinaryFile</a> (const vector_byte &vec, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Saves a vector directly as a binary dump to a <a href="file:">file:</a> <a href="group__mrpt__system__os.html#ga538802487a6af115d4cf809da2a08829"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga99441f621af112d746046bd71ed8de85">mrpt::system::loadBinaryFile</a> (vector_byte &out_data, const <a class="el" href="classstd_1_1string.html">std::string</a> &fileName)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Loads a entire file as a vector of bytes. <a href="group__mrpt__system__os.html#ga99441f621af112d746046bd71ed8de85"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1string.html">std::string</a> BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga32d2ad44770a1a4dfcedab6d4d257bb8">mrpt::system::MRPT_getCompilationDate</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the MRPT compilation date. <a href="group__mrpt__system__os.html#ga32d2ad44770a1a4dfcedab6d4d257bb8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1string.html">std::string</a> BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga8fe63df666e65644f220e175df15c8ab">mrpt::system::MRPT_getVersion</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a string describing the MRPT version including the SVN number. <a href="group__mrpt__system__os.html#ga8fe63df666e65644f220e175df15c8ab"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gafd20c6a91497b8cfd29e3f42af74d133">mrpt::system::registerFatalExceptionHandlers</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Call this to register handlers for fatal erros (memory access,etc) that show useful debug information (It is called automatically normally, no need for the user to explicitly call this method.). <a href="group__mrpt__system__os.html#gafd20c6a91497b8cfd29e3f42af74d133"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1string.html">std::string</a> BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga264db8d9d6e0f4db51ee9de8e29029b6">mrpt::system::stack_trace</a> (bool calling_from_exception=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Dumps the current program stack with detailed information of source files and lines. <a href="group__mrpt__system__os.html#ga264db8d9d6e0f4db51ee9de8e29029b6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#ga4c705731f4b8292a36ae31204e8e576b">mrpt::system::breakpoint</a> (const <a class="el" href="classstd_1_1string.html">std::string</a> &exception_msg)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Only when built in debug (with _DEBUG), this function will be called just before raising any MRPT exception, so the user can conveniently put a breakpoint here to explore the call stack, etc. <a href="group__mrpt__system__os.html#ga4c705731f4b8292a36ae31204e8e576b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__mrpt__system__os.html#gaedbeced9be12c473279fdd49765ee4e7">mrpt::system::setConsoleColor</a> (TConsoleColor color, bool changeStdErr=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Changes the text color in the console for the text written from now on. <a href="group__mrpt__system__os.html#gaedbeced9be12c473279fdd49765ee4e7"></a><br/></td></tr> </table> <hr/><h2>Define Documentation</h2> <a class="anchor" id="a2a0a650d16403da1f447b7543ce68e2b"></a><!-- doxytag: member="os.h::INVALID_TIMESTAMP" ref="a2a0a650d16403da1f447b7543ce68e2b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define INVALID_TIMESTAMP   (0)</td> </tr> </table> </div> <div class="memdoc"> <p>Represents an invalid timestamp, where applicable. </p> <p>Definition at line <a class="el" href="os_8h_source.html#l00047">47</a> of file <a class="el" href="os_8h_source.html">os.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>