Orxonox  0.0.5 Codename: Arcturus
OISFactoryCreator.h
Go to the documentation of this file.
1 /*
2 The zlib/libpng License
3 
4 Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
5 
6 This software is provided 'as-is', without any express or implied warranty. In no event will
7 the authors be held liable for any damages arising from the use of this software.
8 
9 Permission is granted to anyone to use this software for any purpose, including commercial
10 applications, and to alter it and redistribute it freely, subject to the following
11 restrictions:
12 
13  1. The origin of this software must not be misrepresented; you must not claim that
14  you wrote the original software. If you use this software in a product,
15  an acknowledgment in the product documentation would be appreciated but is
16  not required.
17 
18  2. Altered source versions must be plainly marked as such, and must not be
19  misrepresented as being the original software.
20 
21  3. This notice may not be removed or altered from any source distribution.
22 */
23 #ifndef OIS_FactoryCreator_H
24 #define OIS_FactoryCreator_H
25 
26 #include "OISPrereqs.h"
27 
28 namespace OIS
29 {
35  {
36  public:
40  virtual ~FactoryCreator() {};
41 
45  virtual DeviceList freeDeviceList() = 0;
46 
51  virtual int totalDevices(Type iType) = 0;
52 
57  virtual int freeDevices(Type iType) = 0;
58 
64  virtual bool vendorExist(Type iType, const std::string & vendor) = 0;
65 
72  virtual Object* createObject(InputManager* creator, Type iType, bool bufferMode, const std::string & vendor = "") = 0;
73 
78  virtual void destroyObject(Object* obj) = 0;
79  };
80 }
81 #endif //OIS_FactoryCreator_H
virtual ~FactoryCreator()
Definition: OISFactoryCreator.h:40
#define _OISExport
Definition: OISPrereqs.h:40
::std::string string
Definition: gtest-port.h:756
Interface for creating devices - all devices ultimately get enumerated/created via a factory...
Definition: OISFactoryCreator.h:34
The base class of all input types.
Definition: OISObject.h:32
Type
Each Input class has a General Type variable, a form of RTTI.
Definition: OISPrereqs.h:138
Base Manager class.
Definition: OISInputManager.h:38
std::multimap< Type, std::string > DeviceList
Map of device objects connected and their respective vendors.
Definition: OISPrereqs.h:149
Definition: EventHelpers.h:31