Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > b36c97ff723e66f0f38bce83645c99dc > files > 1508

exiv2-doc-0.18.2-1mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Exiv2: rcsid.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</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><a href="examples.html"><span>Examples</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<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" title="Define an RCS id string in every object file compiled from a source file that includes...">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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rcsid_8hpp.html#bae632aff1c04a47d6495db05a7a7e28">EXIV2_RCSID</a>(id)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Macro to store version information in each object file.  <a href="#bae632aff1c04a47d6495db05a7a7e28"></a><br></td></tr>
</table>
<hr><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" title="Define an RCS id string in every object file compiled from a source file that includes...">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 class="version" compact><dt><b>Version:</b></dt><dd></dd></dl>
<dl class="rcs" compact><dt><b>Rev</b></dt><dd>1750 </dd></dl>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Andreas Huggel (ahu) <a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a> </dd></dl>
<dl class="date" 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)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define EXIV2_RCSID          </td>
          <td>(</td>
          <td class="paramtype">id&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<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" title="Define an RCS id string in every object file compiled from a source file that includes...">rcsid.hpp</a>"</span>
         <a class="code" href="rcsid_8hpp.html#bae632aff1c04a47d6495db05a7a7e28" title="Macro to store version information in each object file.">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>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jun 25 15:17:31 2009 for Exiv2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>