TAO_CosNotification
2.2.5
|
This type is used to compare different event types. It is used by the Event Manager as a key to find subscription lists. More...
#include <EventType.h>
Public Member Functions | |
TAO_Notify_EventType (void) | |
Constructor. More... | |
TAO_Notify_EventType (const char *domain_name, const char *type_name) | |
TAO_Notify_EventType (const CosNotification::EventType &event_type) | |
virtual | ~TAO_Notify_EventType () |
Destructor. More... | |
u_long | hash (void) const |
hash value More... | |
TAO_Notify_EventType & | operator= (const CosNotification::EventType &event_type) |
Assignment from CosNotification::EventType. More... | |
TAO_Notify_EventType & | operator= (const TAO_Notify_EventType &event_type) |
Assignment operator. More... | |
bool | operator== (const TAO_Notify_EventType ¬ify_event_type) const |
== operator More... | |
bool | operator!= (const TAO_Notify_EventType ¬ify_event_type) const |
!= operator More... | |
CORBA::Boolean | is_special (void) const |
Is this the special event (accept everything). More... | |
const CosNotification::EventType & | native (void) const |
Get the type underneath us. More... | |
void | dump (void) const |
Helper to print contents. More... | |
bool | init (const TAO_Notify::NVPList &attrs) |
Initialize from an NVPList, return false on failure. More... | |
virtual void | save_persistent (TAO_Notify::Topology_Saver &saver) |
Public Member Functions inherited from TAO_Notify::Topology_Savable | |
virtual | ~Topology_Savable (void) |
Destructor. More... | |
virtual void | reconnect (void) |
Static Public Member Functions | |
static TAO_Notify_EventType | special (void) |
Return the special event type. More... | |
Protected Member Functions | |
void | init_i (const char *domain_name, const char *type_name) |
Init this object. More... | |
void | recompute_hash (void) |
Recompute the hash value. More... | |
bool | domain_is_wildcard (const char *domain) const |
bool | type_is_wildcard (const char *type) const |
Protected Attributes | |
CosNotification::EventType | event_type_ |
The event_type that we're decorating. More... | |
u_long | hash_value_ |
The hash value computed. More... | |
Friends | |
class | TAO_Notify_Constraint_Interpreter |
This type is used to compare different event types. It is used by the Event Manager as a key to find subscription lists.
TAO_Notify_EventType::TAO_Notify_EventType | ( | void | ) |
Constructor.
TAO_Notify_EventType::TAO_Notify_EventType | ( | const char * | domain_name, |
const char * | type_name | ||
) |
TAO_Notify_EventType::TAO_Notify_EventType | ( | const CosNotification::EventType & | event_type | ) |
|
virtual |
Destructor.
|
protected |
void TAO_Notify_EventType::dump | ( | void | ) | const |
Helper to print contents.
u_long TAO_Notify_EventType::hash | ( | void | ) | const |
hash value
bool TAO_Notify_EventType::init | ( | const TAO_Notify::NVPList & | attrs | ) |
Initialize from an NVPList, return false on failure.
|
protected |
Init this object.
CORBA::Boolean TAO_Notify_EventType::is_special | ( | void | ) | const |
Is this the special event (accept everything).
const CosNotification::EventType & TAO_Notify_EventType::native | ( | void | ) | const |
Get the type underneath us.
bool TAO_Notify_EventType::operator!= | ( | const TAO_Notify_EventType & | notify_event_type | ) | const |
!= operator
TAO_Notify_EventType & TAO_Notify_EventType::operator= | ( | const CosNotification::EventType & | event_type | ) |
Assignment from CosNotification::EventType.
TAO_Notify_EventType & TAO_Notify_EventType::operator= | ( | const TAO_Notify_EventType & | event_type | ) |
Assignment operator.
bool TAO_Notify_EventType::operator== | ( | const TAO_Notify_EventType & | notify_event_type | ) | const |
== operator
|
protected |
Recompute the hash value.
|
virtual |
Save our state to a Topology_Saver.
Use the methods of a Topology_Saver to store all information we want persisted. This function is called by our parent, which gives us a saver to use. In turn, we must call this function on all of our children. The implementation should look like: bool change = this->self_changed_; this->self_changed_ = false; this->children_changed_ = false; if (is_persistent ()) { bool want_all_children = saver.begin_object( this->id(), type, attrs, change); for all children { if (want_all_children || child.is_changed()) { child.save_persistent(saver); } } for all deleted children { saver.delete_child(child_type, child_id); } saver.end_object(this->id(), type); )
Implements TAO_Notify::Topology_Savable.
|
static |
Return the special event type.
|
protected |
|
friend |
|
protected |
The event_type that we're decorating.
|
protected |
The hash value computed.