42 #ifndef vpDirectShowDevice_hh
43 #define vpDirectShowDevice_hh
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 #include <visp/vpConfig.h>
48 #if ( defined(VISP_HAVE_DIRECTSHOW) )
57 class VISP_EXPORT vpDirectShowDevice
67 vpDirectShowDevice() : inUse(false){}
68 vpDirectShowDevice(
const CComPtr<IMoniker>& moniker) : inUse(false){ init(moniker); }
70 bool init(
const CComPtr<IMoniker>& moniker);
72 bool getState(){
return inUse; }
73 void setInUse(){ inUse=
true; }
74 void resetInUse() { inUse=
false; }
76 std::string& getName(){
return name; }
77 std::string& getDesc(){
return desc; }
78 std::string& getDevPath(){
return devPath; }
80 bool operator==(vpDirectShowDevice& dev);
82 friend VISP_EXPORT std::ostream& operator<<(std::ostream& os, vpDirectShowDevice& dev);