#include <Colleague.hpp>
Public Member Functions | |
| Colleague (MediatorPtr) throw ( NullPointerException ) | |
| Default constructor requires a Mediator. | |
| Colleague (ColleagueCref) | |
| Copy constructor copies the mediator reference. | |
| virtual | ~Colleague (void) |
| Virtual destructor. | |
| ColleagueRef | operator= (ColleagueCref) |
| Assignment operator. | |
| bool | operator== (ColleagueCref) const |
| Equality operator. | |
| virtual void | getEventsGenerated (EventIdentifiersRef)=0 |
| Implementation defined to return the identifiers of the events that this Colleague generates. | |
| virtual void | getInterestedEvents (EventIdentifiersRef)=0 |
| Implementation defined to return the identifiers of the events that this Colleague is interested in. | |
| virtual void | action (Event< Identifier > *)=0 |
| Called by the mediator when another Colleague has generated an event that this colleague instance is interested in. | |
Protected Member Functions | |
| Colleague (void) throw ( Assertion ) | |
| Default constructor not allowed. | |
| virtual void | invokeMediator (Event< Identifier > *) throw ( NullPointerException ) |
| Called by the Colleague implementation to have the Mediator::action called with the event type. | |
| corelinux::Colleague::Colleague | ( | MediatorPtr | aMediator | ) | throw ( NullPointerException ) |
Default constructor requires a Mediator.
| Mediator | pointer |
| NullPointerException | if MediatorPtr is NULLPTR |
| corelinux::Colleague::Colleague | ( | ColleagueCref | aColleague | ) |
| virtual void corelinux::Colleague::getEventsGenerated | ( | EventIdentifiersRef | ) | [pure virtual] |
Implementation defined to return the identifiers of the events that this Colleague generates.
| EventIdentifiers | vector reference |
| virtual void corelinux::Colleague::getInterestedEvents | ( | EventIdentifiersRef | ) | [pure virtual] |
Implementation defined to return the identifiers of the events that this Colleague is interested in.
| EventIdentifiers | vector reference |
| virtual void corelinux::Colleague::action | ( | Event< Identifier > * | ) | [pure virtual] |
| void corelinux::Colleague::invokeMediator | ( | Event< Identifier > * | anEvent | ) | throw ( NullPointerException ) [protected, virtual] |
Called by the Colleague implementation to have the Mediator::action called with the event type.
| Event | pointer to event |
| NullPointerException | if EventPtr is NULLPTR |
References corelinux::Mediator::action().