/home/aconway/svn/qpid/cpp/src/qpid/client/MethodBodyInstances.h

00001 /*
00002  *
00003  * Licensed to the Apache Software Foundation (ASF) under one
00004  * or more contributor license agreements.  See the NOTICE file
00005  * distributed with this work for additional information
00006  * regarding copyright ownership.  The ASF licenses this file
00007  * to you under the Apache License, Version 2.0 (the
00008  * "License"); you may not use this file except in compliance
00009  * with the License.  You may obtain a copy of the License at
00010  * 
00011  *   http://www.apache.org/licenses/LICENSE-2.0
00012  * 
00013  * Unless required by applicable law or agreed to in writing,
00014  * software distributed under the License is distributed on an
00015  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00016  * KIND, either express or implied.  See the License for the
00017  * specific language governing permissions and limitations
00018  * under the License.
00019  *
00020  */
00021 #include "qpid/framing/amqp_framing.h"
00022 
00023 #ifndef _MethodBodyInstances_h_
00024 #define _MethodBodyInstances_h_
00025 
00026 namespace qpid {
00027 namespace client {
00028 
00033 class MethodBodyInstances
00034 {
00035 private:
00036         qpid::framing::ProtocolVersion  version;
00037 public:
00038         const qpid::framing::BasicCancelOkBody          basic_cancel_ok;
00039         const qpid::framing::BasicConsumeOkBody         basic_consume_ok;
00040         const qpid::framing::BasicDeliverBody           basic_deliver;
00041         const qpid::framing::BasicGetEmptyBody          basic_get_empty;
00042         const qpid::framing::BasicGetOkBody             basic_get_ok;
00043         const qpid::framing::BasicQosOkBody             basic_qos_ok;
00044         const qpid::framing::BasicReturnBody            basic_return;
00045         const qpid::framing::ChannelCloseBody           channel_close;
00046         const qpid::framing::ChannelCloseOkBody         channel_close_ok;
00047         const qpid::framing::ChannelFlowBody            channel_flow;
00048         const qpid::framing::ChannelOpenOkBody          channel_open_ok;
00049         const qpid::framing::ConnectionCloseBody        connection_close;
00050         const qpid::framing::ConnectionCloseOkBody      connection_close_ok;
00051         const qpid::framing::ConnectionOpenOkBody       connection_open_ok;
00052         const qpid::framing::ConnectionRedirectBody     connection_redirect;
00053         const qpid::framing::ConnectionStartBody        connection_start;
00054         const qpid::framing::ConnectionTuneBody         connection_tune;
00055         const qpid::framing::ExchangeDeclareOkBody      exchange_declare_ok;      
00056         const qpid::framing::ExchangeDeleteOkBody       exchange_delete_ok;
00057         const qpid::framing::QueueDeclareOkBody         queue_declare_ok;
00058         const qpid::framing::QueueDeleteOkBody          queue_delete_ok;
00059         const qpid::framing::QueueBindOkBody            queue_bind_ok;
00060         const qpid::framing::TxCommitOkBody             tx_commit_ok;
00061         const qpid::framing::TxRollbackOkBody           tx_rollback_ok;
00062         const qpid::framing::TxSelectOkBody             tx_select_ok;
00063 
00064     MethodBodyInstances(uint8_t major, uint8_t minor) :
00065         version(major, minor),
00066         basic_cancel_ok(version),
00067         basic_consume_ok(version),
00068         basic_deliver(version),
00069         basic_get_empty(version),
00070         basic_get_ok(version),
00071         basic_qos_ok(version),
00072         basic_return(version),
00073         channel_close(version),
00074         channel_close_ok(version),
00075         channel_flow(version),
00076         channel_open_ok(version),
00077         connection_close(version),
00078         connection_close_ok(version),
00079         connection_open_ok(version),
00080         connection_redirect(version),
00081         connection_start(version),
00082         connection_tune(version),
00083         exchange_declare_ok(version),      
00084         exchange_delete_ok(version),
00085         queue_declare_ok(version),
00086         queue_delete_ok(version),
00087         queue_bind_ok(version),
00088         tx_commit_ok(version),
00089         tx_rollback_ok(version),
00090         tx_select_ok(version)
00091     {}
00092 
00093 };
00094 
00095 static MethodBodyInstances method_bodies(8, 0);
00096 
00097 } // namespace client
00098 } // namespace qpid
00099 
00100 #endif

Generated on Tue Apr 17 14:22:03 2007 for Qpid by  doxygen 1.4.7