| GigE-V Framework Programmer's Manual 2.10 Example C++ Code: Retrieve a Pointer to the GenICam Feature Node Map and Use GenApi Directly |
![]() |
GenApi::CNodeMapRef *pCamera
= \
static_cast<GenApi::CNodeMapRef*>(GevGetFeatureNodeMap(handle));
if (pCamera)
{
// Access the features (by pointer)
GenApi::CIntegerPtr ptrIntNode = pCamera->_GetNode("Width");
UINT32 width = (UINT32)
ptrIntNode->GetValue();
ptrIntNode = pCamera->_GetNode("Height");
UINT32 height = (UINT32)
ptrIntNode->GetValue();
GenApi::CEnumerationPtr ptrEnumNode = pCamera->_GetNode("PixelFormat") ;
format =
(UINT32)ptrEnumNode->GetIntValue();
}
For developers wanting to handle the management of the XML and feature node map themselves, either to wrap it all in an application level class or to alter the default handling of the XML, the following code examples are provided.
Related Topics