#include <device.h>
Public Types | |
enum | ACCESS { READONLY, CONTROL, EXCLUSIVE } |
Public Member Functions | |
void | close () |
Device (const std::shared_ptr< Interface > &parent, const std::shared_ptr< const GenTLWrapper > &gentl, const char *id) | |
std::string | getAccessStatus () const |
std::string | getDisplayName () const |
void * | getHandle () const |
const std::string & | getID () const |
std::string | getModel () const |
std::shared_ptr < GenApi::CNodeMapRef > | getNodeMap () |
std::shared_ptr< Interface > | getParent () const |
std::shared_ptr < GenApi::CNodeMapRef > | getRemoteNodeMap (const char *xml=0) |
std::string | getSerialNumber () const |
std::vector< std::shared_ptr < Stream > > | getStreams () |
uint64_t | getTimestampFrequency () const |
std::string | getTLType () const |
std::string | getUserDefinedName () const |
std::string | getVendor () const |
std::string | getVersion () const |
void | open (ACCESS access) |
~Device () | |
Private Member Functions | |
Device (class Device &) | |
Device & | operator= (const Device &) |
Private Attributes | |
std::shared_ptr< CPort > | cport |
void * | dev |
std::shared_ptr< const GenTLWrapper > | gentl |
std::string | id |
int | n_open |
std::shared_ptr < GenApi::CNodeMapRef > | nodemap |
std::shared_ptr< Interface > | parent |
std::shared_ptr < GenApi::CNodeMapRef > | rnodemap |
void * | rp |
std::shared_ptr< CPort > | rport |
std::vector< std::weak_ptr < Stream > > | slist |
The device class encapsulates a Genicam device.
NOTE: A GenTLException is thrown in case of a severe error.
enum rcg::Device::ACCESS |
rcg::Device::Device | ( | const std::shared_ptr< Interface > & | parent, |
const std::shared_ptr< const GenTLWrapper > & | gentl, | ||
const char * | id | ||
) |
rcg::Device::Device | ( | class Device & | ) | [private] |
void rcg::Device::close | ( | ) |
std::string rcg::Device::getAccessStatus | ( | ) | const |
std::string rcg::Device::getDisplayName | ( | ) | const |
void * rcg::Device::getHandle | ( | ) | const |
const std::string & rcg::Device::getID | ( | ) | const |
std::string rcg::Device::getModel | ( | ) | const |
std::shared_ptr< GenApi::CNodeMapRef > rcg::Device::getNodeMap | ( | ) |
std::shared_ptr< Interface > rcg::Device::getParent | ( | ) | const |
std::shared_ptr< GenApi::CNodeMapRef > rcg::Device::getRemoteNodeMap | ( | const char * | xml = 0 | ) |
Returns the node map of the remote device.
NOTE: open() must be called before calling this method. The returned pointer remains valid until close() of this object is called.
xml | Path and name for storing the received XML file or 0 if xml file should not be stored. |
std::string rcg::Device::getSerialNumber | ( | ) | const |
std::vector< std::shared_ptr< Stream > > rcg::Device::getStreams | ( | ) |
uint64_t rcg::Device::getTimestampFrequency | ( | ) | const |
std::string rcg::Device::getTLType | ( | ) | const |
std::string rcg::Device::getUserDefinedName | ( | ) | const |
std::string rcg::Device::getVendor | ( | ) | const |
std::string rcg::Device::getVersion | ( | ) | const |
void rcg::Device::open | ( | ACCESS | access | ) |
std::shared_ptr<CPort> rcg::Device::cport [private] |
void* rcg::Device::dev [private] |
std::shared_ptr<const GenTLWrapper> rcg::Device::gentl [private] |
std::string rcg::Device::id [private] |
int rcg::Device::n_open [private] |
std::shared_ptr<GenApi::CNodeMapRef> rcg::Device::nodemap [private] |
std::shared_ptr<Interface> rcg::Device::parent [private] |
std::shared_ptr<GenApi::CNodeMapRef> rcg::Device::rnodemap [private] |
void* rcg::Device::rp [private] |
std::shared_ptr<CPort> rcg::Device::rport [private] |
std::vector<std::weak_ptr<Stream> > rcg::Device::slist [private] |