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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
<!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: Util Namespace 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 id="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li><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="namespaces.html"><span>Namespace List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
</ul></div>
<h1>Util Namespace Reference</h1>Contains utility classes and functions. Most of these are wrappers for common C functions that do not require pointers and memory considerations.
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></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">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">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">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="Util::suffix" ref="a61f770944bfdb930ec8241c529887b8" args="(const std::string &path)" -->
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#a61f770944bfdb930ec8241c529887b8">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="Util::strtol" ref="e3760f32ad9aaad800e68917578c7220" args="(const char *nptr, long &n)" -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceUtil.html#e3760f32ad9aaad800e68917578c7220">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>
Contains utility classes and functions. Most of these are wrappers for common C functions that do not require pointers and memory considerations. <hr><h2>Function Documentation</h2>
<a class="anchor" name="0ec92119bdb7f1269693f1ee94d360ea"></a><!-- doxytag: member="Util::basename" ref="0ec92119bdb7f1269693f1ee94d360ea" args="(const std::string &path, bool delsuffix=false)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">std::string Util::basename </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const std::string & </td>
<td class="mdname" nowrap> <em>path</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>delsuffix</em> = <code>false</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
This function can handle Windows paths to some extent: c:\bar should be fine, \\bigsrv\foo also, but \\bigsrv alone doesn't work. </td>
</tr>
</table>
<a class="anchor" name="2d5eb823f2910e392a04c146c54f9543"></a><!-- doxytag: member="Util::dirname" ref="2d5eb823f2910e392a04c146c54f9543" args="(const std::string &path)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">std::string Util::dirname </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const std::string & </td>
<td class="mdname1" valign="top" nowrap> <em>path</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the directory component from the <em>path</em> string. See dirname(3).
<p>
This function can handle Windows paths to some extent: c:\bar should be fine, \\bigsrv\foo also, but \\bigsrv alone doesn't work. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:44 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>
|