Public Member Functions | ||||
HistoryQos (org::xmlBlaster::util::Global &global, long numOfEntries=-1) | ||||
| ||||
HistoryQos (const HistoryQos &qos) | ||||
HistoryQos & | operator= (const HistoryQos &qos) | |||
void | setNumEntries (long numOfEntries) | |||
| ||||
long | getNumEntries () const | |||
Returns the number of history entries. | ||||
void | setNewestFirst (bool newestFirst) | |||
The sorting order in which the history entries are delivered. | ||||
bool | getNewestFirst () const | |||
| ||||
std::string | toXml (const std::string &extraOffset="") const | |||
Dump state of this object into a XML ASCII std::string. |
Definition at line 41 of file HistoryQos.h.
org::xmlBlaster::util::qos::HistoryQos::HistoryQos | ( | org::xmlBlaster::util::Global & | global, | |
long | numOfEntries = -1 | |||
) |
glob | The global handle holding environment and logging objects |
Definition at line 20 of file HistoryQos.cpp.
References org::xmlBlaster::util::qos::DEFAULT_numEntries, org::xmlBlaster::util::Property::getLongProperty(), org::xmlBlaster::util::Global::getProperty(), and setNumEntries().
org::xmlBlaster::util::qos::HistoryQos::HistoryQos | ( | const HistoryQos & | qos | ) |
HistoryQos& org::xmlBlaster::util::qos::HistoryQos::operator= | ( | const HistoryQos & | qos | ) |
void org::xmlBlaster::util::qos::HistoryQos::setNumEntries | ( | long | numOfEntries | ) |
numEntries | The number of history entries |
Definition at line 44 of file HistoryQos.cpp.
Referenced by HistoryQos(), and SubscribeDemo::subscribe().
long org::xmlBlaster::util::qos::HistoryQos::getNumEntries | ( | ) | const |
Returns the number of history entries.
void org::xmlBlaster::util::qos::HistoryQos::setNewestFirst | ( | bool | newestFirst | ) |
The sorting order in which the history entries are delivered.
The higher priority messages are always delivered first. In one priority the newest message is delivered first with 'true', setting 'false' reverts the delivery sequence in this priority.
newestFirst | defaults to true. |
Definition at line 55 of file HistoryQos.cpp.
Referenced by SubscribeDemo::subscribe().
bool org::xmlBlaster::util::qos::HistoryQos::getNewestFirst | ( | ) | const |
std::string org::xmlBlaster::util::qos::HistoryQos::toXml | ( | const std::string & | extraOffset = "" |
) | const |
Dump state of this object into a XML ASCII std::string.
Only none default values are dumped for performance reasons
extraOffset | indenting of tags for nice output |