Public Member Functions

gamepad::SourceDeviceFactory Class Reference
[Source Device Interface]

objects supporting this interface can create gamepad::SourceDevice instances. More...

#include <source-device.h>

Inheritance diagram for gamepad::SourceDeviceFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~SourceDeviceFactory (void) throw ()
virtual const char * getName (void) const =0 throw ()
virtual int getCount (void)=0
virtual smart_ptr< SourceDevicegetSourceDevice (IN int index)=0

Detailed Description

objects supporting this interface can create gamepad::SourceDevice instances.

Note to implementers (and users): objects supporting this interface are intended to be long-lived. So if you write an object that supports this interface, it should re-poll (or do whatever discovery is necessary) on every API call, and not rely on one-time discovery during object initialization. In particular, it is expected that SourceDeviceFactory::getCount() will be expensive to call.

Definition at line 266 of file source-device.h.


Constructor & Destructor Documentation

gamepad::SourceDeviceFactory::~SourceDeviceFactory ( void   )  throw () [virtual]

Definition at line 42 of file source-device.cpp.


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