TAO_CosNotification 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TAO_Notify_EventType Class Reference

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>

Inheritance diagram for TAO_Notify_EventType:
Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_EventType:
Collaboration graph
[legend]

Public Member Functions

 TAO_Notify_EventType ()
 Constructor.
 
 TAO_Notify_EventType (const char *domain_name, const char *type_name)
 
 TAO_Notify_EventType (const CosNotification::EventType &event_type)
 
virtual ~TAO_Notify_EventType ()
 Destructor.
 
u_long hash () const
 hash value
 
TAO_Notify_EventTypeoperator= (const CosNotification::EventType &event_type)
 Assignment from CosNotification::EventType.
 
TAO_Notify_EventTypeoperator= (const TAO_Notify_EventType &event_type)
 Assignment operator.
 
bool operator== (const TAO_Notify_EventType &notify_event_type) const
 == operator
 
bool operator!= (const TAO_Notify_EventType &notify_event_type) const
 != operator
 
CORBA::Boolean is_special () const
 Is this the special event (accept everything).
 
const CosNotification::EventType & native () const
 Get the type underneath us.
 
void dump () const
 Helper to print contents.
 
bool init (const TAO_Notify::NVPList &attrs)
 Initialize from an NVPList, return false on failure.
 
virtual void save_persistent (TAO_Notify::Topology_Saver &saver)
 
- Public Member Functions inherited from TAO_Notify::Topology_Savable
virtual ~Topology_Savable ()
 Destructor.
 
virtual void reconnect ()
 

Static Public Member Functions

static TAO_Notify_EventType special ()
 Return the special event type.
 

Protected Member Functions

void init_i (const char *domain_name, const char *type_name)
 Init this object.
 
void recompute_hash ()
 Recompute the hash value.
 
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.
 
u_long hash_value_
 The hash value computed.
 

Friends

class TAO_Notify_Constraint_Interpreter
 

Detailed Description

This type is used to compare different event types. It is used by the Event Manager as a key to find subscription lists.

Constructor & Destructor Documentation

◆ TAO_Notify_EventType() [1/3]

TAO_Notify_EventType::TAO_Notify_EventType ( )

Constructor.

◆ TAO_Notify_EventType() [2/3]

TAO_Notify_EventType::TAO_Notify_EventType ( const char * domain_name,
const char * type_name )

◆ TAO_Notify_EventType() [3/3]

TAO_Notify_EventType::TAO_Notify_EventType ( const CosNotification::EventType & event_type)

◆ ~TAO_Notify_EventType()

TAO_Notify_EventType::~TAO_Notify_EventType ( )
virtual

Destructor.

Member Function Documentation

◆ domain_is_wildcard()

bool TAO_Notify_EventType::domain_is_wildcard ( const char * domain) const
protected

◆ dump()

void TAO_Notify_EventType::dump ( ) const

Helper to print contents.

◆ hash()

u_long TAO_Notify_EventType::hash ( ) const

hash value

◆ init()

bool TAO_Notify_EventType::init ( const TAO_Notify::NVPList & attrs)

Initialize from an NVPList, return false on failure.

◆ init_i()

void TAO_Notify_EventType::init_i ( const char * domain_name,
const char * type_name )
protected

Init this object.

◆ is_special()

CORBA::Boolean TAO_Notify_EventType::is_special ( ) const

Is this the special event (accept everything).

◆ native()

const CosNotification::EventType & TAO_Notify_EventType::native ( ) const

Get the type underneath us.

◆ operator!=()

bool TAO_Notify_EventType::operator!= ( const TAO_Notify_EventType & notify_event_type) const

!= operator

◆ operator=() [1/2]

TAO_Notify_EventType & TAO_Notify_EventType::operator= ( const CosNotification::EventType & event_type)

Assignment from CosNotification::EventType.

◆ operator=() [2/2]

TAO_Notify_EventType & TAO_Notify_EventType::operator= ( const TAO_Notify_EventType & event_type)

Assignment operator.

◆ operator==()

bool TAO_Notify_EventType::operator== ( const TAO_Notify_EventType & notify_event_type) const

== operator

◆ recompute_hash()

void TAO_Notify_EventType::recompute_hash ( )
protected

Recompute the hash value.

◆ save_persistent()

void TAO_Notify_EventType::save_persistent ( TAO_Notify::Topology_Saver & saver)
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.

◆ special()

TAO_Notify_EventType TAO_Notify_EventType::special ( )
static

Return the special event type.

◆ type_is_wildcard()

bool TAO_Notify_EventType::type_is_wildcard ( const char * type) const
protected

Friends And Related Symbol Documentation

◆ TAO_Notify_Constraint_Interpreter

friend class TAO_Notify_Constraint_Interpreter
friend

Member Data Documentation

◆ event_type_

CosNotification::EventType TAO_Notify_EventType::event_type_
protected

The event_type that we're decorating.

◆ hash_value_

u_long TAO_Notify_EventType::hash_value_
protected

The hash value computed.


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