diff options
author | Gordon Sim <gsim@apache.org> | 2007-09-11 11:25:27 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-09-11 11:25:27 +0000 |
commit | c922ccae07d060f891848e688f7f1e29dc07c552 (patch) | |
tree | 8363c1678c5efc59769c19c58188ccb9466d8aa4 /cpp/src/qpid/framing/TransferContent.cpp | |
parent | fbda2ac45519f7108fc48f483d76d1487c2b3544 (diff) | |
download | qpid-python-c922ccae07d060f891848e688f7f1e29dc07c552.tar.gz |
Moved old ClientChannel class from using basic to using message for publish & consume.
(Get and qos still use the basic class's defintions, that will be changed next)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@574551 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/TransferContent.cpp')
-rw-r--r-- | cpp/src/qpid/framing/TransferContent.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/TransferContent.cpp b/cpp/src/qpid/framing/TransferContent.cpp index 1faa24ae0c..4c2d06ae42 100644 --- a/cpp/src/qpid/framing/TransferContent.cpp +++ b/cpp/src/qpid/framing/TransferContent.cpp @@ -61,4 +61,35 @@ DeliveryProperties& TransferContent::getDeliveryProperties() return *header.get<DeliveryProperties>(true); } +void TransferContent::populate(const FrameSet& frameset) +{ + header = *frameset.getHeaders(); + frameset.getContent(data); +} + +const MessageProperties& TransferContent::getMessageProperties() const +{ + const MessageProperties* props = header.get<MessageProperties>(); + if (!props) throw NoSuchPropertiesException(); + return *props; +} + +const DeliveryProperties& TransferContent::getDeliveryProperties() const +{ + const DeliveryProperties* props = header.get<DeliveryProperties>(); + if (!props) throw NoSuchPropertiesException(); + return *props; +} + +bool TransferContent::hasMessageProperties() const +{ + return header.get<MessageProperties>(); +} + +bool TransferContent::hasDeliveryProperties() const +{ + return header.get<DeliveryProperties>(); +} + + }} |