16 #ifndef SURGSIM_INPUT_INPUTMANAGER_H
17 #define SURGSIM_INPUT_INPUTMANAGER_H
19 #include <boost/thread/mutex.hpp>
21 #include <unordered_map>
30 class DeviceInterface;
32 class OutputComponent;
48 bool addDevice(std::shared_ptr<SurgSim::Input::DeviceInterface> device);
53 bool removeDevice(std::shared_ptr<SurgSim::Input::DeviceInterface> device);
55 virtual int getType()
const override;
60 virtual bool doUpdate(
double dt)
override;
70 virtual bool executeAdditions(
const std::shared_ptr<SurgSim::Framework::Component>& component)
override;
75 virtual bool executeRemovals(
const std::shared_ptr<SurgSim::Framework::Component>& component)
override;
86 std::vector<std::shared_ptr<InputComponent>>
m_inputs;
88 std::vector<std::shared_ptr<OutputComponent>>
m_outputs;
93 std::unordered_map<std::string, std::shared_ptr<SurgSim::Input::DeviceInterface>>
m_devices;
Definition: DriveElementFromInputBehavior.cpp:27
Base Component Manager class.
Definition: ComponentManager.h:49