45 if (!serviceRefs.empty())
62 std::vector<std::string> result;
63 std::vector<us::ServiceReference<ToFCameraDevice> > serviceRefs = context->GetServiceReferences<
ToFCameraDevice>();
64 if (!serviceRefs.empty())
71 result.push_back(std::string(service->GetNameOfClass()));
75 if(result.size() == 0)
86 std::vector<us::ServiceReference<IToFDeviceFactory> > serviceRefs = context->GetServiceReferences<
IToFDeviceFactory>();
87 if (!serviceRefs.empty())
93 if(service && (i == index))
ToFDeviceFactoryManager()
std::vector< std::string > GetConnectedDevices()
ToFCameraDevice * GetInstanceOfDevice(int index)
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
~ToFDeviceFactoryManager()
Virtual interface and base class for all Time-of-Flight devices.
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::string GetFactoryName()=0
GetFactoryName Get the human readable name of the factory.
void * GetService(const ServiceReferenceBase &reference)
std::vector< us::ServiceReference< IToFDeviceFactory > > m_RegisteredFactoryRefs
std::vector< ServiceReferenceU > GetServiceReferences(const std::string &clazz, const std::string &filter=std::string())
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
This is the base of class for all ToFDeviceFactories.
std::vector< std::string > GetRegisteredDeviceFactories()
std::vector< std::string > m_RegisteredFactoryNames