Sophie

Sophie

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

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++: EncoderBase.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>EncoderBase.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_ENCODERBASE_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define ATLAS_ENCODERBASE_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;Atlas/Bridge.h&gt;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keyword">namespace </span>Atlas {
<a name="l00011"></a>00011 
<a name="l00028"></a><a class="code" href="class_atlas_1_1_encoder_base.html">00028</a> <span class="keyword">class </span><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> { <span class="comment">// : public Atlas::Bridge {</span>
<a name="l00029"></a>00029 <span class="keyword">public</span>:
<a name="l00030"></a>00030 
<a name="l00032"></a><a class="code" href="class_atlas_1_1_encoder_base.html#ea32c2f7158237d283f6513b2a31c736">00032</a>     <a class="code" href="class_atlas_1_1_encoder_base.html#ea32c2f7158237d283f6513b2a31c736" title="You will need to implement this in subclasses.">EncoderBase</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#88aa918c922b5ffaf114c266445c5f9a" title="The bridge that requests are forwarded to.">m_b</a>(b) { }
<a name="l00033"></a>00033 
<a name="l00034"></a>00034     ~<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="l00035"></a>00035     
<a name="l00036"></a>00036     <span class="keywordtype">void</span> streamBegin() { <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#9823fb38a7411ede964a953edc9c5603" title="Begin an Atlas stream.">streamBegin</a>(); }
<a name="l00037"></a>00037     <span class="keywordtype">void</span> streamMessage() { <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="l00038"></a>00038     <span class="keywordtype">void</span> streamEnd() { <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#78e2440ce7bbcec8a382f47b71c0a1c7" title="Ends the Atlas stream.">streamEnd</a>(); }
<a name="l00039"></a>00039     
<a name="l00040"></a>00040     <span class="keywordtype">void</span> mapMapItem(<span class="keyword">const</span> std::string&amp; name)
<a name="l00041"></a>00041     { <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#948e2db78952c71cd71caada16207258" title="Starts a map object to the currently streamed map.">mapMapItem</a>(name); }
<a name="l00042"></a>00042     <span class="keywordtype">void</span> mapListItem(<span class="keyword">const</span> std::string&amp; name)
<a name="l00043"></a>00043     { <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#c09685b3883f892e33d9ff627b9ea0e3" title="Starts a list object to the currently streamed map.">mapListItem</a>(name); }
<a name="l00044"></a>00044     <span class="keywordtype">void</span> mapIntItem(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">long</span> i)
<a name="l00045"></a>00045     { <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#90d8aa77ab88b6773a37e9d5a664beb4" title="Adds an integer to the currently streames map.">mapIntItem</a>(name, i); }
<a name="l00046"></a>00046     <span class="keywordtype">void</span> mapFloatItem(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span> d)
<a name="l00047"></a>00047     { <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#642d98aeb82886b7101a76c041764613" title="Adds a float to the currently streamed map.">mapFloatItem</a>(name, d); }
<a name="l00048"></a>00048     <span class="keywordtype">void</span> mapStringItem(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string&amp; s)
<a name="l00049"></a>00049     { <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#4b73868d34b31811ef34b1234711feb6" title="Adds a string to the currently streamed map.">mapStringItem</a>(name, s); }
<a name="l00050"></a>00050     <span class="keywordtype">void</span> mapEnd()
<a name="l00051"></a>00051     { <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="l00052"></a>00052     
<a name="l00053"></a>00053     <span class="keywordtype">void</span> listMapItem() { <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#52521f434577cd0a046acc67f8047f4a" title="Starts a map object in the currently streamed list.">listMapItem</a>(); }
<a name="l00054"></a>00054     <span class="keywordtype">void</span> listListItem() { <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#3de836e82b00fae448b5e9a9835b5bc8" title="Starts a list object in the currently streamed list.">listListItem</a>(); }
<a name="l00055"></a>00055     <span class="keywordtype">void</span> listIntItem(<span class="keywordtype">long</span> i) { <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#5d87d79f312b9ba669d385737a29fb9d" title="Adds an integer to the currently streames list.">listIntItem</a>(i); }
<a name="l00056"></a>00056     <span class="keywordtype">void</span> listFloatItem(<span class="keywordtype">double</span> d) { <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#ab8864fecdfc53b060982a1c24e974b1" title="Adds a float to the currently streamed list.">listFloatItem</a>(d); }
<a name="l00057"></a>00057     <span class="keywordtype">void</span> listStringItem(<span class="keyword">const</span> std::string&amp; s) { <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#1b72e453ab8b1d5b48dfcd5ae061a235" title="Adds a string to the currently streamed list.">listStringItem</a>(s); }
<a name="l00058"></a>00058     <span class="keywordtype">void</span> listEnd() { <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#266970241439a2e9cd761040aa77726d" title="Ends the currently streamed list.">listEnd</a>(); }
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="keyword">protected</span>:
<a name="l00062"></a><a class="code" href="class_atlas_1_1_encoder_base.html#88aa918c922b5ffaf114c266445c5f9a">00062</a>     <a class="code" href="class_atlas_1_1_bridge.html" title="Atlas stream bridge.">Atlas::Bridge</a> &amp; <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="l00063"></a>00063 };
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 } <span class="comment">// namespace Atlas </span>
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="preprocessor">#endif // ATLAS_ENCODERBASE_H</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>