cmil::SystemClient Class Reference

#include <System.h>

Inheritance diagram for cmil::SystemClient:

Inheritance graph
[legend]
Collaboration diagram for cmil::SystemClient:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SystemClient (System *const sys)
const bool isActionCompatible (int id, InputAction *action) const
const int getID (const Ev &event) const
InputData *const getData (int id) const
InputData *const getData (const Ev &event) const
std::string getName () const
int getSize () const
SystemgetSystem () const
void quit ()
void registerDevices (DeviceRegistry &dev)
void update (const InputData &input)
void update (const ModData &input)

Private Attributes

System *const m_system

Detailed Description

Definition at line 132 of file System.h.


Constructor & Destructor Documentation

cmil::SystemClient::SystemClient ( System *const   sys  )  [inline]

Definition at line 134 of file System.h.

00134                                       : m_system(sys) {
00135         if(!sys)
00136           std::cout << "ERROR: null system passed, this will produce undefined behavior" << std::endl;
00137       };


Member Function Documentation

InputData* const cmil::SystemClient::getData ( const Ev event  )  const [inline]

Definition at line 148 of file System.h.

References cmil::System::getData(), and m_system.

00148                                                       {
00149         return m_system->getData(event);
00150       };

Here is the call graph for this function:

InputData* const cmil::SystemClient::getData ( int  id  )  const [inline]

Definition at line 145 of file System.h.

References cmil::System::getData(), and m_system.

Referenced by cmil::InputNode::createChild(), cmil::ComboHandler::isCombo(), and cmil::NormalHandler::isNormal().

00145                                              {
00146         return m_system->getData(id);
00147       };

Here is the call graph for this function:

Here is the caller graph for this function:

const int cmil::SystemClient::getID ( const Ev event  )  const [inline]

Definition at line 142 of file System.h.

References cmil::System::getID(), and m_system.

Referenced by cmil::InputNode::createChild().

00142                                              {
00143         return m_system->getID(event);
00144       };

Here is the call graph for this function:

Here is the caller graph for this function:

std::string cmil::SystemClient::getName (  )  const [inline]

Reimplemented in cmil::InputNode, cmil::ComboHandler, cmil::NormalHandler, cmil::SDL::Relay, cmil::SDL::DeviceTranslator, cmil::SDL::tDeviceTranslator< DeviceBase >, cmil::SDL::SDLKeyboards, cmil::SDL::SDLMice, cmil::SDL::SDLControllers, cmil::SDL::SDLTranslator, cmil::SDL::tDeviceTranslator< cmil::Keyboard >, cmil::SDL::tDeviceTranslator< cmil::GameController >, and cmil::SDL::tDeviceTranslator< cmil::Mouse >.

Definition at line 152 of file System.h.

00152                                 {
00153         return "SystemClient";
00154       };

int cmil::SystemClient::getSize (  )  const [inline]

Definition at line 156 of file System.h.

References cmil::System::getSize(), and m_system.

Referenced by cmil::InputNode::createChild(), cmil::NormalHandler::Merge(), and cmil::ComboHandler::Merge().

00156                           {
00157         return m_system->getSize();
00158       };

Here is the call graph for this function:

Here is the caller graph for this function:

System* cmil::SystemClient::getSystem (  )  const [inline]

Definition at line 160 of file System.h.

References m_system.

Referenced by cmil::InputNode::createChild(), cmil::NormalHandler::Merge(), and cmil::ComboHandler::Merge().

00160                                 {
00161         return m_system;
00162       };

Here is the caller graph for this function:

const bool cmil::SystemClient::isActionCompatible ( int  id,
InputAction action 
) const [inline]

Definition at line 139 of file System.h.

References cmil::System::isActionCompatible(), and m_system.

00139                                                                        {
00140         return m_system->isActionCompatible(id, action);
00141       };

Here is the call graph for this function:

void cmil::SystemClient::quit (  )  [inline]

Reimplemented in cmil::SDL::Relay.

Definition at line 164 of file System.h.

References m_system, and cmil::System::quit().

Referenced by cmil::SDL::Relay::quit(), and cmil::SDL::SDLTranslator::translate().

00164                   {
00165         m_system->quit();
00166       };

Here is the call graph for this function:

Here is the caller graph for this function:

void cmil::SystemClient::registerDevices ( DeviceRegistry dev  )  [inline]

Definition at line 168 of file System.h.

References m_system, and cmil::System::registerDevices().

00168                                                 {
00169         m_system->registerDevices(dev);
00170       }

Here is the call graph for this function:

void cmil::SystemClient::update ( const ModData input  )  [inline]

Definition at line 176 of file System.h.

References m_system, and cmil::System::update().

00176                                         {
00177         m_system->update(input);
00178       };

Here is the call graph for this function:

void cmil::SystemClient::update ( const InputData input  )  [inline]

Definition at line 172 of file System.h.

References m_system, and cmil::System::update().

Referenced by cmil::SDL::Relay::UpdateSystem().

00172                                           {
00173         m_system->update(input);
00174       };

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

System* const cmil::SystemClient::m_system [private]

Reimplemented in cmil::InputNode, and cmil::ComboHandler.

Definition at line 178 of file System.h.

Referenced by getData(), getID(), getSize(), getSystem(), isActionCompatible(), quit(), registerDevices(), and update().


The documentation for this class was generated from the following file:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:03 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo