1 /*------------------------------------------------------------------------------
 2 Name:      UnSubscribeQos.cpp
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 
 7 /**
 8  * This class encapsulates the QoS of an unSubcribe() request. 
 9  * <p />
10  * A full specified <b>unSubcribe</b> qos could look like this:<br />
11  * <pre>
12  *&lt;qos>
13  *&lt;/qos>
14  * </pre>
15  * <p />
16  * see xmlBlaster/src/dtd/XmlQoS.xml
17  * @see org.xmlBlaster.util.qos.QueryQosData
18  * @see org.xmlBlaster.util.qos.QueryQosSaxFactory
19  * @see <a href="http://www.xmlblaster.org/xmlBlaster/doc/requirements/interface.unSubscribe.html">unSubscribe interface</a>
20  */
21 
22 #include <client/qos/UnSubscribeQos.h>
23 #include <util/qos/QueryQosData.h>
24 #include <util/Global.h>
25 
26 using namespace std;
27 using namespace org::xmlBlaster::util;
28 using namespace org::xmlBlaster::util::qos;
29 
30 namespace org { namespace xmlBlaster { namespace client { namespace qos {
31 
32 /**
33  * Constructor for default qos (quality of service).
34  */
35 UnSubscribeQos::UnSubscribeQos(Global& global)
36    : ME("UnSubscribeQos"), global_(global), data_(QueryQosData(global))
37 {
38 }
39 
40 
41 UnSubscribeQos::UnSubscribeQos(Global& global, const QueryQosData& data)
42    : ME("UnSubscribeQos"), global_(global), data_(data)
43 {
44 }
45 
46 UnSubscribeQos::UnSubscribeQos(const UnSubscribeQos& qos)
47    : ME(qos.ME), global_(qos.global_), data_(qos.data_)
48 {
49 }
50 UnSubscribeQos& UnSubscribeQos::operator =(const UnSubscribeQos& qos)
51 {
52    data_ = qos.data_;
53    return *this;
54 }
55 
56 string UnSubscribeQos::toXml() const
57 {
58    return data_.toXml();
59 }
60 
61 const QueryQosData& UnSubscribeQos::getData() const
62 {
63    return data_;
64 }
65 
66 }}}}


syntax highlighted by Code2HTML, v. 0.9.1