Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 618

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GNU CommonC++: persist.h Source File</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.6.3 -->
<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>
    </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>
<h1>persist.h</h1><a href="persist_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_PERSIST_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_PERSIST_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_CONFIG_H_</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="config_8h.html">cc++/config.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_EXCEPTIONS_H_</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="exception_8h.html" title="GNU Common C++ exception model base classes.">cc++/exception.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef CCXX_STRING_H_</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="string_8h.html" title="Common C++ generic string class.">cc++/string.h</a>&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 <span class="preprocessor">#ifdef HAVE_ZLIB_H</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#ifndef NO_COMPRESSION</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#include &lt;zlib.h&gt;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#endif</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#define NO_COMPRESSION</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00071"></a>00071 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00072"></a>00072 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00073"></a>00073 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00074"></a>00074 <span class="preprocessor">#include &lt;deque&gt;</span>
<a name="l00075"></a>00075 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00079"></a><a class="code" href="persist_8h.html#a007a79d2deffc2a4a09bcce1943a6ecb">00079</a> <span class="preprocessor">#define NS_PREFIX ost::</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define NS_PREFIX</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00084"></a>00084 <span class="preprocessor">#ifdef  CCXX_EXCEPTIONS</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="preprocessor">#ifdef  COMMON_STD_EXCEPTION</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span>
<a name="l00087"></a><a class="code" href="classost_1_1_persist_exception.html">00087</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_persist_exception.html">PersistException</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_exception.html" title="Mainline exception handler, this is the root for all Common C++ exceptions and assures...">Exception</a>
<a name="l00088"></a>00088 {
<a name="l00089"></a>00089 <span class="keyword">public</span>:
<a name="l00090"></a><a class="code" href="classost_1_1_persist_exception.html#a1e6f43345e91d02dc8e389f9de1bb061">00090</a>         <a class="code" href="classost_1_1_persist_exception.html#a1e6f43345e91d02dc8e389f9de1bb061">PersistException</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> &amp;what) : <a class="code" href="classost_1_1_exception.html" title="Mainline exception handler, this is the root for all Common C++ exceptions and assures...">Exception</a>(what) {};
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="preprocessor">#else</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span>
<a name="l00095"></a>00095 <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> PersistException
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097 <span class="keyword">public</span>:
<a name="l00098"></a>00098         PersistException(<span class="keyword">const</span> String&amp; reason);
<a name="l00099"></a>00099         <span class="keyword">inline</span> <span class="keyword">const</span> String&amp; getString()<span class="keyword"> const</span>
<a name="l00100"></a>00100 <span class="keyword">                </span>{<span class="keywordflow">return</span> <a class="code" href="classost_1_1_exception.html#aca9da57d4618545ae892503f1fc903af">Exception::getString</a>();};
<a name="l00101"></a>00101 
<a name="l00102"></a>00102         <span class="keyword">virtual</span> ~PersistException() {} <span class="keywordflow">throw</span>();
<a name="l00103"></a>00103 <span class="keyword">protected</span>:
<a name="l00104"></a>00104         String _what;
<a name="l00105"></a>00105 };
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="preprocessor">#endif</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>
<a name="l00110"></a>00110 <span class="comment">// This typedef allows us to declare NewBaseObjectFunction now</span>
<a name="l00111"></a><a class="code" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">00111</a> <span class="keyword">typedef</span> <span class="keyword">class </span><a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>* (*NewBaseObjectFunction) (void);
<a name="l00112"></a>00112 
<a name="l00121"></a><a class="code" href="classost_1_1_type_manager.html">00121</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_type_manager.html" title="This class manages the types for generation of the persistent objects.">TypeManager</a>
<a name="l00122"></a>00122 {
<a name="l00123"></a>00123 <span class="keyword">public</span>:
<a name="l00124"></a>00124 
<a name="l00129"></a><a class="code" href="classost_1_1_type_manager_1_1_registration.html">00129</a>         <span class="keyword">class </span><a class="code" href="classost_1_1_type_manager_1_1_registration.html" title="This manages a registration to the typemanager - attempting to remove problems with...">Registration</a> 
<a name="l00130"></a>00130         {
<a name="l00131"></a>00131         <span class="keyword">public</span>:
<a name="l00132"></a>00132                 <a class="code" href="classost_1_1_type_manager_1_1_registration.html" title="This manages a registration to the typemanager - attempting to remove problems with...">Registration</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <a class="code" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> func);
<a name="l00133"></a>00133                 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_type_manager_1_1_registration.html" title="This manages a registration to the typemanager - attempting to remove problems with...">Registration</a>();
<a name="l00134"></a>00134         <span class="keyword">private</span>:
<a name="l00135"></a>00135                 <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> myName;
<a name="l00136"></a>00136         };
<a name="l00137"></a>00137 
<a name="l00141"></a>00141         <span class="keyword">static</span> <span class="keywordtype">void</span> add(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <a class="code" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> construction);
<a name="l00142"></a>00142 
<a name="l00146"></a>00146         <span class="keyword">static</span> <span class="keywordtype">void</span> <span class="keyword">remove</span>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
<a name="l00147"></a>00147 
<a name="l00153"></a>00153         <span class="keyword">static</span> <a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>* createInstanceOf(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
<a name="l00154"></a>00154 
<a name="l00155"></a><a class="code" href="classost_1_1_type_manager.html#a898c5cca59cb8c845d8c836aeed0fae0">00155</a>         <span class="keyword">typedef</span> std::map&lt;String,NewBaseObjectFunction&gt; StringFunctionMap;
<a name="l00156"></a>00156 };
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 <span class="comment">/*</span>
<a name="l00160"></a>00160 <span class="comment"> * The following defines are used to declare and define the relevant code</span>
<a name="l00161"></a>00161 <span class="comment"> * to allow a class to use the Persistence::Engine code.</span>
<a name="l00162"></a>00162 <span class="comment"> */</span>
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="persist_8h.html#a0063bc0eb4e47f3fd4b0662d31656838">00164</a> <span class="preprocessor">#define DECLARE_PERSISTENCE(ClassType)                                  \</span>
<a name="l00165"></a>00165 <span class="preprocessor">  public:                                                               \</span>
<a name="l00166"></a>00166 <span class="preprocessor">        friend NS_PREFIX Engine&amp; operator&gt;&gt;( NS_PREFIX Engine&amp; ar, ClassType *&amp;ob);             \</span>
<a name="l00167"></a>00167 <span class="preprocessor">        friend NS_PREFIX Engine&amp; operator&lt;&lt;( NS_PREFIX Engine&amp; ar, ClassType const &amp;ob);        \</span>
<a name="l00168"></a>00168 <span class="preprocessor">        friend NS_PREFIX BaseObject *createNew##ClassType();                            \</span>
<a name="l00169"></a>00169 <span class="preprocessor">        virtual const char* getPersistenceID() const;                   \</span>
<a name="l00170"></a>00170 <span class="preprocessor">        static NS_PREFIX TypeManager::Registration registrationFor##ClassType;</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>
<a name="l00172"></a><a class="code" href="persist_8h.html#a518a5354fd7cb859b9534d7806cc883c">00172</a> <span class="preprocessor">#define IMPLEMENT_PERSISTENCE(ClassType, FullyQualifiedName)                  \</span>
<a name="l00173"></a>00173 <span class="preprocessor">  NS_PREFIX BaseObject *createNew##ClassType() { return new ClassType; }                      \</span>
<a name="l00174"></a>00174 <span class="preprocessor">  const char* ClassType::getPersistenceID() const {return FullyQualifiedName;} \</span>
<a name="l00175"></a>00175 <span class="preprocessor">  NS_PREFIX Engine&amp; operator&gt;&gt;(NS_PREFIX Engine&amp; ar, ClassType &amp;ob)                           \</span>
<a name="l00176"></a>00176 <span class="preprocessor">        { ar &gt;&gt; (NS_PREFIX BaseObject &amp;) ob; return ar; }                                     \</span>
<a name="l00177"></a>00177 <span class="preprocessor">  NS_PREFIX Engine&amp; operator&gt;&gt;(NS_PREFIX Engine&amp; ar, ClassType *&amp;ob)                          \</span>
<a name="l00178"></a>00178 <span class="preprocessor">        { ar &gt;&gt; (NS_PREFIX BaseObject *&amp;) ob; return ar; }                                    \</span>
<a name="l00179"></a>00179 <span class="preprocessor">  NS_PREFIX Engine&amp; operator&lt;&lt;(NS_PREFIX Engine&amp; ar, ClassType const &amp;ob)                             \</span>
<a name="l00180"></a>00180 <span class="preprocessor">        { ar &lt;&lt; (NS_PREFIX BaseObject const *)&amp;ob; return ar; }                       \</span>
<a name="l00181"></a>00181 <span class="preprocessor">  NS_PREFIX TypeManager::Registration                                                 \</span>
<a name="l00182"></a>00182 <span class="preprocessor">        ClassType::registrationFor##ClassType(FullyQualifiedName,             \</span>
<a name="l00183"></a>00183 <span class="preprocessor">                                              createNew##ClassType);</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a>00185 <span class="keyword">class </span>Engine;
<a name="l00186"></a>00186 
<a name="l00206"></a><a class="code" href="classost_1_1_base_object.html">00206</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>
<a name="l00207"></a>00207 {
<a name="l00208"></a>00208 <span class="keyword">public</span>:
<a name="l00214"></a>00214          <a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>();
<a name="l00215"></a>00215 
<a name="l00219"></a>00219          <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>();
<a name="l00220"></a>00220 
<a name="l00224"></a>00224          <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* getPersistenceID() <span class="keyword">const</span>;
<a name="l00225"></a>00225 
<a name="l00231"></a>00231          <span class="keyword">virtual</span> <span class="keywordtype">bool</span> write(<a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; archive) <span class="keyword">const</span>;
<a name="l00232"></a>00232 
<a name="l00238"></a>00238          <span class="keyword">virtual</span> <span class="keywordtype">bool</span> read(<a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; archive);
<a name="l00239"></a>00239 };
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 
<a name="l00252"></a><a class="code" href="classost_1_1_engine.html">00252</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>
<a name="l00253"></a>00253 {
<a name="l00254"></a>00254 <span class="keyword">public</span>:
<a name="l00258"></a><a class="code" href="classost_1_1_engine.html#a79c3c9a0b5e4539bfd628e74abb9dcd7">00258</a>         <span class="keyword">enum</span> <a class="code" href="classost_1_1_engine.html#a79c3c9a0b5e4539bfd628e74abb9dcd7" title="These are the modes the Persistence::Engine can work in.">EngineMode</a> {
<a name="l00259"></a><a class="code" href="classost_1_1_engine.html#a79c3c9a0b5e4539bfd628e74abb9dcd7a925cc9ec51802d448af134176a5a0378">00259</a>                 modeRead,
<a name="l00260"></a><a class="code" href="classost_1_1_engine.html#a79c3c9a0b5e4539bfd628e74abb9dcd7ab0d24e68c9ca4dc79cda2c8362c9c836">00260</a>                 modeWrite
<a name="l00261"></a>00261         };
<a name="l00262"></a>00262 
<a name="l00269"></a>00269         <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>(std::iostream&amp; stream, EngineMode mode, <span class="keywordtype">bool</span> compress=<span class="keyword">true</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00270"></a>00270 
<a name="l00275"></a>00275         <span class="keywordtype">void</span> sync();
<a name="l00276"></a>00276         
<a name="l00280"></a>00280         <span class="keywordtype">bool</span> more();
<a name="l00281"></a>00281 
<a name="l00282"></a>00282         virtual ~<a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>();
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 
<a name="l00285"></a>00285         <span class="comment">// Write operations</span>
<a name="l00286"></a>00286 
<a name="l00290"></a><a class="code" href="classost_1_1_engine.html#ad975ecfd291637f648ac8af85288685a">00290</a>         <span class="keywordtype">void</span> write(const <a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a> &amp;<span class="keywordtype">object</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException)
<a name="l00291"></a>00291         { <a class="code" href="classost_1_1_engine.html#ad975ecfd291637f648ac8af85288685a" title="writes a BaseObject from a reference.">write</a>(&amp;<span class="keywordtype">object</span>); };
<a name="l00292"></a>00292 
<a name="l00296"></a>00296         <span class="keywordtype">void</span> write(<span class="keyword">const</span> <a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a> *<span class="keywordtype">object</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00297"></a>00297 
<a name="l00298"></a>00298         <span class="comment">// writes supported primitive types</span>
<a name="l00299"></a>00299         <span class="comment">// shortcut, to make the following more readable</span>
<a name="l00300"></a><a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">00300</a> <span class="preprocessor">#define CCXX_ENGINEWRITE_REF(valref) writeBinary((const uint8*)&amp;valref,sizeof(valref))</span>
<a name="l00301"></a><a class="code" href="classost_1_1_engine.html#a049fe41ec0ec471d4b33f1c78a7a3ed8">00301</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a049fe41ec0ec471d4b33f1c78a7a3ed8">write</a>(<a class="code" href="config_8h.html#aa79c2d3de4fcd200458c406f40b2ae64">int8</a> i)   <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00302"></a><a class="code" href="classost_1_1_engine.html#aefa43f7f8b907120140d5f4c1f4bf48a">00302</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#aefa43f7f8b907120140d5f4c1f4bf48a">write</a>(<a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a> i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00303"></a><a class="code" href="classost_1_1_engine.html#a317a30a9536ed482a422ba3062787365">00303</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a317a30a9536ed482a422ba3062787365">write</a>(<a class="code" href="config_8h.html#aa0d0fdc87fd135ef2bedb030901cdb9c">int16</a> i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00304"></a><a class="code" href="classost_1_1_engine.html#a8f7924c71e02be7dc9a167fe86261e81">00304</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a8f7924c71e02be7dc9a167fe86261e81">write</a>(<a class="code" href="config_8h.html#aae17e32cd1bc7052e91399790645502a">uint16</a> i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00305"></a><a class="code" href="classost_1_1_engine.html#a106899401f27aef4f34b7ba2630ef412">00305</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a106899401f27aef4f34b7ba2630ef412">write</a>(<a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a> i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00306"></a><a class="code" href="classost_1_1_engine.html#a8f983bd49c2cc0efe6a99ea0fbdbca65">00306</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a8f983bd49c2cc0efe6a99ea0fbdbca65">write</a>(<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00307"></a>00307 <span class="preprocessor">#ifdef  HAVE_64_BITS</span>
<a name="l00308"></a><a class="code" href="classost_1_1_engine.html#a95a38ed183a0c71123fe9676f747b928">00308</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a95a38ed183a0c71123fe9676f747b928">write</a>(<a class="code" href="config_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a> i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00309"></a><a class="code" href="classost_1_1_engine.html#aac8ac3c27f858817b89f49b1d4b4f8d6">00309</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#aac8ac3c27f858817b89f49b1d4b4f8d6">write</a>(<a class="code" href="config_8h.html#a9293020e920aa211c946e93626a6b14a">uint64</a> i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00310"></a>00310 <span class="preprocessor">#endif</span>
<a name="l00311"></a><a class="code" href="classost_1_1_engine.html#a9cbe0e797933328a4d21a4c9580e79c3">00311</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a9cbe0e797933328a4d21a4c9580e79c3">write</a>(<span class="keywordtype">float</span> i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00312"></a><a class="code" href="classost_1_1_engine.html#ad70f467197cf8e1402296d3c2d52de08">00312</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#ad70f467197cf8e1402296d3c2d52de08">write</a>(<span class="keywordtype">double</span> i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a2c0cd884a6ed71a178ef1569190c5e16">CCXX_ENGINEWRITE_REF</a>(i); }
<a name="l00313"></a>00313 <span class="preprocessor">#undef CCXX_ENGINEWRITE_REF</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>
<a name="l00315"></a>00315         <span class="keywordtype">void</span> write(<span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a>&amp; str) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00316"></a>00316         <span class="keywordtype">void</span> write(<span class="keyword">const</span> std::string&amp; str) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00317"></a>00317 
<a name="l00318"></a>00318         <span class="comment">// Every write operation boils down to one or more of these</span>
<a name="l00319"></a>00319         <span class="keywordtype">void</span> writeBinary(<span class="keyword">const</span> <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>* data, <span class="keyword">const</span> <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> size) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00320"></a>00320 
<a name="l00321"></a>00321 
<a name="l00322"></a>00322         <span class="comment">// Read Operations</span>
<a name="l00323"></a>00323 
<a name="l00327"></a>00327         <span class="keywordtype">void</span> read(<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a> &amp;<span class="keywordtype">object</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00328"></a>00328 
<a name="l00332"></a>00332         <span class="keywordtype">void</span> read(<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a> *&amp;<span class="keywordtype">object</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00333"></a>00333 
<a name="l00334"></a>00334         <span class="comment">// reads supported primitive types</span>
<a name="l00335"></a>00335   <span class="comment">// shortcut, to make the following more readable</span>
<a name="l00336"></a><a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">00336</a> <span class="preprocessor">#define CCXX_ENGINEREAD_REF(valref) readBinary((uint8*)&amp;valref,sizeof(valref))</span>
<a name="l00337"></a><a class="code" href="classost_1_1_engine.html#a00fe3ee02b87c450f313c781bac83948">00337</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a00fe3ee02b87c450f313c781bac83948">read</a>(<a class="code" href="config_8h.html#aa79c2d3de4fcd200458c406f40b2ae64">int8</a>&amp; i)   <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00338"></a><a class="code" href="classost_1_1_engine.html#a88d2777e7ef59d31785bea8e7e9ec8d5">00338</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a88d2777e7ef59d31785bea8e7e9ec8d5">read</a>(<a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>&amp; i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00339"></a><a class="code" href="classost_1_1_engine.html#a3bf1b5ff85643a4a3cd39132192b3140">00339</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a3bf1b5ff85643a4a3cd39132192b3140">read</a>(<a class="code" href="config_8h.html#aa0d0fdc87fd135ef2bedb030901cdb9c">int16</a>&amp; i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00340"></a><a class="code" href="classost_1_1_engine.html#a52bf0837f5c8e97e6afb608f8a44daf9">00340</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a52bf0837f5c8e97e6afb608f8a44daf9">read</a>(<a class="code" href="config_8h.html#aae17e32cd1bc7052e91399790645502a">uint16</a>&amp; i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00341"></a><a class="code" href="classost_1_1_engine.html#a32859e2b1b7e70e550bb8b367ba9ca7f">00341</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a32859e2b1b7e70e550bb8b367ba9ca7f">read</a>(<a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a>&amp; i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00342"></a><a class="code" href="classost_1_1_engine.html#ab91b7b9f5c5d4c177d9206ad29ee2091">00342</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#ab91b7b9f5c5d4c177d9206ad29ee2091">read</a>(<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a>&amp; i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00343"></a>00343 <span class="preprocessor">#ifdef  HAVE_64_BITS</span>
<a name="l00344"></a><a class="code" href="classost_1_1_engine.html#a2d12f46d54f896a86f9f183d966d5fe8">00344</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a2d12f46d54f896a86f9f183d966d5fe8">read</a>(<a class="code" href="config_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a>&amp; i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00345"></a><a class="code" href="classost_1_1_engine.html#a47825407e4c950ca67b14ffbaa363cab">00345</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a47825407e4c950ca67b14ffbaa363cab">read</a>(<a class="code" href="config_8h.html#a9293020e920aa211c946e93626a6b14a">uint64</a>&amp; i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00346"></a>00346 <span class="preprocessor">#endif</span>
<a name="l00347"></a><a class="code" href="classost_1_1_engine.html#ad7c8f45e1c8315c45a241d81c73bca0c">00347</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#ad7c8f45e1c8315c45a241d81c73bca0c">read</a>(<span class="keywordtype">float</span>&amp; i)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00348"></a><a class="code" href="classost_1_1_engine.html#a34e4f4e68203d15a5ae79830e51ce1dc">00348</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_engine.html#a34e4f4e68203d15a5ae79830e51ce1dc">read</a>(<span class="keywordtype">double</span>&amp; i) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>) { <a class="code" href="persist_8h.html#a7df6645fae18e96d06803c9e110b5f15">CCXX_ENGINEREAD_REF</a>(i); }
<a name="l00349"></a>00349 <span class="preprocessor">#undef CCXX_ENGINEREAD_REF</span>
<a name="l00350"></a>00350 <span class="preprocessor"></span>
<a name="l00351"></a>00351         <span class="keywordtype">void</span> read(<a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a>&amp; str) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00352"></a>00352         <span class="keywordtype">void</span> read(std::string&amp; str) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00353"></a>00353 
<a name="l00354"></a>00354         <span class="comment">// Every read operation boild down to one or more of these</span>
<a name="l00355"></a>00355         <span class="keywordtype">void</span> readBinary(<a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>* data, <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> size) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00356"></a>00356 
<a name="l00357"></a>00357 <span class="keyword">private</span>:
<a name="l00362"></a>00362         <span class="keywordtype">void</span> readObject(<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>* <span class="keywordtype">object</span>) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00363"></a>00363 
<a name="l00367"></a>00367         <span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> readClass() <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>);
<a name="l00368"></a>00368 
<a name="l00369"></a>00369 
<a name="l00373"></a>00373         std::iostream&amp; myUnderlyingStream;
<a name="l00374"></a>00374 
<a name="l00378"></a>00378         EngineMode myOperationalMode;
<a name="l00379"></a>00379 
<a name="l00383"></a>00383         typedef std::vector&lt;<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a>*&gt;           ArchiveVector;
<a name="l00384"></a>00384         typedef std::map&lt;<a class="code" href="classost_1_1_base_object.html" title="BaseObject.">BaseObject</a> const*, <a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a>&gt; ArchiveMap;
<a name="l00385"></a>00385         typedef std::vector&lt;<a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a>&gt;                ClassVector;
<a name="l00386"></a>00386         typedef std::map&lt;<a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a>, <a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a>&gt;            ClassMap;
<a name="l00387"></a>00387 
<a name="l00388"></a>00388         ArchiveVector myArchiveVector;
<a name="l00389"></a>00389         ArchiveMap myArchiveMap;
<a name="l00390"></a>00390         ClassVector myClassVector;
<a name="l00391"></a>00391         ClassMap myClassMap;
<a name="l00392"></a>00392 
<a name="l00393"></a>00393         <span class="comment">// Compression support</span>
<a name="l00394"></a>00394         <span class="keywordtype">bool</span> use_compression; <span class="comment">// valid onlry if NO_COMPRESSION is false</span>
<a name="l00395"></a>00395 <span class="preprocessor">#ifndef NO_COMPRESSION</span>
<a name="l00396"></a>00396 <span class="preprocessor"></span>        z_stream myZStream;
<a name="l00397"></a>00397         <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>* myCompressedDataBuffer;
<a name="l00398"></a>00398         <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>* myUncompressedDataBuffer;
<a name="l00399"></a>00399         <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>* myLastUncompressedDataRead;
<a name="l00400"></a>00400 <span class="preprocessor">#endif</span>
<a name="l00401"></a>00401 <span class="preprocessor"></span>};
<a name="l00402"></a>00402 
<a name="l00403"></a>00403 <span class="comment">// Standard &gt;&gt; and &lt;&lt; stream operators for BaseObject</span>
<a name="l00405"></a>00405 <span class="comment"></span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, BaseObject &amp;ob)      <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00407"></a>00407 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, BaseObject *&amp;ob)      <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00409"></a>00409 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, BaseObject <span class="keyword">const</span> &amp;ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00411"></a>00411 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, BaseObject <span class="keyword">const</span> *ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00412"></a>00412 
<a name="l00414"></a>00414 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#aa79c2d3de4fcd200458c406f40b2ae64">int8</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00416"></a>00416 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#aa79c2d3de4fcd200458c406f40b2ae64">int8</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00417"></a>00417 
<a name="l00419"></a>00419 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00421"></a>00421 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#a2f658db822f8a23711b5bac1094c2185">uint8</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00422"></a>00422 
<a name="l00424"></a>00424 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#aa0d0fdc87fd135ef2bedb030901cdb9c">int16</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00426"></a>00426 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#aa0d0fdc87fd135ef2bedb030901cdb9c">int16</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00427"></a>00427 
<a name="l00429"></a>00429 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#aae17e32cd1bc7052e91399790645502a">uint16</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00431"></a>00431 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#aae17e32cd1bc7052e91399790645502a">uint16</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00432"></a>00432 
<a name="l00434"></a>00434 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00436"></a>00436 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#ab7903878916593daecbeb95b98115ab0">int32</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00437"></a>00437 
<a name="l00439"></a>00439 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00441"></a>00441 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00442"></a>00442 
<a name="l00443"></a>00443 <span class="preprocessor">#ifdef  HAVE_64_BITS</span>
<a name="l00444"></a>00444 <span class="preprocessor"></span>
<a name="l00445"></a>00445 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00447"></a>00447 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00448"></a>00448 
<a name="l00450"></a>00450 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <a class="code" href="config_8h.html#a9293020e920aa211c946e93626a6b14a">uint64</a>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00452"></a>00452 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <a class="code" href="config_8h.html#a9293020e920aa211c946e93626a6b14a">uint64</a> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00453"></a>00453 <span class="preprocessor">#endif</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span>
<a name="l00456"></a>00456 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <span class="keywordtype">float</span>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00458"></a>00458 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <span class="keywordtype">float</span> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00459"></a>00459 
<a name="l00461"></a>00461 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <span class="keywordtype">double</span>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00463"></a>00463 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <span class="keywordtype">double</span> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00464"></a>00464 
<a name="l00466"></a>00466 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, String&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00468"></a>00468 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, String ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00469"></a>00469 
<a name="l00471"></a>00471 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, std::string&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00473"></a>00473 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, std::string ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00474"></a>00474 
<a name="l00476"></a>00476 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; operator &gt;&gt;( Engine&amp; ar, <span class="keywordtype">bool</span>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00478"></a>00478 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Engine&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator &lt;&lt;</a>( Engine&amp; ar, <span class="keywordtype">bool</span> ob)  <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (PersistException);
<a name="l00479"></a>00479 
<a name="l00489"></a>00489 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00490"></a><a class="code" href="classost_1_1_engine.html#af10bdcc7d2a3968440cac050d4d977b1">00490</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &lt;&lt;( Engine&amp; ar, typename std::vector&lt;T&gt; <span class="keyword">const</span>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00491"></a>00491 {
<a name="l00492"></a>00492         ar &lt;&lt; (<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a>)ob.size();
<a name="l00493"></a>00493         <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i &lt; ob.size(); ++i)
<a name="l00494"></a>00494                 ar &lt;&lt; ob[i];
<a name="l00495"></a>00495         <span class="keywordflow">return</span> ar;
<a name="l00496"></a>00496 }
<a name="l00497"></a>00497 
<a name="l00503"></a>00503 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00504"></a><a class="code" href="classost_1_1_engine.html#a1b55118c4d880311c21318012c1f5b04">00504</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &gt;&gt;( <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; ar, <span class="keyword">typename</span> std::vector&lt;T&gt;&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00505"></a>00505 {
<a name="l00506"></a>00506         ob.clear();
<a name="l00507"></a>00507         <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> siz;
<a name="l00508"></a>00508         ar &gt;&gt; siz;
<a name="l00509"></a>00509         ob.resize(siz);
<a name="l00510"></a>00510         <span class="keywordflow">for</span>(<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> i=0; i &lt; siz; ++i)
<a name="l00511"></a>00511                 ar &gt;&gt; ob[i];
<a name="l00512"></a>00512         <span class="keywordflow">return</span> ar;
<a name="l00513"></a>00513 }
<a name="l00514"></a>00514 
<a name="l00520"></a>00520 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00521"></a><a class="code" href="classost_1_1_engine.html#aacb58d51937a8caefda022dfbe0921fe">00521</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &lt;&lt;( Engine&amp; ar, typename std::deque&lt;T&gt; <span class="keyword">const</span>&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00522"></a>00522 {
<a name="l00523"></a>00523         ar &lt;&lt; (<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a>)ob.size();
<a name="l00524"></a>00524   <span class="keywordflow">for</span>(<span class="keyword">typename</span> std::deque&lt;T&gt;::const_iterator it=ob.begin(); it != ob.end(); ++it)
<a name="l00525"></a>00525                 ar &lt;&lt; *it;
<a name="l00526"></a>00526         <span class="keywordflow">return</span> ar;
<a name="l00527"></a>00527 }
<a name="l00528"></a>00528 
<a name="l00534"></a>00534 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00535"></a><a class="code" href="classost_1_1_engine.html#ae2f53b3366adcafa7f2a1a231251810c">00535</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &gt;&gt;( <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; ar, <span class="keyword">typename</span> std::deque&lt;T&gt;&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00536"></a>00536 {
<a name="l00537"></a>00537         ob.clear();
<a name="l00538"></a>00538         <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> siz;
<a name="l00539"></a>00539         ar &gt;&gt; siz;
<a name="l00540"></a>00540         <span class="comment">//ob.resize(siz);</span>
<a name="l00541"></a>00541         <span class="keywordflow">for</span>(<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> i=0; i &lt; siz; ++i) {
<a name="l00542"></a>00542         T node;
<a name="l00543"></a>00543         ar &gt;&gt; node;
<a name="l00544"></a>00544         ob.push_back(node);
<a name="l00545"></a>00545                 <span class="comment">//ar &gt;&gt; ob[i];</span>
<a name="l00546"></a>00546   }
<a name="l00547"></a>00547         <span class="keywordflow">return</span> ar;
<a name="l00548"></a>00548 }
<a name="l00549"></a>00549 
<a name="l00555"></a>00555 <span class="keyword">template</span>&lt;<span class="keyword">class</span> Key, <span class="keyword">class</span> Value&gt;
<a name="l00556"></a><a class="code" href="classost_1_1_engine.html#ae71dd398abe7a0ad0a170fe216c4fd81">00556</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &lt;&lt;( Engine&amp; ar, typename std::map&lt;Key,Value&gt; <span class="keyword">const</span> &amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00557"></a>00557 {
<a name="l00558"></a>00558         ar &lt;&lt; (<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a>)ob.size();
<a name="l00559"></a>00559         <span class="keywordflow">for</span>(<span class="keyword">typename</span> std::map&lt;Key,Value&gt;::const_iterator it = ob.begin();it != ob.end();++it)
<a name="l00560"></a>00560                 ar &lt;&lt; it-&gt;first &lt;&lt; it-&gt;second;
<a name="l00561"></a>00561         <span class="keywordflow">return</span> ar;
<a name="l00562"></a>00562 }
<a name="l00563"></a>00563 
<a name="l00569"></a>00569 <span class="keyword">template</span>&lt;<span class="keyword">class</span> Key, <span class="keyword">class</span> Value&gt;
<a name="l00570"></a><a class="code" href="classost_1_1_engine.html#af82b8f6bed62677a68c249fc97ae36c6">00570</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &gt;&gt;( <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; ar, <span class="keyword">typename</span> std::map&lt;Key,Value&gt;&amp; ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00571"></a>00571 {
<a name="l00572"></a>00572         ob.clear();
<a name="l00573"></a>00573         <a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> siz;
<a name="l00574"></a>00574         ar &gt;&gt; siz;
<a name="l00575"></a>00575         <span class="keywordflow">for</span>(<a class="code" href="config_8h.html#a945d766905ae60477daf7c8846d80f9b">uint32</a> i=0; i &lt; siz; ++i) {
<a name="l00576"></a>00576                 Key a;
<a name="l00577"></a>00577                 ar &gt;&gt; a;
<a name="l00578"></a>00578                 ar &gt;&gt; ob[a];
<a name="l00579"></a>00579         }
<a name="l00580"></a>00580         <span class="keywordflow">return</span> ar;
<a name="l00581"></a>00581 }
<a name="l00582"></a>00582 
<a name="l00587"></a>00587 <span class="keyword">template</span>&lt;<span class="keyword">class</span> x, <span class="keyword">class</span> y&gt;
<a name="l00588"></a><a class="code" href="classost_1_1_engine.html#a008b43382bc3749fa59fe01e7ca70bd6">00588</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &lt;&lt;( Engine&amp; ar, std::pair&lt;x,y&gt; &amp;ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00589"></a>00589 {
<a name="l00590"></a>00590         ar &lt;&lt; ob.first &lt;&lt; ob.second;
<a name="l00591"></a>00591         <span class="keywordflow">return</span> ar;
<a name="l00592"></a>00592 }
<a name="l00593"></a>00593 
<a name="l00598"></a>00598 <span class="keyword">template</span>&lt;<span class="keyword">class</span> x, <span class="keyword">class</span> y&gt;
<a name="l00599"></a><a class="code" href="classost_1_1_engine.html#a4bc5bedeb02502c5d80036f3002075a9">00599</a> <a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; operator &gt;&gt;(<a class="code" href="classost_1_1_engine.html" title="Engine.">Engine</a>&amp; ar, std::pair&lt;x, y&gt; &amp;ob) <a class="code" href="config_8h.html#a9c5a7b689682c471df78bc5892d4ea11">THROWS</a> (<a class="code" href="classost_1_1_persist_exception.html">PersistException</a>)
<a name="l00600"></a>00600 {
<a name="l00601"></a>00601         ar &gt;&gt; ob.first &gt;&gt; ob.second;
<a name="l00602"></a>00602         <span class="keywordflow">return</span> ar;
<a name="l00603"></a>00603 }
<a name="l00604"></a>00604 
<a name="l00605"></a>00605 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00606"></a>00606 <span class="preprocessor"></span>}
<a name="l00607"></a>00607 <span class="preprocessor">#endif</span>
<a name="l00608"></a>00608 <span class="preprocessor"></span>
<a name="l00609"></a>00609 <span class="preprocessor">#endif</span>
<a name="l00610"></a>00610 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>