The stream class encapsulates a Genicam stream. More...
#include <stream.h>
Public Member Functions | |
| void | close () |
| Closes the stream. | |
| size_t | getBufAlignment () |
| Returns some information about the stream. | |
| size_t | getBufAnnounceMin () |
| Returns some information about the stream. | |
| bool | getDefinesPayloadsize () |
| Returns some information about the stream. | |
| void * | getHandle () const |
| Get internal stream handle. | |
| const std::string & | getID () const |
| Get the internal ID of this stream. | |
| bool | getIsGrabbing () |
| Returns some information about the stream. | |
| std::shared_ptr < GenApi::CNodeMapRef > | getNodeMap () |
| Returns the node map of this object. | |
| size_t | getNumAnnounced () |
| Returns some information about the stream. | |
| size_t | getNumAwaitDelivery () |
| Returns some information about the stream. | |
| size_t | getNumChunksMax () |
| Returns some information about the stream. | |
| uint64_t | getNumDelivered () |
| Returns some information about the stream. | |
| size_t | getNumQueued () |
| Returns some information about the stream. | |
| uint64_t | getNumStarted () |
| Returns some information about the stream. | |
| uint64_t | getNumUnderrun () |
| Returns some information about the stream. | |
| std::shared_ptr< Device > | getParent () const |
| Returns the pointer to the parent device object. | |
| size_t | getPayloadSize () |
| Returns some information about the stream. | |
| std::string | getTLType () |
| Returns some information about the stream. | |
| const Buffer * | grab (int64_t timeout=-1) |
| Wait for the next image or data and return it in a buffer object. | |
| void | open () |
| Opens the stream for working with it. | |
| void | startStreaming (int na=-1) |
| Allocates buffers and registers internal events if necessary and starts streaming. | |
| void | stopStreaming () |
| Stops streaming. | |
| Stream (const std::shared_ptr< Device > &parent, const std::shared_ptr< const GenTLWrapper > &gentl, const char *id) | |
| Constructs a stream class. | |
| ~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 |
| std::recursive_mutex | mtx |
| 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 | ( | ) |
| size_t rcg::Stream::getBufAnnounceMin | ( | ) |
| bool rcg::Stream::getDefinesPayloadsize | ( | ) |
| void * rcg::Stream::getHandle | ( | ) | const |
| const std::string & rcg::Stream::getID | ( | ) | const |
| bool rcg::Stream::getIsGrabbing | ( | ) |
| std::shared_ptr< GenApi::CNodeMapRef > rcg::Stream::getNodeMap | ( | ) |
| size_t rcg::Stream::getNumAnnounced | ( | ) |
| size_t rcg::Stream::getNumAwaitDelivery | ( | ) |
| size_t rcg::Stream::getNumChunksMax | ( | ) |
| uint64_t rcg::Stream::getNumDelivered | ( | ) |
| size_t rcg::Stream::getNumQueued | ( | ) |
| uint64_t rcg::Stream::getNumStarted | ( | ) |
| uint64_t rcg::Stream::getNumUnderrun | ( | ) |
| std::shared_ptr< Device > rcg::Stream::getParent | ( | ) | const |
| size_t rcg::Stream::getPayloadSize | ( | ) |
| std::string rcg::Stream::getTLType | ( | ) |
| 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] |
std::recursive_mutex rcg::Stream::mtx [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] |