org::xmlBlaster::util::qos::MsgQosFactory Class Reference

Inheritance diagram for org::xmlBlaster::util::qos::MsgQosFactory:

Inheritance graph
[legend]
Collaboration diagram for org::xmlBlaster::util::qos::MsgQosFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MsgQosFactory (org::xmlBlaster::util::Global &global)
 Can be used as singleton.
 ~MsgQosFactory ()
MsgQosData readObject (std::string &xmlQos)
 Parses the given xml Qos and returns a MsgQosData holding the data.
void startElement (std::string &name, parser::AttributeMap &attrs)
 Start element, event from SAX parser.
void characters (std::string &ch)
 Characters.
void endElement (std::string &name)
 End element, event from SAX parser.
void sendRemainingLife (bool sendRemainingLife)
 Configure if remaingLife is sent in Qos (redesign approach to work with all QoS attributes.
bool sendRemainingLife ()

Detailed Description

Definition at line 33 of file MsgQosFactory.h.


Constructor & Destructor Documentation

org::xmlBlaster::util::qos::MsgQosFactory::MsgQosFactory ( org::xmlBlaster::util::Global global  ) 

Can be used as singleton.

Definition at line 21 of file MsgQosFactory.cpp.

org::xmlBlaster::util::qos::MsgQosFactory::~MsgQosFactory (  ) 

Definition at line 63 of file MsgQosFactory.cpp.


Member Function Documentation

MsgQosData org::xmlBlaster::util::qos::MsgQosFactory::readObject ( std::string &  xmlQos  ) 

Parses the given xml Qos and returns a MsgQosData holding the data.

Parsing of update() and publish() QoS is supported here.

Parameters:
the XML based ASCII std::string

Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::get(), and org::xmlBlaster::util::queue::SQLiteQueuePlugin::peekWithSamePriority().

void org::xmlBlaster::util::qos::MsgQosFactory::startElement ( std::string &  name,
parser::AttributeMap attrs 
)

Start element, event from SAX parser.

Parameters:
name Tag name
attrs the attributes of the tag

void org::xmlBlaster::util::qos::MsgQosFactory::characters ( std::string &  ch  ) 

Characters.

The text between two tags, in the following example 'Hello': <key>Hello</key>. This method is different from the java version since the c++ parser always starts at the first character, so you don't specify start.

void org::xmlBlaster::util::qos::MsgQosFactory::endElement ( std::string &  name  ) 

End element, event from SAX parser.

Parameters:
name Tag name

void org::xmlBlaster::util::qos::MsgQosFactory::sendRemainingLife ( bool  sendRemainingLife  ) 

Configure if remaingLife is sent in Qos (redesign approach to work with all QoS attributes.

Definition at line 416 of file MsgQosFactory.cpp.

bool org::xmlBlaster::util::qos::MsgQosFactory::sendRemainingLife (  ) 

Definition at line 421 of file MsgQosFactory.cpp.


The documentation for this class was generated from the following files: