Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/handleCamera.h
- Revision:
- 20:81d5655fecc2
- Parent:
- 15:e3e03a9df89e
--- a/handle/handleCamera.h Sun Apr 20 22:01:05 2014 +0000 +++ b/handle/handleCamera.h Tue Apr 22 04:26:31 2014 +0000 @@ -26,6 +26,14 @@ ImageHandle():initialized(false),outputDevice(USB::getSerial()){} /// \brief Run an instance of this void run(); + + static ImageHandle* hand; + static ImageHandle& getImageHand(){ + if(hand == NULL){ + hand = new ImageHandle(); + } + return *hand; + } }; #endif \ No newline at end of file