1 /*------------------------------------------------------------------------------
 2 Name:      EraseQos.cpp
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 
 7 
 8 /**
 9  * This class encapsulates the QoS of an erase() request. 
10  * <p />
11  * A full specified <b>erase</b> qos could look like this:<br />
12  * <pre>
13  *&lt;qos>
14  *   &lt;!-- The subscribers shall not be notified when this message is destroyed -->
15  *   &lt;notify>false&lt;/notify> <!-- currently not implemented -->
16  *&lt;/qos>
17  * </pre>
18  * <p />
19  * see xmlBlaster/src/dtd/XmlQoS.xml
20  * @see org.xmlBlaster.util.qos.QueryQosData
21  * @see org.xmlBlaster.util.qos.QueryQosSaxFactory
22  * @see <a href="http://www.xmlblaster.org/xmlBlaster/doc/requirements/interface.erase.html">erase interface</a>
23  */
24 
25 
26 #include <client/qos/EraseQos.h>
27 #include <util/Global.h>
28 
29 using namespace std;
30 using namespace org::xmlBlaster::util;
31 using namespace org::xmlBlaster::util::qos;
32 
33 namespace org { namespace xmlBlaster { namespace client { namespace qos {
34 
35 EraseQos::EraseQos(Global& global) : UnSubscribeQos(global)
36 {
37    ME = "EraseQos";
38 }
39 
40 EraseQos::EraseQos(Global& global, const QueryQosData& data)
41    : UnSubscribeQos(global, data)
42 {
43    ME = "EraseQos";
44 }
45 
46 EraseQos::EraseQos(const EraseQos& qos) : UnSubscribeQos(qos)
47 {
48 }
49 
50 EraseQos& EraseQos::operator =(const EraseQos& qos)
51 {
52    data_ = qos.data_;
53    return *this;
54 }
55 
56 void EraseQos::setForceDestroy(bool forceDestroy)
57 {
58    data_.setForceDestroy(forceDestroy);
59 }
60 
61 void EraseQos::setHistoryQos(HistoryQos historyQos)
62 {
63    data_.setHistoryQos(historyQos);
64 }
65 
66 /*
67  * NOT IMPLEMENTED
68  * @param notify true - notify subscribers that message is erased (default is true)
69 void EraseQos::setWantNotify(bool notify) 
70 {
71    data_.setWantNotify(notify);
72 }
73 */
74 
75 }}}} // namespace


syntax highlighted by Code2HTML, v. 0.9.1