9#include <cvb/device_factory.hpp>
20 std::cout <<
"no device discovered"<<std::endl;
23 auto device = Cvb::DeviceFactory::Open<Cvb::GenICamDevice>(infoList[0].AccessToken(), Cvb::AcquisitionStack::GenTL);
24 auto cookie = device->RegisterConnectionStateChangedEvent([]() {
25 std::cout <<
"device was disconnected" << std::endl;
28 std::cout <<
"you can disconnect the device and get a confirmation message or ending the program by pressing a key."<<std::endl;
static std::vector< DiscoveryInformation > Discover()
Discovers available devices (not vins) with a default time span of 300ms.
Definition: decl_device_factory.hpp:221