Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c200d180bc1063a7706e0da42a546b51 > files > 70

atlascpp-devel-0.6.1-7.fc12.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Atlas-C++: Encoder.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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>Encoder.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This file may be redistributed and modified only under the terms of</span>
<a name="l00002"></a>00002 <span class="comment">// the GNU Lesser General Public License (See COPYING for details).</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2000 Stefanus Du Toit</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef ATLAS_OBJECTS_ENCODER_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define ATLAS_OBJECTS_ENCODER_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;Atlas/EncoderBase.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;Atlas/Objects/Root.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">namespace </span>Atlas { <span class="keyword">namespace </span>Objects {
<a name="l00012"></a>00012 
<a name="l00024"></a><a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html">00024</a> <span class="keyword">class </span><a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html" title="Objects hierarchy encoder.">ObjectsEncoder</a> : <span class="keyword">public</span> Atlas::<a class="code" href="class_atlas_1_1_encoder_base.html" title="Base class forwarding to Atlas::Bridge as skeleton for other encoders.">EncoderBase</a>
<a name="l00025"></a>00025 {
<a name="l00026"></a>00026 <span class="keyword">public</span>:
<a name="l00029"></a><a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html#e28c02b3654f17d4888b1e23eb03bd45">00029</a>     <span class="keyword">explicit</span> <a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html#e28c02b3654f17d4888b1e23eb03bd45" title="The default constructor.">ObjectsEncoder</a>(<a class="code" href="class_atlas_1_1_bridge.html" title="Atlas stream bridge.">Atlas::Bridge</a> &amp; b) : <a class="code" href="class_atlas_1_1_encoder_base.html" title="Base class forwarding to Atlas::Bridge as skeleton for other encoders.">EncoderBase</a>(b) { }
<a name="l00031"></a>00031     <a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html#370bc08db6a2a224e589051a23a18992" title="The default destructor.">~ObjectsEncoder</a>();
<a name="l00032"></a>00032 
<a name="l00035"></a>00035     <span class="keyword">template</span> &lt;<span class="keyword">class</span> ObjectData&gt;
<a name="l00036"></a><a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html#6c3c1917d404a5a793b20f64011a0ccc">00036</a>     <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_objects_1_1_objects_encoder.html#6c3c1917d404a5a793b20f64011a0ccc" title="Send an object to the bridge.">streamObjectsMessage</a>(<span class="keyword">const</span> Atlas::Objects::SmartPtr&lt;ObjectData&gt; &amp; o)
<a name="l00037"></a>00037     {
<a name="l00038"></a>00038         <a class="code" href="class_atlas_1_1_encoder_base.html#88aa918c922b5ffaf114c266445c5f9a" title="The bridge that requests are forwarded to.">m_b</a>.<a class="code" href="class_atlas_1_1_bridge.html#2cc3d759306b4b8e95af66e20e80b191" title="Start a message in an Atlas stream.">streamMessage</a>();
<a name="l00039"></a>00039         o-&gt;sendContents(<a class="code" href="class_atlas_1_1_encoder_base.html#88aa918c922b5ffaf114c266445c5f9a" title="The bridge that requests are forwarded to.">m_b</a>);
<a name="l00040"></a>00040         <a class="code" href="class_atlas_1_1_encoder_base.html#88aa918c922b5ffaf114c266445c5f9a" title="The bridge that requests are forwarded to.">m_b</a>.<a class="code" href="class_atlas_1_1_bridge.html#21dc1620fe2fe13718fc71043fc8bc81" title="Ends the currently streamed map.">mapEnd</a>();
<a name="l00041"></a>00041     }
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 } } <span class="comment">// namespace Atlas::Objects</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="preprocessor">#endif</span>
</pre></div></div>
<HR>
<P>Copyright 2000-2004 the respective authors.</P>
<P>This document can be licensed under the terms of the GNU Free Documentation
License or the GNU General Public License and may be freely distributed under
the terms given by one of these licenses.</P>