Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
00001 #ifndef AMQP_TYPES_H 00002 #define AMQP_TYPES_H 00003 /* 00004 * 00005 * Licensed to the Apache Software Foundation (ASF) under one 00006 * or more contributor license agreements. See the NOTICE file 00007 * distributed with this work for additional information 00008 * regarding copyright ownership. The ASF licenses this file 00009 * to you under the Apache License, Version 2.0 (the 00010 * "License"); you may not use this file except in compliance 00011 * with the License. You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, 00016 * software distributed under the License is distributed on an 00017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00018 * KIND, either express or implied. See the License for the 00019 * specific language governing permissions and limitations 00020 * under the License. 00021 * 00022 */ 00023 00029 #include "qpid/sys/IntegerTypes.h" 00030 00031 namespace qpid { 00032 namespace framing { 00033 00034 typedef uint8_t FrameType; 00035 typedef uint16_t ChannelId; 00036 typedef uint32_t BatchOffset; 00037 typedef uint8_t ClassId; 00038 typedef uint8_t MethodId; 00039 typedef uint16_t ReplyCode; 00040 00041 // Types represented by classes. 00042 class Content; 00043 class FieldTable; 00044 class SequenceNumberSet; 00045 struct Uuid; 00046 00047 // Useful constants 00048 00050 const ChannelId CHANNEL_MAX=(ChannelId(~1))>>1; 00051 const ChannelId CHANNEL_HIGH_BIT= ChannelId(~CHANNEL_MAX); 00052 00053 // Forward declare class types 00054 class FramingContent; 00055 class FieldTable; 00056 class SequenceNumberSet; 00057 class SequenceSet; 00058 struct Uuid; 00059 00060 // Enum types 00061 enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2}; 00062 00063 }} // namespace qpid::framing 00064 #endif