Sophie

Sophie

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

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++: MEncoder.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>MEncoder.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_MESSAGE_ENCODER_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define ATLAS_MESSAGE_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 
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="keyword">namespace </span>Atlas { <span class="keyword">namespace </span>Message {
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">class </span>Element;
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="keyword">typedef</span> std::map&lt;std::string, Element&gt; MapType;
<a name="l00019"></a>00019 <span class="keyword">typedef</span> std::vector&lt;Element&gt; ListType;
<a name="l00020"></a>00020 
<a name="l00031"></a><a class="code" href="class_atlas_1_1_message_1_1_encoder.html">00031</a> <span class="keyword">class </span><a class="code" href="class_atlas_1_1_message_1_1_encoder.html" title="Encoder that transmits Atlas::Message::Element.">Encoder</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="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034     <span class="keyword">explicit</span> <a class="code" href="class_atlas_1_1_message_1_1_encoder.html" title="Encoder that transmits Atlas::Message::Element.">Encoder</a>(<a class="code" href="class_atlas_1_1_bridge.html" title="Atlas stream bridge.">Atlas::Bridge</a> &amp;);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     ~<a class="code" href="class_atlas_1_1_message_1_1_encoder.html" title="Encoder that transmits Atlas::Message::Element.">Encoder</a>();
<a name="l00037"></a>00037 
<a name="l00039"></a>00039     <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_message_1_1_encoder.html#ddc8ba74ee952ca97c636f2db7c17f63" title="Send a message (must be a map!) in stream state.">streamMessageElement</a>(<span class="keyword">const</span> MapType &amp; obj);
<a name="l00041"></a>00041     <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_message_1_1_encoder.html#8d1984f8e051d82ff2bba28cd2e05a11" title="Send an object as a map item.">mapElementItem</a>(<span class="keyword">const</span> std::string&amp;, <span class="keyword">const</span> <a class="code" href="class_atlas_1_1_message_1_1_element.html" title="Multi-type container.">Element</a>&amp;);
<a name="l00042"></a>00042     <span class="keywordtype">void</span> mapElementMapItem(<span class="keyword">const</span> std::string&amp;, <span class="keyword">const</span> MapType&amp;);
<a name="l00043"></a>00043     <span class="keywordtype">void</span> mapElementListItem(<span class="keyword">const</span> std::string&amp;, <span class="keyword">const</span> ListType&amp;);
<a name="l00045"></a>00045     <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_message_1_1_encoder.html#1fb7fbef7855f24e76751700ee0db863" title="Send an object as a list item.">listElementItem</a>(<span class="keyword">const</span> <a class="code" href="class_atlas_1_1_message_1_1_element.html" title="Multi-type container.">Element</a>&amp;);
<a name="l00046"></a>00046     <span class="keywordtype">void</span> listElementMapItem(<span class="keyword">const</span> MapType&amp;);
<a name="l00047"></a>00047     <span class="keywordtype">void</span> listElementListItem(<span class="keyword">const</span> ListType&amp;);
<a name="l00048"></a>00048 };
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 } } <span class="comment">// namespace Atlas::Message</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <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>