cmil::SDL::SupportedFactory Class Reference

#include <SDLTranslator.h>

Inheritance diagram for cmil::SDL::SupportedFactory:

Inheritance graph
[legend]
Collaboration diagram for cmil::SDL::SupportedFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

std::string getName () const

Static Public Member Functions

static DeviceTranslator *const create (const Supported type, System *const sys)

Detailed Description

Definition at line 335 of file SDLTranslator.h.


Member Function Documentation

DeviceTranslator *const cmil::SDL::SupportedFactory::create ( const Supported  type,
System *const   sys 
) [static]

Definition at line 720 of file SDLTranslator.cpp.

References cmil::SDL::Controllers, cmil::SDL::Keyboards, and cmil::SDL::Mice.

Referenced by cmil::SDL::SDLSystem::init().

00720                                                                                             {
00721       switch(type) {
00722           case Controllers:
00723             return new SDLControllers(sys);
00724           break;
00725           case Keyboards:
00726             return new SDLKeyboards(sys);
00727           break;
00728           case Mice:
00729             return new SDLMice(sys);
00730           break;
00731         default:
00732           return NULL;
00733         break;
00734       }
00735     };

Here is the caller graph for this function:

std::string cmil::SDL::SupportedFactory::getName (  )  const [inline, virtual]

Implements Logger.

Definition at line 337 of file SDLTranslator.h.

00337 { return "DeviceTranslatorFactory"; }


The documentation for this class was generated from the following files:
(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