1 /*------------------------------------------------------------------------------
  2 Name:      GetReturnQos.cpp
  3 Project:   xmlBlaster.org
  4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
  5 ------------------------------------------------------------------------------*/
  6 
  7 # include <client/qos/GetReturnQos.h>
  8 # include <util/Timestamp.h>
  9 # include <util/Global.h>
 10 
 11 using namespace org::xmlBlaster::util;
 12 using namespace org::xmlBlaster::util::qos;
 13 using namespace org::xmlBlaster::util::cluster;
 14 
 15 using namespace std;
 16 namespace org { namespace xmlBlaster { namespace client { namespace qos {
 17 
 18 GetReturnQos::GetReturnQos(Global& global, const MsgQosData& data)
 19    : ME("GetReturnQos"), global_(global), log_(global.getLog("org.xmlBlaster.client")), data_(data)
 20 {
 21 }
 22 
 23 GetReturnQos::GetReturnQos(const GetReturnQos& data)
 24    : ME(data.ME), global_(data.global_), log_(data.log_), data_(data.data_)
 25 {
 26 }
 27 
 28 GetReturnQos& GetReturnQos::operator=(const GetReturnQos&)
 29 {
 30    return *this;
 31 }
 32 
 33 bool GetReturnQos::isVolatile() const
 34 {
 35    return data_.isVolatile();
 36 }
 37 
 38 bool GetReturnQos::isPersistent() const
 39 {
 40    return data_.isPersistent();
 41 }
 42 
 43 bool GetReturnQos::isReadonly() const
 44 {
 45    return data_.isReadonly();
 46 }
 47 
 48 SessionNameRef GetReturnQos::getSender()
 49 {
 50    return data_.getSender();
 51 }
 52 
 53 PriorityEnum GetReturnQos::getPriority() const
 54 {
 55    return data_.getPriority();
 56 }
 57 
 58 long GetReturnQos::getRemainingLifeStatic() const
 59 {
 60    return data_.getRemainingLifeStatic();
 61 }
 62 
 63 string GetReturnQos::toXml(const string& extraOffset, bool clearText)
 64 {
 65    return data_.toXml(clearText, extraOffset);
 66 }
 67 
 68 string GetReturnQos::getState() const
 69 {
 70    return data_.getState();
 71 }
 72 
 73 bool GetReturnQos::isOk() const
 74 {
 75    return data_.isOk();
 76 }
 77 
 78 bool GetReturnQos::isErased() const
 79 {
 80    return data_.isErased();
 81 }
 82 
 83 bool GetReturnQos::isTimeout() const
 84 {
 85    return data_.isTimeout();
 86 }
 87 
 88 Timestamp GetReturnQos::getRcvTimestamp() const
 89 {
 90    return data_.getRcvTimestamp();
 91 }
 92 
 93 RouteVector GetReturnQos::getRouteNodes()
 94 {
 95    return data_.getRouteNodes();
 96 }
 97 
 98 string GetReturnQos::getRcvTime() const
 99 {
100    return TimestampFactory::toXml(data_.getRcvTimestamp());
101 }
102 
103 const QosData::ClientPropertyMap& GetReturnQos::getClientProperties() const
104 {
105    return data_.getClientProperties();
106 }
107 
108 }}}}


syntax highlighted by Code2HTML, v. 0.9.1