16 #ifndef SURGSIM_DEVICES_DEVICEUTILITIES_H 17 #define SURGSIM_DEVICES_DEVICEUTILITIES_H 28 class DeviceInterface;
38 std::shared_ptr<Input::DeviceInterface>
createDevice(
const std::vector<std::string>& classNames,
39 const std::string& name);
45 std::shared_ptr<Input::DeviceInterface>
createDevice(
const std::string& className,
const std::string& name);
58 std::shared_ptr<Input::DeviceInterface>
loadDevice(
const std::string& fileName);
63 #endif // SURGSIM_DEVICES_DEVICEUTILITIES_H Definition: CompoundShapeToGraphics.cpp:29
std::shared_ptr< DeviceInterface > createDevice(const std::vector< std::string > &classNames, const std::string &name)
Attempts to create and initialize a device from a list of devices to try.
Definition: DeviceUtilities.cpp:111
std::shared_ptr< DeviceInterface > loadDevice(const std::string &fileName)
Loads a single device from the file, the first device that successfully initializes.
Definition: DeviceUtilities.cpp:149