pcce::InputSubSystem Class Reference

#include <InputSubSystem.h>

Inheritance diagram for pcce::InputSubSystem:

pcce::ISubSystem

List of all members.

Public Member Functions

 InputSubSystem ()
 ~InputSubSystem ()
virtual void vInitialize (tPropertyBagPtr configSection)
virtual void vShutdown ()
virtual const std::string vGetSubSystemName ()
void HandleUpdateEvent (const tIEventPtr &e)
void HandleSetInputTranslatorEvent (const tIEventPtr &e)

Private Attributes

boost::scoped_ptr< ImplmImpl
EventConnectionManager mConns

Classes

class  Impl


Detailed Description

Definition at line 44 of file InputSubSystem.h.


Constructor & Destructor Documentation

InputSubSystem::InputSubSystem (  ) 

Definition at line 201 of file InputSubSystem.cpp.

00201                               : ISubSystem(), mImpl(new Impl()), mConns() {
00202 }

InputSubSystem::~InputSubSystem (  ) 

Definition at line 204 of file InputSubSystem.cpp.

00204                                 {
00205 }


Member Function Documentation

void InputSubSystem::vInitialize ( tPropertyBagPtr  configSection  )  [virtual]

Implements pcce::ISubSystem.

Definition at line 207 of file InputSubSystem.cpp.

References pcce::EventConnectionManager::AddHandler(), pcce::Singleton< T >::Get(), HandleSetInputTranslatorEvent(), HandleUpdateEvent(), mConns, mImpl, and pcce::EventType< T >::sGetEventType().

00207                                                               {
00208   shared_ptr< RequestWindowHandleEvent > windowHandleEvent(new RequestWindowHandleEvent);
00209   
00210   mConns.AddHandler(
00211     UpdateSubSystemEvent::sGetEventType(),
00212     bind(&InputSubSystem::HandleUpdateEvent, this, _1));
00213   mConns.AddHandler(
00214     SetInputTranslatorEvent::sGetEventType(),
00215     bind(&InputSubSystem::HandleSetInputTranslatorEvent, this, _1));
00216 
00217   windowHandleEvent->WindowHandle = "NaN";
00218   EventSystemSingleton::Get()->DispatchEvent(windowHandleEvent);
00219   
00220   mImpl->Initialize(windowHandleEvent->WindowHandle);
00221   
00222 }

void InputSubSystem::vShutdown (  )  [virtual]

Implements pcce::ISubSystem.

Definition at line 224 of file InputSubSystem.cpp.

References mImpl.

00224                                {
00225   mImpl->ShutDown();
00226 }

virtual const std::string pcce::InputSubSystem::vGetSubSystemName (  )  [inline, virtual]

Implements pcce::ISubSystem.

Definition at line 52 of file InputSubSystem.h.

00052                                                 {
00053       return "Input";
00054     }

void InputSubSystem::HandleUpdateEvent ( const tIEventPtr e  ) 

Definition at line 228 of file InputSubSystem.cpp.

References mImpl.

Referenced by vInitialize().

00228                                                           {
00229   mImpl->Update();
00230 }

void InputSubSystem::HandleSetInputTranslatorEvent ( const tIEventPtr e  ) 

Definition at line 232 of file InputSubSystem.cpp.

References mImpl.

Referenced by vInitialize().

00232                                                                       {
00233   shared_ptr< SetInputTranslatorEvent > inputTrans = dynamic_pointer_cast< SetInputTranslatorEvent >(e);
00234   mImpl->SetInputTranslator(inputTrans->GetInputTranslator());
00235 }


Member Data Documentation

boost::scoped_ptr< Impl > pcce::InputSubSystem::mImpl [private]

Definition at line 62 of file InputSubSystem.h.

Referenced by vInitialize().


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

Generated on Thu Mar 6 11:39:28 2008 for Protocce by  doxygen 1.5.5