1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<!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>Exiv2: utils.hpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul></div>
<h1>utils.hpp File Reference</h1>A collection of utility functions. <a href="#_details">More...</a>
<p>
<code>#include <string></code><br>
<p>
Include dependency graph for utils.hpp:<p><center><img src="utils_8hpp__incl.png" border="0" usemap="#utils.hpp_map" alt=""></center>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="utils_8hpp__dep__incl.png" border="0" usemap="#utils.hppdep_map" alt=""></center>
<map name="utils.hppdep_map">
<area href="exiv2_8hpp.html" shape="rect" coords="140,6,217,30" alt="">
<area href="metacopy_8hpp.html" shape="rect" coords="125,54,232,78" alt="">
<area href="actions_8hpp.html" shape="rect" coords="280,6,371,30" alt="">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html">Util</a></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classUtil_1_1Getopt.html">Util::Getopt</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse the command line options of a program. <a href="classUtil_1_1Getopt.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#2d5eb823f2910e392a04c146c54f9543">Util::dirname</a> (const std::string &path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the directory component from the <em>path</em> string. See dirname(3). <a href="#2d5eb823f2910e392a04c146c54f9543"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#0ec92119bdb7f1269693f1ee94d360ea">Util::basename</a> (const std::string &path, bool delsuffix=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the filename component from the <em>path</em> string. See basename(3). If the <em>delsuffix</em> parameter is true, the suffix will be removed. <a href="#0ec92119bdb7f1269693f1ee94d360ea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a61f770944bfdb930ec8241c529887b8"></a><!-- doxytag: member="utils.hpp::suffix" ref="a61f770944bfdb930ec8241c529887b8" args="(const std::string &path)" -->
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#a61f770944bfdb930ec8241c529887b8">Util::suffix</a> (const std::string &path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the suffix from the path string. Normally, the suffix is the substring of the basename of path from the last '.' to the end of the string. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e3760f32ad9aaad800e68917578c7220"></a><!-- doxytag: member="utils.hpp::strtol" ref="e3760f32ad9aaad800e68917578c7220" args="(const char *nptr, long &n)" -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#e3760f32ad9aaad800e68917578c7220">Util::strtol</a> (const char *nptr, long &n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a C string to a long value, which is returned in n. Returns true if the conversion is successful, else false. n is not modified if the conversion is unsuccessful. See strtol(2). <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A collection of utility functions.
<p>
<dl compact><dt><b>Version:</b></dt><dd><dl compact><dt><b>Rev</b></dt><dd>669 </dd></dl>
</dd></dl>
<dl compact><dt><b>Author:</b></dt><dd>Andreas Huggel (ahu) <a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a> </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>12-Dec-03, ahu: created </dd></dl>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:54:35 2006 for Exiv2 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>
|