/usr/share/cruisecontrol-bin-2.6.1/projects/qpid-trunk/cpp/src/qpid/framing/TransferContent.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 #ifndef _TransferContent_
00022 #define _TransferContent_
00023 
00024 #include "FrameSet.h"
00025 #include "MethodContent.h"
00026 #include "qpid/Exception.h"
00027 #include "qpid/framing/MessageProperties.h"
00028 #include "qpid/framing/DeliveryProperties.h"
00029 
00030 namespace qpid {
00031 namespace framing {
00032 
00033 class TransferContent : public MethodContent
00034 {
00035     AMQHeaderBody header;
00036     std::string data;
00037 public:
00038     TransferContent(const std::string& data = std::string(),
00039                     const std::string& routingKey = std::string(),
00040                     const std::string& exchange = std::string());
00041 
00042     AMQHeaderBody getHeader() const;
00043     void setData(const std::string&);
00044     void appendData(const std::string&);
00045     MessageProperties& getMessageProperties();
00046     DeliveryProperties& getDeliveryProperties();
00047 
00048     const std::string& getData() const;
00049     const MessageProperties& getMessageProperties() const;
00050     const DeliveryProperties& getDeliveryProperties() const;
00051     bool hasMessageProperties() const;
00052     bool hasDeliveryProperties() const;
00053 
00054     void populate(const FrameSet& frameset);
00055 };
00056 
00057 }}
00058 #endif  

Generated on Thu Apr 10 11:08:18 2008 for Qpid by  doxygen 1.4.7