15 #include <peak/dll_interface/peak_dll_interface_util.hpp> 53 std::vector<std::shared_ptr<Node>>
SubNodes()
const;
56 friend ClassCreator<CategoryNode>;
79 , m_backendHandle(categoryNodeHandle)
84 auto numSubNodes = QueryNumericFromCInterfaceFunction<size_t>([&](
size_t* _numSubNodes) {
88 std::vector<std::shared_ptr<Node>> subNodes;
89 for (
size_t x = 0; x < numSubNodes; ++x)
91 auto nodeHandle = QueryNumericFromCInterfaceFunction<PEAK_NODE_HANDLE>(
PEAK_C_API PEAK_CategoryNode_GetSubNode(PEAK_CATEGORY_NODE_HANDLE categoryNodeHandle, size_t index, PEAK_NODE_HANDLE *nodeHandle)
Asks the given category node for the sub node with the given index.
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
struct PEAK_CATEGORY_NODE * PEAK_CATEGORY_NODE_HANDLE
Definition: peak_backend.h:437
CategoryNode & operator=(const CategoryNode &other)=delete
PEAK_C_API PEAK_CategoryNode_GetNumSubNodes(PEAK_CATEGORY_NODE_HANDLE categoryNodeHandle, size_t *numSubNodes)
Asks the given category node for its number of sub nodes.
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition: peak_backend.h:409
~CategoryNode() override=default
std::shared_ptr< NodeMap > ParentNodeMap() const
Returns the parent node map.
Definition: peak_node.hpp:839
std::vector< std::shared_ptr< Node > > SubNodes() const
Returns the sub nodes.
Definition: peak_category_node.hpp:82
#define PEAK_C_ABI_PREFIX
Definition: peak_dll_defines.h:16
PEAK_C_API PEAK_CategoryNode_ToNode(PEAK_CATEGORY_NODE_HANDLE categoryNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given category node to a node.
Represents a GenAPI node.
Definition: peak_node.hpp:121
std::string GetNodeName(PEAK_NODE_HANDLE nodeHandle)
Definition: peak_node.hpp:552
Represents a GenAPI category node.
Definition: peak_category_node.hpp:34