Buffer Interface
|
Interface to access and modify features on a Gen<i>Cam device. More...
#include <BFGTLUtilities.hpp>
Public Member Functions | |
Device (BFVOID) | |
~Device (BFVOID) | |
BFVOID | open (BufferAcquisition::BufferInterface const &bufin) |
BFVOID | open (Bd hBoard) |
BFVOID | open (const BFU32 brdNum) |
BFVOID | openSWConnector (const BFU32 Switch, const BFU32 Connector) |
BFVOID | close (BFVOID) |
BFBOOL | isOpen (BFVOID) const |
bool | operator! (BFVOID) const |
operator bool (BFVOID) const | |
Bd | getBoardHandle (BFVOID) const |
BFU32 | getBoardNumber (BFVOID) const |
BFVOID | getBoardSWConnector (BFU32 &Switch, BFU32 &Connector) const |
std::vector< std::string > | getNodeNames (BFVOID) const |
BFBOOL | enumerateNodeName (const BFSIZET index, BFCHAR *const nameBuf, BFSIZET *const pNameSize) const |
BFBOOL | nodeExists (std::string const &name) const |
BFBOOL | nodeExists (const BFCHAR *const name) const |
BaseNode | getNode (std::string const &name) const |
BaseNode | getNode (const BFCHAR *const name) const |
Static Public Member Functions | |
static BFU32 | boardCount (BFVOID) |
Interface to access and modify features on a Gen<i>Cam device.
The BFGTLUtilities::Device class provides an independent interface to Gen<i>Cam devices, as exposed by BitFlow frame grabbers through the BFGTL Gen<i>Cam producer. This may be used simultaneously with the BufferAcquisition classes, or completely independently. BufferAcquisition::BufferInterface implements its own CXP register methods.
Device::Device | ( | BFVOID | ) |
Construct an unopened BFGTLUtilities Device.
Device::~Device | ( | BFVOID | ) |
Return the number of BitFlow boards installed on the system.
BiException | - Thrown if the BitFlow boards cannot be enumerated. |
References BI_CIERROR_CISYSBRDENUM, and BiException::check().
Close the BFGTL Camera Device.
BFCiException | - Thrown if the Device cannot be closed. |
References BFCiException::check().
Referenced by open(), openSWConnector(), and ~Device().
BFBOOL Device::enumerateNodeName | ( | const BFSIZET | index, |
BFCHAR *const | nameBuf, | ||
BFSIZET *const | pNameSize | ||
) | const |
Retrieve a list of all available Camera Device node names.
[in] | index | - The node index to enumerate. |
[out] | nameBuf | - The node name string buffer, filled with as much data as is possible. This may be nullptr. |
[in,out] | pNameSize | - As input, the size of nameBuf. As output, the buffer size required to read the entire name string. |
BFCiException | - Thrown if a Device access error occurs. |
References BFCiException::check().
Return the opened board handle. If opened by board number or switch connector, this is an internally allocated handle. If opened by Bd handle, this is the externally supplied handle. If closed, returns nullptr.
BaseNode Device::getNode | ( | std::string const & | name | ) | const |
Retrieve a Camera Device node from a given node name.
BFCiException | - Thrown if no node could be opened on this Device with the given name. |
References BFCiException::check().
Retrieve a Camera Device node from a given node name.
BFCiException | - Thrown if no node could be opened on this Device with the given name. |
References BFCiException::check().
std::vector< std::string > Device::getNodeNames | ( | BFVOID | ) | const |
Retrieve a list of all available Camera Device node names.
BFCiException | - Thrown if a Device access error occurs. |
References BFCiException::check().
Return whether or not a BFGTL Camera Device has been opened or not.
Referenced by operator!().
BFBOOL Device::nodeExists | ( | std::string const & | name | ) | const |
BFVOID Device::open | ( | BufferAcquisition::BufferInterface const & | bufin | ) |
Open the Device corresponding to specified BufferInterface. The Device must be closed prior to closing the BufferInterface. Closes the current Device first, if necessary.
BFCiException | - Thrown if the Device cannot be opened. |
References BufferAcquisition::BufferInterface::getBoardHandle().
Open the BFGTL Camera Device corresponding to the given board handle. The Device must be closed prior to closing the board handle. Closes the current Device first, if necessary.
BFCiException | - Thrown if the Device cannot be opened. |
References BFCiException::check(), and close().
Open a BFGTL Camera Device for the given board number. Closes the current Device first, if necessary.
BiException | - Thrown if the specified board couldn't be accessed. |
BFCiException | - Thrown if the Device cannot be opened. |
References BiTypeAny, BFCiException::check(), BiException::check(), and close().
Open a BFGTL Camera Device for the given Board switch and Connector. Closes the current Device first, if necessary.
BiException | - Thrown if the specified board couldn't be accessed. |
BFCiException | - Thrown if the Device cannot be opened. |
References BI_CIERROR_CIBRDOPEN, BI_CIERROR_CISYSBOARDFINDSWCONNECTOR, BFCiException::check(), BiException::check(), and close().
Device::operator bool | ( | BFVOID | ) | const |
bool Device::operator! | ( | BFVOID | ) | const |