All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateInputDeviceHandle.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_DEVICES_MULTIAXIS_CREATEINPUTDEVICEHANDLE_H
17 #define SURGSIM_DEVICES_MULTIAXIS_CREATEINPUTDEVICEHANDLE_H
18 
19 #include <string>
20 #include <memory>
21 #include <vector>
22 
23 namespace SurgSim
24 {
25 namespace Framework
26 {
27 class Logger;
28 }; // namespace Framework
29 
30 namespace Device
31 {
32 class SystemInputDeviceHandle;
33 
34 
39 std::unique_ptr<SystemInputDeviceHandle> createInputDeviceHandle(const std::string& path,
40  std::shared_ptr<SurgSim::Framework::Logger> logger);
41 
45 std::vector<std::string> enumerateInputDevicePaths(SurgSim::Framework::Logger* logger);
46 
47 
48 }; // namespace Device
49 }; // namespace SurgSim
50 
51 #endif // SURGSIM_DEVICES_MULTIAXIS_CREATEINPUTDEVICEHANDLE_H
An object that can be used to control logging parameters, such as verbosity and log output destinatio...
Definition: Logger.h:51
std::vector< std::string > enumerateInputDevicePaths(SurgSim::Framework::Logger *logger)
Enumerates input devices.
Definition: CreateInputDeviceHandle.cpp:33
std::unique_ptr< SystemInputDeviceHandle > createInputDeviceHandle(const std::string &path, std::shared_ptr< SurgSim::Framework::Logger > logger)
Opens the given path and creates an access wrapper for the device.
Definition: CreateInputDeviceHandle.cpp:27