#include <stream.h>
Public Member Functions | |
void | close () |
size_t | getBufAlignment () const |
size_t | getBufAnnounceMin () const |
bool | getDefinesPayloadsize () const |
void * | getHandle () const |
const std::string & | getID () const |
bool | getIsGrabbing () const |
std::shared_ptr < GenApi::CNodeMapRef > | getNodeMap () |
size_t | getNumAnnounced () const |
size_t | getNumAwaitDelivery () const |
size_t | getNumChunksMax () const |
uint64_t | getNumDelivered () const |
size_t | getNumQueued () const |
uint64_t | getNumStarted () const |
uint64_t | getNumUnderrun () const |
std::shared_ptr< Device > | getParent () const |
size_t | getPayloadSize () const |
std::string | getTLType () const |
const Buffer * | grab (int64_t timeout=-1) |
void | open () |
void | startStreaming (int na=-1) |
void | stopStreaming () |
Stream (const std::shared_ptr< Device > &parent, const std::shared_ptr< const GenTLWrapper > &gentl, const char *id) | |
~Stream () | |
Private Member Functions | |
Stream & | operator= (const Stream &) |
Stream (class Stream &) | |
Private Attributes | |
size_t | bn |
Buffer | buffer |
std::shared_ptr< CPort > | cport |
void * | event |
std::shared_ptr< const GenTLWrapper > | gentl |
std::string | id |
int | n_open |
std::shared_ptr < GenApi::CNodeMapRef > | nodemap |
std::shared_ptr< Device > | parent |
void * | stream |
The stream class encapsulates a Genicam stream.
NOTE: A GenTLException is thrown in case of a severe error.
rcg::Stream::Stream | ( | const std::shared_ptr< Device > & | parent, |
const std::shared_ptr< const GenTLWrapper > & | gentl, | ||
const char * | id | ||
) |
rcg::Stream::Stream | ( | class Stream & | ) | [private] |
void rcg::Stream::close | ( | ) |
size_t rcg::Stream::getBufAlignment | ( | ) | const |
size_t rcg::Stream::getBufAnnounceMin | ( | ) | const |
bool rcg::Stream::getDefinesPayloadsize | ( | ) | const |
void * rcg::Stream::getHandle | ( | ) | const |
const std::string & rcg::Stream::getID | ( | ) | const |
bool rcg::Stream::getIsGrabbing | ( | ) | const |
std::shared_ptr< GenApi::CNodeMapRef > rcg::Stream::getNodeMap | ( | ) |
size_t rcg::Stream::getNumAnnounced | ( | ) | const |
size_t rcg::Stream::getNumAwaitDelivery | ( | ) | const |
size_t rcg::Stream::getNumChunksMax | ( | ) | const |
uint64_t rcg::Stream::getNumDelivered | ( | ) | const |
size_t rcg::Stream::getNumQueued | ( | ) | const |
uint64_t rcg::Stream::getNumStarted | ( | ) | const |
uint64_t rcg::Stream::getNumUnderrun | ( | ) | const |
std::shared_ptr< Device > rcg::Stream::getParent | ( | ) | const |
size_t rcg::Stream::getPayloadSize | ( | ) | const |
std::string rcg::Stream::getTLType | ( | ) | const |
const Buffer * rcg::Stream::grab | ( | int64_t | timeout = -1 | ) |
Wait for the next image or data and return it in a buffer object. The buffer is valid until the next call to grab.
timeout | Timeout in ms. A value < 0 sets waiting time to infinite. |
void rcg::Stream::open | ( | ) |
void rcg::Stream::startStreaming | ( | int | na = -1 | ) |
void rcg::Stream::stopStreaming | ( | ) |
size_t rcg::Stream::bn [private] |
Buffer rcg::Stream::buffer [private] |
std::shared_ptr<CPort> rcg::Stream::cport [private] |
void* rcg::Stream::event [private] |
std::shared_ptr<const GenTLWrapper> rcg::Stream::gentl [private] |
std::string rcg::Stream::id [private] |
int rcg::Stream::n_open [private] |
std::shared_ptr<GenApi::CNodeMapRef> rcg::Stream::nodemap [private] |
std::shared_ptr<Device> rcg::Stream::parent [private] |
void* rcg::Stream::stream [private] |