00001 #include "OSDLInputDevice.h" 00002 00003 00004 #include "OSDLController.h" // for Controller 00005 00006 00007 using std::string ; 00008 00009 using namespace OSDL::Events ; 00010 00011 00012 00013 InputDevice::InputDevice() throw() : 00014 Ceylan::InputDevice() 00015 { 00016 00017 } 00018 00019 00020 InputDevice::InputDevice( OSDL::MVC::Controller & actualController ) throw() : 00021 Ceylan::InputDevice( actualController ) 00022 { 00023 00024 } 00025 00026 00027 InputDevice::~InputDevice() throw() 00028 { 00029 00030 } 00031 00032 00033 OSDL::MVC::Controller & InputDevice::getActualController() 00034 const throw( EventsException ) 00035 { 00036 return * dynamic_cast<OSDL::MVC::Controller *>( & getController() ) ; 00037 } 00038 00039 00040 const string InputDevice::toString( Ceylan::VerbosityLevels level ) 00041 const throw() 00042 { 00043 00044 if ( _controller == 0 ) 00045 return "OSDL actual input device currently " 00046 "not linked to any controller" ; 00047 else 00048 return "OSDL actual input device currently " 00049 "linked with following controller : " 00050 + _controller->toString( level ) ; 00051 00052 } 00053