1 #ifndef __DUMMYGRABBER_H
2 #define __DUMMYGRABBER_H
12 #include <condition_variable>
22 virtual const char*
what()
const throw();
31 const std::string & _deviceSource,
32 zmq::context_t & _ctx,
33 const std::string & _brokerEndpoint
39 int getBytesPerPixel();
43 void acquireBuffer(
int bufferId);
44 void releaseBuffer(
int bufferId);
45 void addEndpoint(
const std::string & _endpoint);
49 std::string deviceName;
50 std::string deviceSource;
52 std::list<std::string> endpoints;
53 volatile bool enableAcquisition;
54 std::thread acquisitionThread;
56 std::vector<std::atomic<int>*> bufferUsers;
57 std::atomic<int> openBuffers;
58 std::atomic<int> totalBufferUsers;
59 std::condition_variable bufferFreeNotifier;
61 Json::Value call(
const std::string & name,
const Json::Value & arguments);
62 Json::Value getattr(
const std::string & name);
63 void setattr(
const std::string & name,
const Json::Value & value);
73 std::string rocsHeader;
74 zmq::socket_t rocsSocket;
79 #endif // __DUMMYGRABBER_H
Public interface to an ImageGrabber grabber.
DummyException(const std::string &_message)
virtual const char * what() const