36 #ifndef RC_GENICAM_API_DEVICE 37 #define RC_GENICAM_API_DEVICE 54 class Device :
public std::enable_shared_from_this<Device>
66 const std::shared_ptr<const GenTLWrapper> &
gentl,
const char *
id);
75 std::shared_ptr<Interface>
getParent()
const;
83 const std::string &
getID()
const;
109 std::vector<std::shared_ptr<Stream> >
getStreams();
228 std::shared_ptr<GenApi::CNodeMapRef>
getNodeMap();
257 std::shared_ptr<const GenTLWrapper>
gentl;
269 std::vector<std::weak_ptr<Stream> >
slist;
279 std::vector<std::shared_ptr<Device> >
getDevices();
291 std::shared_ptr<Device>
getDevice(
const char *devid);
std::vector< std::shared_ptr< Stream > > getStreams()
Returns the currently available streams of this device.
std::shared_ptr< Device > getDevice(const char *id)
Searches across all transport layers and interfaces for a device.
std::string getDisplayName()
Returns the display name of the device.
void open(ACCESS access)
Opens the device for working with it.
const std::string & getID() const
Get the internal ID of this device.
std::shared_ptr< CPort > rport
void * getHandle() const
Get internal interface handle.
std::string getVendor()
Returns the vendor of the device.
std::string getUserDefinedName()
Returns the user defined name of the device.
std::shared_ptr< GenApi::CNodeMapRef > rnodemap
std::shared_ptr< const GenTLWrapper > gentl
std::string getSerialNumber()
Returns the serial number of the device.
std::shared_ptr< GenApi::CNodeMapRef > getRemoteNodeMap(const char *xml=0)
Returns the node map of the remote device.
Device(const std::shared_ptr< Interface > &parent, const std::shared_ptr< const GenTLWrapper > &gentl, const char *id)
Constructs a device class.
Device & operator=(const Device &)
std::shared_ptr< Interface > getParent() const
Returns the pointer to the parent interface object.
std::shared_ptr< CPort > cport
std::shared_ptr< GenApi::CNodeMapRef > getNodeMap()
Returns the node map of this object.
std::string getTLType()
Returns the transport layer type of the device.
std::string getModel()
Returns the model of the device.
std::shared_ptr< GenApi::CNodeMapRef > nodemap
std::vector< std::shared_ptr< Device > > getDevices()
Returns a list of all devices that are available across all transport layers and interfaces.
uint64_t getTimestampFrequency()
Returns the timestamp frequency of the device.
std::string getVersion()
Returns the version of the device.
std::vector< std::weak_ptr< Stream > > slist
std::shared_ptr< Interface > parent
The device class encapsulates a Genicam device.
std::string getAccessStatus()
Returns the access status of the device.
void close()
Closes the device.