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
|
<!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: rcsid.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>rcsid.hpp File Reference</h1>Define an RCS id string in every object file compiled from a source file that includes <a class="el" href="rcsid_8hpp.html">rcsid.hpp</a>. <a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="rcsid_8hpp.html#bae632aff1c04a47d6495db05a7a7e28">EXIV2_RCSID</a>(id)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Macro to store version information in each object file. <a href="#bae632aff1c04a47d6495db05a7a7e28"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Define an RCS id string in every object file compiled from a source file that includes <a class="el" href="rcsid_8hpp.html">rcsid.hpp</a>.
<p>
This is a simplified version of the ACE_RCSID macro that is used in the <a href="http://www.cs.wustl.edu/~schmidt/ACE.html">ACE(TM)</a> distribution.<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>02-Feb-04, ahu: created </dd></dl>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="bae632aff1c04a47d6495db05a7a7e28"></a><!-- doxytag: member="rcsid.hpp::EXIV2_RCSID" ref="bae632aff1c04a47d6495db05a7a7e28" args="(id)" --><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">#define EXIV2_RCSID </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">id </td>
<td class="mdname1" valign="top" nowrap> </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>
<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keyword">namespace </span>{ \
<span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* getRcsId(<span class="keyword">const</span> <span class="keywordtype">char</span>*) { <span class="keywordflow">return</span> id ; } \
<span class="keyword">const</span> <span class="keywordtype">char</span>* rcsId = getRcsId(rcsId); \
}
</pre></div>Macro to store version information in each object file.
<p>
Use this macro by including the following two lines at the beginning of each *.cpp file. See the ident(1) manual pages for more information.<p>
<div class="fragment"><pre class="fragment"><span class="preprocessor"> #include "<a class="code" href="rcsid_8hpp.html">rcsid.hpp</a>"</span>
<a class="code" href="rcsid_8hpp.html#bae632aff1c04a47d6495db05a7a7e28">EXIV2_RCSID</a>(<span class="stringliteral">"@(#) $Id$"</span>);
</pre></div><p>
The macro hack itself has the following purposes:<ol type=1>
<li>To define the RCS id string variable in the local namespace, so that there won't be any duplicate extern symbols at link time.</li><li>To avoid warnings of the type "variable declared and never used". </li></ol>
</td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:54:28 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>
|