client/qos/PublishReturnQos.cpp

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      PublishReturnQos.cpp
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 ------------------------------------------------------------------------------*/
00006 
00007 #include <client/qos/PublishReturnQos.h>
00008 #include <util/Global.h>
00009 
00010 using namespace org::xmlBlaster::util;
00011 using namespace org::xmlBlaster::util::qos;
00012 using namespace std;
00013 
00014 namespace org { namespace xmlBlaster { namespace client { namespace qos {
00015 
00016 PublishReturnQos::PublishReturnQos(Global& global, const StatusQosData& data)
00017    : ME("PublishReturnQos"), global_(global), data_(data)
00018 {
00019 }
00020 
00021 PublishReturnQos::PublishReturnQos(Global& global)
00022    : ME("PublishReturnQos"), global_(global), data_(global)
00023 {
00024 }
00025 
00026 PublishReturnQos::PublishReturnQos(const PublishReturnQos& data)
00027   : ME(data.ME), global_(data.global_), data_(data.data_)
00028 {
00029 }
00030 
00031 PublishReturnQos PublishReturnQos::operator =(const PublishReturnQos& /*data*/)
00032 {
00033    return *this;
00034 }
00035 
00036 string PublishReturnQos::getState() const
00037 {
00038    return data_.getState();
00039 }
00040 
00041 void PublishReturnQos::setState(const string& state)
00042 {
00043    data_.setState(state);
00044 }
00045 
00046 string PublishReturnQos::getStateInfo() const
00047 {
00048    return data_.getStateInfo();
00049 }
00050 
00051 string PublishReturnQos::getKeyOid() const
00052 {
00053    return data_.getKeyOid();
00054 }
00055 
00056 void PublishReturnQos::setKeyOid(const string& oid)
00057 {
00058    data_.setKeyOid(oid);
00059 }
00060 
00061 StatusQosData& PublishReturnQos::getData()
00062 {
00063    return data_;
00064 }
00065 
00066 Timestamp PublishReturnQos::getRcvTimestamp() const
00067 {
00068    return data_.getRcvTimestamp();
00069 }
00070 
00071 string PublishReturnQos::toXml(const string& extraOffset) const
00072 {
00073    return data_.toXml(extraOffset);
00074 }
00075 
00076 }}}} // namespace