Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 29c369053a983cc5d8c880dc6e0a2237 > files > 1117

libdtn-devel-2.6.0-2mdv2009.1.i586.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>DTN Reference Implementation: dtn::GlobalStore Class 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.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1GlobalStore.html">GlobalStore</a>
  </div>
</div>
<div class="contents">
<h1>dtn::GlobalStore Class Reference</h1><!-- doxytag: class="dtn::GlobalStore" -->Class for those elements of the router that need to be persistently stored but are singleton global values.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for dtn::GlobalStore:</div>
<div class="dynsection">

<p><center><img src="classdtn_1_1GlobalStore.png" usemap="#dtn::GlobalStore_map" border="0" alt=""></center>
<map name="dtn::GlobalStore_map">
<area href="classdtn_1_1SQLGlobalStore.html" alt="dtn::SQLGlobalStore" shape="rect" coords="0,56,126,80">
</map>
</div>

<p>
<a href="classdtn_1_1GlobalStore-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#6f4f3b455773baf77dfb80d6300ee6a3">GlobalStore</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#6f4f3b455773baf77dfb80d6300ee6a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#3638bc6ee40e3be5b24b7bcbde0e5c7e">do_init</a> (const oasys::StorageConfig &amp;cfg, oasys::DurableStore *store)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Real initialization method.  <a href="#3638bc6ee40e3be5b24b7bcbde0e5c7e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#639c03b947345cef9815c529df76d37a">~GlobalStore</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#639c03b947345cef9815c529df76d37a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#70842bf9404fe5c9ec84bb9fc99c657e">next_bundleid</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a new bundle id, updating the value in the store.  <a href="#70842bf9404fe5c9ec84bb9fc99c657e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#0cd22769f4f62af9ef5779f453814d16">next_regid</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a new unique registration id, updating the running value in the persistent table.  <a href="#0cd22769f4f62af9ef5779f453814d16"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#f13b2a032c0320672940f4bff3b5c0d7">load</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load in the globals.  <a href="#f13b2a032c0320672940f4bff3b5c0d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#75296d47a62dd53eaf6f4e6844e56da9">close</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close (and flush) the data store.  <a href="#75296d47a62dd53eaf6f4e6844e56da9"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classdtn_1_1GlobalStore.html">GlobalStore</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#84112e55922524eb85a143be7d5197a0">instance</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Singleton instance accessor.  <a href="#84112e55922524eb85a143be7d5197a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#87cea517050ba03905ec0f9b288783cc">init</a> (const oasys::StorageConfig &amp;cfg, oasys::DurableStore *store)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Boot time initializer.  <a href="#87cea517050ba03905ec0f9b288783cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#fab631e45c3d2136d3f227be9f07bbcb">initialized</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if initialization has completed.  <a href="#fab631e45c3d2136d3f227be9f07bbcb"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#c49069461c18c4fcc29fbbb42fe02232">CURRENT_VERSION</a> = 3</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#a1ccd629fa2ff5f48068702895eaab7f">update</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the globals in the store.  <a href="#a1ccd629fa2ff5f48068702895eaab7f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#acf08d987fd4d96a0bd7f55a65199052">calc_digest</a> (u_char *digest)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculate a digest of on-disk serialized objects.  <a href="#acf08d987fd4d96a0bd7f55a65199052"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#a4f769642ccfd052bce745507bab471f">loaded_</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classdtn_1_1Globals.html">Globals</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#362bfa46205417ad036335ddaa03f8ad">globals_</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">oasys::SingleTypeDurableTable<br class="typebreak">
&lt; <a class="el" href="classdtn_1_1Globals.html">Globals</a> &gt; *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#b57f9969fa2b0bf21bf050d2be3db3bc">store_</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">oasys::Mutex *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#6eafeca26db895e83de98e0b644eb695">lock_</a></td></tr>

<tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classdtn_1_1GlobalStore.html">GlobalStore</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1GlobalStore.html#cddeeabc9fbd02c65c9bccc30cc92661">instance_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">singleton instance  <a href="#cddeeabc9fbd02c65c9bccc30cc92661"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class for those elements of the router that need to be persistently stored but are singleton global values. 
<p>
Examples include the running sequence number for bundles and registrations, as well as any other persistent configuration settings. 
<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00042">42</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="6f4f3b455773baf77dfb80d6300ee6a3"></a><!-- doxytag: member="dtn::GlobalStore::GlobalStore" ref="6f4f3b455773baf77dfb80d6300ee6a3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dtn::GlobalStore::GlobalStore           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00071">71</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00082">init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="639c03b947345cef9815c529df76d37a"></a><!-- doxytag: member="dtn::GlobalStore::~GlobalStore" ref="639c03b947345cef9815c529df76d37a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dtn::GlobalStore::~GlobalStore           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00152">152</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>, and <a class="el" href="GlobalStore_8h-source.html#l00123">store_</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="acf08d987fd4d96a0bd7f55a65199052"></a><!-- doxytag: member="dtn::GlobalStore::calc_digest" ref="acf08d987fd4d96a0bd7f55a65199052" args="(u_char *digest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtn::GlobalStore::calc_digest           </td>
          <td>(</td>
          <td class="paramtype">u_char *&nbsp;</td>
          <td class="paramname"> <em>digest</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Calculate a digest of on-disk serialized objects. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00197">197</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00227">load()</a>.</p>

</div>
</div><p>
<a class="anchor" name="75296d47a62dd53eaf6f4e6844e56da9"></a><!-- doxytag: member="dtn::GlobalStore::close" ref="75296d47a62dd53eaf6f4e6844e56da9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtn::GlobalStore::close           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Close (and flush) the data store. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00289">289</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="GlobalStore_8h-source.html#l00127">instance_</a>, <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>, and <a class="el" href="GlobalStore_8h-source.html#l00123">store_</a>.</p>

<p>Referenced by <a class="el" href="DTNServer_8cc-source.html#l00248">dtn::DTNServer::close_datastore()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3638bc6ee40e3be5b24b7bcbde0e5c7e"></a><!-- doxytag: member="dtn::GlobalStore::do_init" ref="3638bc6ee40e3be5b24b7bcbde0e5c7e" args="(const oasys::StorageConfig &amp;cfg, oasys::DurableStore *store)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dtn::GlobalStore::do_init           </td>
          <td>(</td>
          <td class="paramtype">const oasys::StorageConfig &amp;&nbsp;</td>
          <td class="paramname"> <em>cfg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">oasys::DurableStore *&nbsp;</td>
          <td class="paramname"> <em>store</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Real initialization method. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00096">96</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="GlobalStore_8cc-source.html#l00197">calc_digest()</a>, <a class="el" href="GlobalStore_8h-source.html#l00044">CURRENT_VERSION</a>, <a class="el" href="GlobalStore_8cc-source.html#l00049">dtn::Globals::digest_</a>, <a class="el" href="GlobalStore_8cc-source.html#l00037">dtn::GLOBAL_KEY</a>, <a class="el" href="GlobalStore_8cc-source.html#l00036">dtn::GLOBAL_TABLE</a>, <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00121">loaded_</a>, <a class="el" href="SDNV_8cc-source.html#l00054">log_err_p</a>, <a class="el" href="Registration_8h-source.html#l00056">dtn::Registration::MAX_RESERVED_REGID</a>, <a class="el" href="GlobalStore_8cc-source.html#l00047">dtn::Globals::next_bundleid_</a>, <a class="el" href="GlobalStore_8cc-source.html#l00048">dtn::Globals::next_regid_</a>, <a class="el" href="GlobalStore_8h-source.html#l00123">store_</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00046">dtn::Globals::version_</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00082">init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="87cea517050ba03905ec0f9b288783cc"></a><!-- doxytag: member="dtn::GlobalStore::init" ref="87cea517050ba03905ec0f9b288783cc" args="(const oasys::StorageConfig &amp;cfg, oasys::DurableStore *store)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dtn::GlobalStore::init           </td>
          <td>(</td>
          <td class="paramtype">const oasys::StorageConfig &amp;&nbsp;</td>
          <td class="paramname"> <em>cfg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">oasys::DurableStore *&nbsp;</td>
          <td class="paramname"> <em>store</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Boot time initializer. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00082">82</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00071">GlobalStore()</a>, and <a class="el" href="GlobalStore_8h-source.html#l00127">instance_</a>.</p>

<p>Referenced by <a class="el" href="DTNServer_8cc-source.html#l00103">dtn::DTNServer::init_datastore()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fab631e45c3d2136d3f227be9f07bbcb"></a><!-- doxytag: member="dtn::GlobalStore::initialized" ref="fab631e45c3d2136d3f227be9f07bbcb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> dtn::GlobalStore::initialized           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if initialization has completed. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00077">77</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>References <a class="el" href="GlobalStore_8h-source.html#l00127">instance_</a>.</p>

</div>
</div><p>
<a class="anchor" name="84112e55922524eb85a143be7d5197a0"></a><!-- doxytag: member="dtn::GlobalStore::instance" ref="84112e55922524eb85a143be7d5197a0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classdtn_1_1GlobalStore.html">GlobalStore</a>* dtn::GlobalStore::instance           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Singleton instance accessor. 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00049">49</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>References <a class="el" href="GlobalStore_8h-source.html#l00127">instance_</a>.</p>

<p>Referenced by <a class="el" href="Bundle_8cc-source.html#l00077">dtn::Bundle::Bundle()</a>, <a class="el" href="DTNServer_8cc-source.html#l00248">dtn::DTNServer::close_datastore()</a>, <a class="el" href="APIServer_8cc-source.html#l00506">dtn::APIClient::handle_register()</a>, and <a class="el" href="DTNServer_8cc-source.html#l00103">dtn::DTNServer::init_datastore()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f13b2a032c0320672940f4bff3b5c0d7"></a><!-- doxytag: member="dtn::GlobalStore::load" ref="f13b2a032c0320672940f4bff3b5c0d7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> dtn::GlobalStore::load           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Load in the globals. 
<p>

<p>Reimplemented in <a class="el" href="classdtn_1_1SQLGlobalStore.html#c5279f8bebb70265eeabbca57b057b91">dtn::SQLGlobalStore</a>.</p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00227">227</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="GlobalStore_8cc-source.html#l00197">calc_digest()</a>, <a class="el" href="GlobalStore_8h-source.html#l00044">CURRENT_VERSION</a>, <a class="el" href="GlobalStore_8cc-source.html#l00049">dtn::Globals::digest_</a>, <a class="el" href="GlobalStore_8cc-source.html#l00037">dtn::GLOBAL_KEY</a>, <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00121">loaded_</a>, <a class="el" href="GlobalStore_8h-source.html#l00123">store_</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00046">dtn::Globals::version_</a>.</p>

</div>
</div><p>
<a class="anchor" name="70842bf9404fe5c9ec84bb9fc99c657e"></a><!-- doxytag: member="dtn::GlobalStore::next_bundleid" ref="70842bf9404fe5c9ec84bb9fc99c657e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int32_t dtn::GlobalStore::next_bundleid           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a new bundle id, updating the value in the store. 
<p>
(was db_update_bundle_id, db_restore_bundle_id) 
<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00161">161</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>, <a class="el" href="GlobalStore_8cc-source.html#l00047">dtn::Globals::next_bundleid_</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>.</p>

<p>Referenced by <a class="el" href="Bundle_8cc-source.html#l00077">dtn::Bundle::Bundle()</a>.</p>

</div>
</div><p>
<a class="anchor" name="0cd22769f4f62af9ef5779f453814d16"></a><!-- doxytag: member="dtn::GlobalStore::next_regid" ref="0cd22769f4f62af9ef5779f453814d16" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int32_t dtn::GlobalStore::next_regid           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a new unique registration id, updating the running value in the persistent table. 
<p>
(was db_new_regID, db_update_registration_id, db_retable_registration_id) 
<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00179">179</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>, <a class="el" href="GlobalStore_8cc-source.html#l00048">dtn::Globals::next_regid_</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>.</p>

<p>Referenced by <a class="el" href="APIServer_8cc-source.html#l00506">dtn::APIClient::handle_register()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a1ccd629fa2ff5f48068702895eaab7f"></a><!-- doxytag: member="dtn::GlobalStore::update" ref="a1ccd629fa2ff5f48068702895eaab7f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtn::GlobalStore::update           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update the globals in the store. 
<p>

<p>Reimplemented in <a class="el" href="classdtn_1_1SQLGlobalStore.html#a10e303e55934b04399224b17e565182">dtn::SQLGlobalStore</a>.</p>

<p>Definition at line <a class="el" href="GlobalStore_8cc-source.html#l00269">269</a> of file <a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a>.</p>

<p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="GlobalStore_8cc-source.html#l00037">dtn::GLOBAL_KEY</a>, <a class="el" href="GlobalStore_8h-source.html#l00122">globals_</a>, <a class="el" href="GlobalStore_8h-source.html#l00121">loaded_</a>, <a class="el" href="GlobalStore_8h-source.html#l00125">lock_</a>, and <a class="el" href="GlobalStore_8h-source.html#l00123">store_</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00161">next_bundleid()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00179">next_regid()</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="c49069461c18c4fcc29fbbb42fe02232"></a><!-- doxytag: member="dtn::GlobalStore::CURRENT_VERSION" ref="c49069461c18c4fcc29fbbb42fe02232" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const u_int32_t <a class="el" href="classdtn_1_1GlobalStore.html#c49069461c18c4fcc29fbbb42fe02232">dtn::GlobalStore::CURRENT_VERSION</a> = 3<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00044">44</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00227">load()</a>.</p>

</div>
</div><p>
<a class="anchor" name="362bfa46205417ad036335ddaa03f8ad"></a><!-- doxytag: member="dtn::GlobalStore::globals_" ref="362bfa46205417ad036335ddaa03f8ad" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdtn_1_1Globals.html">Globals</a>* <a class="el" href="classdtn_1_1GlobalStore.html#362bfa46205417ad036335ddaa03f8ad">dtn::GlobalStore::globals_</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00122">122</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00227">load()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00161">next_bundleid()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00179">next_regid()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00152">~GlobalStore()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cddeeabc9fbd02c65c9bccc30cc92661"></a><!-- doxytag: member="dtn::GlobalStore::instance_" ref="cddeeabc9fbd02c65c9bccc30cc92661" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdtn_1_1GlobalStore.html">GlobalStore</a> * <a class="el" href="classdtn_1_1GlobalStore.html#cddeeabc9fbd02c65c9bccc30cc92661">dtn::GlobalStore::instance_</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
singleton instance 
<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00127">127</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00289">close()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00082">init()</a>, <a class="el" href="GlobalStore_8h-source.html#l00077">initialized()</a>, and <a class="el" href="GlobalStore_8h-source.html#l00049">instance()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a4f769642ccfd052bce745507bab471f"></a><!-- doxytag: member="dtn::GlobalStore::loaded_" ref="a4f769642ccfd052bce745507bab471f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> <a class="el" href="classdtn_1_1GlobalStore.html#a4f769642ccfd052bce745507bab471f">dtn::GlobalStore::loaded_</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00121">121</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00227">load()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6eafeca26db895e83de98e0b644eb695"></a><!-- doxytag: member="dtn::GlobalStore::lock_" ref="6eafeca26db895e83de98e0b644eb695" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">oasys::Mutex* <a class="el" href="classdtn_1_1GlobalStore.html#6eafeca26db895e83de98e0b644eb695">dtn::GlobalStore::lock_</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00125">125</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00289">close()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00071">GlobalStore()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00161">next_bundleid()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00179">next_regid()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00152">~GlobalStore()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b57f9969fa2b0bf21bf050d2be3db3bc"></a><!-- doxytag: member="dtn::GlobalStore::store_" ref="b57f9969fa2b0bf21bf050d2be3db3bc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">oasys::SingleTypeDurableTable&lt;<a class="el" href="classdtn_1_1Globals.html">Globals</a>&gt;* <a class="el" href="classdtn_1_1GlobalStore.html#b57f9969fa2b0bf21bf050d2be3db3bc">dtn::GlobalStore::store_</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented in <a class="el" href="classdtn_1_1SQLGlobalStore.html#d1d42c3837c0433f377640237b70f4cc">dtn::SQLGlobalStore</a>.</p>

<p>Definition at line <a class="el" href="GlobalStore_8h-source.html#l00123">123</a> of file <a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a>.</p>

<p>Referenced by <a class="el" href="GlobalStore_8cc-source.html#l00289">close()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00096">do_init()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00227">load()</a>, <a class="el" href="GlobalStore_8cc-source.html#l00269">update()</a>, and <a class="el" href="GlobalStore_8cc-source.html#l00152">~GlobalStore()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="GlobalStore_8h-source.html">GlobalStore.h</a><li><a class="el" href="GlobalStore_8cc-source.html">GlobalStore.cc</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:05 2009 for DTN Reference Implementation by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>