File: a00505_source.html

package info (click to toggle)
qpid-cpp 0.16-6%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 37,232 kB
  • sloc: cpp: 158,939; python: 8,947; sh: 6,701; ruby: 2,080; makefile: 1,838; cs: 1,774; ansic: 1,771; xml: 281; perl: 15; sed: 10
file content (225 lines) | stat: -rw-r--r-- 29,062 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!--
 
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 
-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>qpid/framing/FieldTable.h Source File</title>
    <link href="doxygen.css" rel="stylesheet" type="text/css">
    <link href="tabs.css" rel="stylesheet" type="text/css">
  </head>
  <body bgcolor="#FFFFFF">
  <table border="0" width="90%" align="center">
    <tr>
      <td align="left">
	<a title="Apache Qpid Project Page" href="http://qpid.apache.org">Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET</a>
      </td>

      <td align="right">	
	<a title="Apache Qpid Documentation" href="http://qpid.apache.org/documentation.html">Apache Qpid Documentation</a>
      </td>
    </tr>
  </table>

<!-- Generated by Doxygen 1.7.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">qpid/framing/FieldTable.h</div>  </div>
</div>
<div class="contents">
<a href="a00505.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _FieldTable_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _FieldTable_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/*</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span>
<a name="l00007"></a>00007 <span class="comment"> * or more contributor license agreements.  See the NOTICE file</span>
<a name="l00008"></a>00008 <span class="comment"> * distributed with this work for additional information</span>
<a name="l00009"></a>00009 <span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span>
<a name="l00010"></a>00010 <span class="comment"> * to you under the Apache License, Version 2.0 (the</span>
<a name="l00011"></a>00011 <span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span>
<a name="l00012"></a>00012 <span class="comment"> * with the License.  You may obtain a copy of the License at</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * Unless required by applicable law or agreed to in writing,</span>
<a name="l00017"></a>00017 <span class="comment"> * software distributed under the License is distributed on an</span>
<a name="l00018"></a>00018 <span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span>
<a name="l00019"></a>00019 <span class="comment"> * KIND, either express or implied.  See the License for the</span>
<a name="l00020"></a>00020 <span class="comment"> * specific language governing permissions and limitations</span>
<a name="l00021"></a>00021 <span class="comment"> * under the License.</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="a00493.html" title="Definitions and forward declarations of all types used in AMQP messages.">qpid/framing/amqp_types.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="a00540.html">qpid/sys/Mutex.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;boost/shared_ptr.hpp&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;boost/shared_array.hpp&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;iosfwd&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="a00482.html">qpid/CommonImportExport.h</a>&quot;</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">namespace </span>qpid {
<a name="l00041"></a>00041 <span class="keyword">namespace </span>framing {
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">class </span>Array;
<a name="l00044"></a>00044 <span class="keyword">class </span>FieldValue;
<a name="l00045"></a>00045 <span class="keyword">class </span>Buffer;
<a name="l00046"></a>00046 
<a name="l00053"></a>00053 <span class="keyword">class </span>FieldTable
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055   <span class="keyword">public</span>:
<a name="l00056"></a><a class="code" href="a00123.html#a2f69733cb826157da8aa2834ca1e758e">00056</a>     <span class="keyword">typedef</span> boost::shared_ptr&lt;FieldValue&gt; <a class="code" href="a00123.html#a2f69733cb826157da8aa2834ca1e758e">ValuePtr</a>;
<a name="l00057"></a><a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">00057</a>     <span class="keyword">typedef</span> std::map&lt;std::string, ValuePtr&gt; <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a>;
<a name="l00058"></a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">00058</a>     <span class="keyword">typedef</span> <a class="code" href="a00202.html">ValueMap</a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">::iterator</a> <a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">iterator</a>;
<a name="l00059"></a><a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">00059</a>     <span class="keyword">typedef</span> <a class="code" href="a00202.html">ValueMap</a><a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">::const_iterator</a> <a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">const_iterator</a>;
<a name="l00060"></a><a class="code" href="a00123.html#a10fc54b97d822637870c6eb9d4c0d2c7">00060</a>     <span class="keyword">typedef</span> <a class="code" href="a00202.html">ValueMap</a><a class="code" href="a00123.html#a10fc54b97d822637870c6eb9d4c0d2c7">::const_reference</a> <a class="code" href="a00123.html#a10fc54b97d822637870c6eb9d4c0d2c7">const_reference</a>;
<a name="l00061"></a><a class="code" href="a00123.html#a0c4a679b98ebde3d4c5314f3c42b21b9">00061</a>     <span class="keyword">typedef</span> <a class="code" href="a00202.html">ValueMap</a><a class="code" href="a00123.html#a0c4a679b98ebde3d4c5314f3c42b21b9">::reference</a> <a class="code" href="a00123.html#a0c4a679b98ebde3d4c5314f3c42b21b9">reference</a>;
<a name="l00062"></a><a class="code" href="a00123.html#ac5775b5a0b85d439a5892eb69723e5c9">00062</a>     <span class="keyword">typedef</span> <a class="code" href="a00202.html">ValueMap</a><a class="code" href="a00123.html#ac5775b5a0b85d439a5892eb69723e5c9">::value_type</a> <a class="code" href="a00123.html#ac5775b5a0b85d439a5892eb69723e5c9">value_type</a>;
<a name="l00063"></a>00063 
<a name="l00064"></a>00064     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a82662aa2da3ea4f40f0d40e5c728558f">FieldTable</a>();
<a name="l00065"></a>00065     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a82662aa2da3ea4f40f0d40e5c728558f">FieldTable</a>(<span class="keyword">const</span> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp;);
<a name="l00066"></a>00066     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp; <a class="code" href="a00123.html#ac52ad466cda49a3490c49f86b53409a3">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp;);
<a name="l00067"></a>00067     <span class="comment">// Compiler default destructor fine</span>
<a name="l00068"></a>00068     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="code" href="a00123.html#ac574fcc56c2aeced89f2bf1c5d2357aa">encodedSize</a>() <span class="keyword">const</span>;
<a name="l00069"></a>00069     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ae81cf3f05b604f6e6258bfc0dfff6814">encode</a>(<a class="code" href="a00045.html">Buffer</a>&amp; buffer) <span class="keyword">const</span>;
<a name="l00070"></a>00070     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#a2e1aae38c4f1893687c2a73dee4942a4">decode</a>(<a class="code" href="a00045.html">Buffer</a>&amp; buffer);
<a name="l00071"></a>00071 
<a name="l00072"></a>00072     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">int</span> <a class="code" href="a00123.html#aaf100cff522722ad56b280c647031e2e">count</a>() <span class="keyword">const</span>;
<a name="l00073"></a><a class="code" href="a00123.html#ab8bf1d719562100373f2971113c45486">00073</a>     <a class="code" href="a00482.html#a22b814cc5ef605d90a1295eae41f4ee4">QPID_COMMON_INLINE_EXTERN</a> <span class="keywordtype">size_t</span> <a class="code" href="a00123.html#ab8bf1d719562100373f2971113c45486">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> values.size(); }
<a name="l00074"></a><a class="code" href="a00123.html#a69bc8d165e61524db283991d98d5b137">00074</a>     <a class="code" href="a00482.html#a22b814cc5ef605d90a1295eae41f4ee4">QPID_COMMON_INLINE_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#a69bc8d165e61524db283991d98d5b137">empty</a>() { <span class="keywordflow">return</span> <a class="code" href="a00123.html#ab8bf1d719562100373f2971113c45486">size</a>() == 0; }
<a name="l00075"></a>00075     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> std<a class="code" href="a00345.html" title="STL class.">::string</a>&amp; name, <span class="keyword">const</span> <a class="code" href="a00123.html#a2f69733cb826157da8aa2834ca1e758e">ValuePtr</a>&amp; value);
<a name="l00076"></a>00076     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a2f69733cb826157da8aa2834ca1e758e">ValuePtr</a> <span class="keyword">get</span>(<span class="keyword">const</span> std<a class="code" href="a00345.html" title="STL class.">::string</a>&amp; name) <span class="keyword">const</span>;
<a name="l00077"></a><a class="code" href="a00123.html#ad2e1f165060dafde29b4f1075b63f539">00077</a>     <a class="code" href="a00482.html#a22b814cc5ef605d90a1295eae41f4ee4">QPID_COMMON_INLINE_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#ad2e1f165060dafde29b4f1075b63f539">isSet</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">get</span>(name).<span class="keyword">get</span>() != 0; }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ab54839b4caa292ee04bf56a159f61188">setString</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; value);
<a name="l00080"></a>00080     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#a8917bed86ad77e915b1810fb99741ba5">setInt</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <span class="keywordtype">int</span> value);
<a name="l00081"></a>00081     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ada6dcdb16e732afbd147e9681cb3c765">setInt64</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> int64_t value);
<a name="l00082"></a>00082     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ad4ffa7639ea597f3528ed4689e37740d">setTimestamp</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> uint64_t value);
<a name="l00083"></a>00083     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#acc0811239fc91f6f576525f8bac718e2">setUInt64</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> uint64_t value);
<a name="l00084"></a>00084     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ab6af469f47d72051232436828cf42a43">setTable</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp; value);
<a name="l00085"></a>00085     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#a62744e53e317ec4ee67d5ca4e6d4ed8b">setArray</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <a class="code" href="a00016.html">Array</a>&amp; value);
<a name="l00086"></a>00086     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#a4291722ce7195fff36bf52bfe2c41275">setFloat</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <span class="keywordtype">float</span> value);
<a name="l00087"></a>00087     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#afe944eaa8bbe4435b400bbde7f7c50cc">setDouble</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keyword">const</span> <span class="keywordtype">double</span> value);
<a name="l00088"></a>00088     <span class="comment">//void setDecimal(string&amp; name, xxx&amp; value);</span>
<a name="l00089"></a>00089 
<a name="l00090"></a>00090     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">int</span> <a class="code" href="a00123.html#a14c7c5842dd4756bad6c8211b1350dd9">getAsInt</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name) <span class="keyword">const</span>;
<a name="l00091"></a>00091     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> uint64_t <a class="code" href="a00123.html#af1ad3c70c5624073db4a9b51acc06e00">getAsUInt64</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name) <span class="keyword">const</span>;
<a name="l00092"></a>00092     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> int64_t <a class="code" href="a00123.html#ab23cf7b90b758116625d7ced06bb4a1d">getAsInt64</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name) <span class="keyword">const</span>;
<a name="l00093"></a>00093     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> std<a class="code" href="a00345.html" title="STL class.">::string</a> <a class="code" href="a00123.html#a3e76e2a685173682fc2214972849afd6">getAsString</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name) <span class="keyword">const</span>;
<a name="l00094"></a>00094 
<a name="l00095"></a>00095     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#aa19a30fada351efc1cf3d1c862d2fa28">getTable</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp; value) <span class="keyword">const</span>;
<a name="l00096"></a>00096     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#a3b7d1c100e25edebf93152fb77fbf89c">getArray</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <a class="code" href="a00016.html">Array</a>&amp; value) <span class="keyword">const</span>;
<a name="l00097"></a>00097     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#a07d73d78b4bd661e1050b8c60447ec27">getFloat</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keywordtype">float</span>&amp; value) <span class="keyword">const</span>;
<a name="l00098"></a>00098     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#a591dcc6dcaec3a95cf983520d5991b45">getDouble</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name, <span class="keywordtype">double</span>&amp; value) <span class="keyword">const</span>;
<a name="l00099"></a>00099     <span class="comment">//QPID_COMMON_EXTERN bool getTimestamp(const std::string&amp; name, uint64_t&amp; value) const;</span>
<a name="l00100"></a>00100     <span class="comment">//QPID_COMMON_EXTERN bool getDecimal(string&amp; name, xxx&amp; value);</span>
<a name="l00101"></a>00101     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#aca7061dbb712178aab90a24083468a11">erase</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; name);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 
<a name="l00104"></a>00104     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">bool</span> <a class="code" href="a00123.html#a141302936862c23aab3aa7813899f481">operator==</a>(<span class="keyword">const</span> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp; other) <span class="keyword">const</span>;
<a name="l00105"></a>00105 
<a name="l00106"></a>00106     <span class="comment">// Map-like interface.</span>
<a name="l00107"></a>00107     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">::const_iterator</a> <a class="code" href="a00123.html#af5bad005811cb4013515244a96a52c71">begin</a>() <span class="keyword">const</span>;
<a name="l00108"></a>00108     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">::const_iterator</a> <a class="code" href="a00123.html#a7ff39d621e62039b46d4c20e2d3c7e21">end</a>() <span class="keyword">const</span>;
<a name="l00109"></a>00109     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a43c762c0054ddcb23690c1d82d3fd856">::const_iterator</a> <a class="code" href="a00123.html#ae8b6d641b7344f9c6ed04710eb7366e2">find</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; s) <span class="keyword">const</span>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">::iterator</a> <a class="code" href="a00123.html#af5bad005811cb4013515244a96a52c71">begin</a>();
<a name="l00112"></a>00112     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">::iterator</a> <a class="code" href="a00123.html#a7ff39d621e62039b46d4c20e2d3c7e21">end</a>();
<a name="l00113"></a>00113     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">::iterator</a> <a class="code" href="a00123.html#ae8b6d641b7344f9c6ed04710eb7366e2">find</a>(<span class="keyword">const</span> <a class="code" href="a00345.html" title="STL class.">std::string</a>&amp; s);
<a name="l00114"></a>00114 
<a name="l00115"></a>00115     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> std::pair &lt;ValueMap::iterator, bool&gt; <a class="code" href="a00123.html#ab8c702a456b4051f3f3e928d42f68e04">insert</a>(<span class="keyword">const</span> ValueMap::value_type&amp;);
<a name="l00116"></a>00116     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a><a class="code" href="a00123.html#a4903cc6da9fcd1217a810f737be98d41">::iterator</a> <a class="code" href="a00123.html#ab8c702a456b4051f3f3e928d42f68e04">insert</a>(ValueMap::iterator, <span class="keyword">const</span> ValueMap::value_type&amp;);
<a name="l00117"></a>00117     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keywordtype">void</span> <a class="code" href="a00123.html#ae4f9483a1243120e63d6db94a4fd2626">clear</a>();
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   <span class="keyword">private</span>:
<a name="l00120"></a>00120     <span class="keywordtype">void</span> realDecode() <span class="keyword">const</span>;
<a name="l00121"></a>00121     <span class="keywordtype">void</span> flushRawCache();
<a name="l00122"></a>00122 
<a name="l00123"></a>00123     <span class="keyword">mutable</span> qpid<a class="code" href="a00220.html" title="Mutex lock.">::sys::Mutex</a> lock;
<a name="l00124"></a>00124     <span class="keyword">mutable</span> <a class="code" href="a00123.html#a666baa1140ff94893847071e5b3445b4">ValueMap</a> values;
<a name="l00125"></a>00125     <span class="keyword">mutable</span> boost::shared_array&lt;uint8_t&gt; cachedBytes;
<a name="l00126"></a>00126     <span class="keyword">mutable</span> <a class="code" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> cachedSize; <span class="comment">// if = 0 then non cached size as 0 is not a legal size</span>
<a name="l00127"></a>00127     <span class="keyword">mutable</span> <span class="keywordtype">bool</span> newBytes;
<a name="l00128"></a>00128 
<a name="l00129"></a>00129     <a class="code" href="a00482.html#a0b7cbe1dd21be86348943cd971d33a20">QPID_COMMON_EXTERN</a> <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="a00123.html#a8ae7b6b7d2875865b60f6c8c9d32216a">operator&lt;&lt;</a>(<a class="code" href="a00243.html" title="STL class.">std::ostream</a>&amp; out, <span class="keyword">const</span> <a class="code" href="a00123.html" title="A set of name-value pairs.">FieldTable</a>&amp; body);
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="comment">//class FieldNotFoundException{};</span>
<a name="l00133"></a>00133 <span class="comment">//class UnknownFieldName : public FieldNotFoundException{};</span>
<a name="l00134"></a>00134 <span class="comment">//class IncorrectFieldType : public FieldNotFoundException{};</span>
<a name="l00135"></a>00135 }
<a name="l00136"></a>00136 }
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!--
 
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 
-->

<hr size="1">
<address style="text-align: left;"><small>
Qpid C++ API Reference</small></address>

<address style="text-align: right;">
<small>
Generated on Thu May 10 2012 for Qpid C++ Client API by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.5</small>
</address>
</body>
</html>