00001 #ifndef PROTON_CODEC_AMQP_TYPES_HPP 00002 #define PROTON_CODEC_AMQP_TYPES_HPP 00003 00004 /* 00005 * 00006 * Licensed to the Apache Software Foundation (ASF) under one 00007 * or more contributor license agreements. See the NOTICE file 00008 * distributed with this work for additional information 00009 * regarding copyright ownership. The ASF licenses this file 00010 * to you under the Apache License, Version 2.0 (the 00011 * "License"); you may not use this file except in compliance 00012 * with the License. You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, 00017 * software distributed under the License is distributed on an 00018 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00019 * KIND, either express or implied. See the License for the 00020 * specific language governing permissions and limitations 00021 * under the License. 00022 * 00023 */ 00024 00027 00028 namespace proton { 00029 namespace codec { 00030 00042 00043 // XXX Consider prefixing these with amqp_ and dropping _type, now 00044 // that they're in the codec namespace 00045 00047 typedef bool boolean_type; 00048 00050 typedef uint8_t ubyte_type; 00051 00053 typedef int8_t byte_type; 00054 00056 typedef uint16_t ushort_type; 00057 00059 typedef int16_t short_type; 00060 00062 typedef uint32_t uint_type; 00063 00065 typedef int32_t int_type; 00066 00068 typedef uint64_t ulong_type; 00069 00071 typedef int64_t long_type; 00072 00074 typedef wchar_t char_type; 00075 00077 typedef float float_type; 00078 00080 typedef double double_type; 00081 00083 typedef std::string string_type; 00084 00086 typedef proton::symbol symbol_type; 00087 00089 typedef proton::binary binary_type; 00090 00092 typedef proton::timestamp timestamp_type; 00093 00095 typedef proton::uuid uuid_type; 00096 00098 typedef proton::decimal32 decimal32_type; 00099 00101 typedef proton::decimal64 decimal64_type; 00102 00104 typedef proton::decimal128 decimal128_type; 00105 00106 } // codec 00107 } // proton 00108 00110 00111 #endif // PROTON_CODEC_AMQP_TYPES_HPP