Qpid Proton C++  0.17.0
amqp_types.hpp
1 #ifndef PROTON_CODEC_AMQP_TYPES_HPP
2 #define PROTON_CODEC_AMQP_TYPES_HPP
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
27 
28 namespace proton {
29 namespace codec {
30 
42 
43 // XXX Consider prefixing these with amqp_ and dropping _type, now
44 // that they're in the codec namespace
45 
47 typedef bool boolean_type;
48 
50 typedef uint8_t ubyte_type;
51 
53 typedef int8_t byte_type;
54 
56 typedef uint16_t ushort_type;
57 
59 typedef int16_t short_type;
60 
62 typedef uint32_t uint_type;
63 
65 typedef int32_t int_type;
66 
68 typedef uint64_t ulong_type;
69 
71 typedef int64_t long_type;
72 
74 typedef wchar_t char_type;
75 
77 typedef float float_type;
78 
80 typedef double double_type;
81 
83 typedef std::string string_type;
84 
86 typedef proton::symbol symbol_type;
87 
89 typedef proton::binary binary_type;
90 
92 typedef proton::timestamp timestamp_type;
93 
95 typedef proton::uuid uuid_type;
96 
98 typedef proton::decimal32 decimal32_type;
99 
101 typedef proton::decimal64 decimal64_type;
102 
104 typedef proton::decimal128 decimal128_type;
105 
106 } // codec
107 } // proton
108 
110 
111 #endif // PROTON_CODEC_AMQP_TYPES_HPP
A 16-byte universally unique identifier.
Definition: uuid.hpp:34
64-bit decimal floating point.
Definition: decimal.hpp:49
A std::string that represents the AMQP symbol type.
Definition: symbol.hpp:32
Arbitrary binary data.
Definition: binary.hpp:37
128-bit decimal floating point.
Definition: decimal.hpp:52
32-bit decimal floating point.
Definition: decimal.hpp:46
A 64-bit timestamp in milliseconds since the Unix epoch.
Definition: timestamp.hpp:32
The main Proton namespace.
Definition: annotation_key.hpp:30