VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
joyDeviceControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
17 
18 
23 
25 {
26 public:
29 
32 
34  virtual void setJoystickControls(const DtRwJoystickControls&) = 0;
35  virtual const DtRwJoystickControls& joystickControls() const = 0;
36 
38  virtual bool hasFunctionGroup(const DtString&) const = 0;
39 };
40 
41 template <typename BaseDescriptorClass>
43 {
44 public:
47  DtReaderWriterRegistry* parentRegistry = NULL);
49  DtReaderWriterRegistry* parentRegistry = NULL);
50 
53 
57  DtReaderWriterRegistry* parentRegistry = NULL);
58 
62 
64  virtual void setJoystickControls(const DtRwJoystickControls&);
65  virtual const DtRwJoystickControls& joystickControls() const;
66 
68  virtual bool hasFunctionGroup(const DtString&) const;
69 
71  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
72  const DtVariableBindingsList& variableBindings);
73 
74 protected:
75  virtual void createFunctionGroupMap();
76 
77 protected:
81 
88 
89  std::map<DtString, std::set<DtString> > myFunctionGroupLookup;
90 };
91 
94 {
95 public:
97  DtReaderWriterRegistry* parentRegistry = NULL)
99  {
100  }
101 
103  DtReaderWriterRegistry* parentRegistry = NULL)
105  {
106  }
107 
109  DtReaderWriterRegistry* parentRegistry = NULL)
111  {
112  }
113 
116 
117  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry * parentRegistry = NULL) const
118  {
119  return new DtJoyDeviceControllerDescriptor(*this, parentRegistry);
120  }
121 
122  static DtComponentDescriptor * creator()
123  {
124  return new DtJoyDeviceControllerDescriptor("");
125  }
126 
129  virtual DtString type() const
130  {
132  }
133 };
134 
135 #include <vrfobjparam/joyDeviceControllerDescriptor.inl>

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)