1 /*------------------------------------------------------------------------------
 2 Name:      PublishReturnQos.cpp
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 
 7 #include <client/qos/PublishReturnQos.h>
 8 #include <util/Global.h>
 9 
10 using namespace org::xmlBlaster::util;
11 using namespace org::xmlBlaster::util::qos;
12 using namespace std;
13 
14 namespace org { namespace xmlBlaster { namespace client { namespace qos {
15 
16 PublishReturnQos::PublishReturnQos(Global& global, const StatusQosData& data)
17    : ME("PublishReturnQos"), global_(global), data_(data)
18 {
19 }
20 
21 PublishReturnQos::PublishReturnQos(Global& global)
22    : ME("PublishReturnQos"), global_(global), data_(global)
23 {
24 }
25 
26 PublishReturnQos::PublishReturnQos(const PublishReturnQos& data)
27   : ME(data.ME), global_(data.global_), data_(data.data_)
28 {
29 }
30 
31 PublishReturnQos PublishReturnQos::operator =(const PublishReturnQos& /*data*/)
32 {
33    return *this;
34 }
35 
36 string PublishReturnQos::getState() const
37 {
38    return data_.getState();
39 }
40 
41 void PublishReturnQos::setState(const string& state)
42 {
43    data_.setState(state);
44 }
45 
46 string PublishReturnQos::getStateInfo() const
47 {
48    return data_.getStateInfo();
49 }
50 
51 string PublishReturnQos::getKeyOid() const
52 {
53    return data_.getKeyOid();
54 }
55 
56 void PublishReturnQos::setKeyOid(const string& oid)
57 {
58    data_.setKeyOid(oid);
59 }
60 
61 StatusQosData& PublishReturnQos::getData()
62 {
63    return data_;
64 }
65 
66 Timestamp PublishReturnQos::getRcvTimestamp() const
67 {
68    return data_.getRcvTimestamp();
69 }
70 
71 string PublishReturnQos::toXml(const string& extraOffset) const
72 {
73    return data_.toXml(extraOffset);
74 }
75 
76 }}}} // namespace


syntax highlighted by Code2HTML, v. 0.9.1