Atlas-C++
|
Objects hierarchy dispatcher. More...
#include <Dispatcher.h>
Public Member Functions | |
virtual | ~Dispatcher () |
Default destructor. | |
void | addMethod (int, objectArrivedPtr method) |
Add a new method for Objects class defined by application. | |
![]() | |
ObjectsDecoder (Factories *f=0) | |
Constructor. | |
virtual | ~ObjectsDecoder () |
Default destructor. | |
Factories * | factories () const |
Factories accessor. | |
Protected Member Functions | |
virtual void | unknownObjectArrived (const Root &) |
An unknown object has arrived. | |
virtual void | objectArrived (const Root &) |
An object has arrived for dispatch. | |
virtual void | dispatchObject (const Root &obj) |
call right object*Arrived method | |
virtual void | objectRootArrived (const Root &) |
Override this to get called when a Root object arrives. | |
virtual void | objectRootEntityArrived (const Entity::RootEntity &) |
Override this to get called when a RootEntity object arrives. | |
virtual void | objectAdminEntityArrived (const Entity::AdminEntity &) |
Override this to get called when a AdminEntity object arrives. | |
virtual void | objectAccountArrived (const Entity::Account &) |
Override this to get called when a Account object arrives. | |
virtual void | objectPlayerArrived (const Entity::Player &) |
Override this to get called when a Player object arrives. | |
virtual void | objectAdminArrived (const Entity::Admin &) |
Override this to get called when a Admin object arrives. | |
virtual void | objectGameArrived (const Entity::Game &) |
Override this to get called when a Game object arrives. | |
virtual void | objectGameEntityArrived (const Entity::GameEntity &) |
Override this to get called when a GameEntity object arrives. | |
virtual void | objectRootOperationArrived (const Operation::RootOperation &) |
Override this to get called when a RootOperation object arrives. | |
virtual void | objectActionArrived (const Operation::Action &) |
Override this to get called when a Action object arrives. | |
virtual void | objectCreateArrived (const Operation::Create &) |
Override this to get called when a Create object arrives. | |
virtual void | objectCombineArrived (const Operation::Combine &) |
Override this to get called when a Combine object arrives. | |
virtual void | objectDivideArrived (const Operation::Divide &) |
Override this to get called when a Divide object arrives. | |
virtual void | objectCommunicateArrived (const Operation::Communicate &) |
Override this to get called when a Communicate object arrives. | |
virtual void | objectTalkArrived (const Operation::Talk &) |
Override this to get called when a Talk object arrives. | |
virtual void | objectDeleteArrived (const Operation::Delete &) |
Override this to get called when a Delete object arrives. | |
virtual void | objectSetArrived (const Operation::Set &) |
Override this to get called when a Set object arrives. | |
virtual void | objectAffectArrived (const Operation::Affect &) |
Override this to get called when a Affect object arrives. | |
virtual void | objectMoveArrived (const Operation::Move &) |
Override this to get called when a Move object arrives. | |
virtual void | objectWieldArrived (const Operation::Wield &) |
Override this to get called when a Wield object arrives. | |
virtual void | objectGetArrived (const Operation::Get &) |
Override this to get called when a Get object arrives. | |
virtual void | objectPerceiveArrived (const Operation::Perceive &) |
Override this to get called when a Perceive object arrives. | |
virtual void | objectLookArrived (const Operation::Look &) |
Override this to get called when a Look object arrives. | |
virtual void | objectListenArrived (const Operation::Listen &) |
Override this to get called when a Listen object arrives. | |
virtual void | objectSniffArrived (const Operation::Sniff &) |
Override this to get called when a Sniff object arrives. | |
virtual void | objectTouchArrived (const Operation::Touch &) |
Override this to get called when a Touch object arrives. | |
virtual void | objectLoginArrived (const Operation::Login &) |
Override this to get called when a Login object arrives. | |
virtual void | objectLogoutArrived (const Operation::Logout &) |
Override this to get called when a Logout object arrives. | |
virtual void | objectImaginaryArrived (const Operation::Imaginary &) |
Override this to get called when a Imaginary object arrives. | |
virtual void | objectUseArrived (const Operation::Use &) |
Override this to get called when a Use object arrives. | |
virtual void | objectInfoArrived (const Operation::Info &) |
Override this to get called when a Info object arrives. | |
virtual void | objectPerceptionArrived (const Operation::Perception &) |
Override this to get called when a Perception object arrives. | |
virtual void | objectSightArrived (const Operation::Sight &) |
Override this to get called when a Sight object arrives. | |
virtual void | objectAppearanceArrived (const Operation::Appearance &) |
Override this to get called when a Appearance object arrives. | |
virtual void | objectDisappearanceArrived (const Operation::Disappearance &) |
Override this to get called when a Disappearance object arrives. | |
virtual void | objectSoundArrived (const Operation::Sound &) |
Override this to get called when a Sound object arrives. | |
virtual void | objectSmellArrived (const Operation::Smell &) |
Override this to get called when a Smell object arrives. | |
virtual void | objectFeelArrived (const Operation::Feel &) |
Override this to get called when a Feel object arrives. | |
virtual void | objectErrorArrived (const Operation::Error &) |
Override this to get called when a Error object arrives. | |
virtual void | objectAnonymousArrived (const Entity::Anonymous &) |
Override this to get called when a Anonymous object arrives. | |
virtual void | objectGenericArrived (const Operation::Generic &) |
Override this to get called when a Generic object arrives. | |
![]() | |
virtual void | messageArrived (const Atlas::Message::MapType &) |
Overridden by to retrieve the message from DecoderBase. | |
Protected Attributes | |
methodMap_t | m_methods |
Store extension methods for Objects classes defined by application. | |
![]() | |
Factories * | m_factories |
Additional Inherited Members | |
Our current decoding state. |
Objects hierarchy dispatcher.
This dispatcher can be bound to a codec, will assemble incoming messages, check their type, convert them into the appropriate instance in the Objects hierarchy and call the relevant member functions, which subclasses can conveniently override to pick up the object.
Copyright 2000-2004 the respective authors.
This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.