39 #ifndef vpDirectShowDevice_hh 40 #define vpDirectShowDevice_hh 42 #ifndef DOXYGEN_SHOULD_SKIP_THIS 44 #include <visp3/core/vpConfig.h> 45 #if (defined(VISP_HAVE_DIRECTSHOW)) 52 class VISP_EXPORT vpDirectShowDevice
62 vpDirectShowDevice() : inUse(false) {}
63 explicit vpDirectShowDevice(
const CComPtr<IMoniker> &moniker) : inUse(false) { init(moniker); }
65 bool init(
const CComPtr<IMoniker> &moniker);
67 bool getState() {
return inUse; }
68 void setInUse() { inUse =
true; }
69 void resetInUse() { inUse =
false; }
71 std::string &getName() {
return name; }
72 std::string &getDesc() {
return desc; }
73 std::string &getDevPath() {
return devPath; }
75 bool operator==(vpDirectShowDevice &dev);
77 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, vpDirectShowDevice &dev);