CVB++ 15.0
category_node.hpp
1#pragma once
2
3#include "../global.hpp"
4
5#include "value_node.hpp"
6
7namespace Cvb
8{
9
10 CVB_BEGIN_INLINE_NS
11
12 namespace GenApi
13 {
14
16
18 class CategoryNode : public ValueNode
19 {
20 public:
21 explicit CategoryNode(HandleGuard<Node> &&guard) noexcept
22 : ValueNode(std::move(guard))
23 {
24 }
25
26 int NodeCount() const
27 {
28 return GetDependentNodeCount(NodeList::ChildNode);
29 }
30
32
36 void FromString(const String &value) override
37 {
38 (void)value;
39 throw std::runtime_error("not implemented");
40 }
41
43
48 {
49 return GetDependentNodes<Node>(NodeList::ChildNode);
50 }
51 };
52
53 } // namespace GenApi
54
55 using GenApi::CategoryNode;
56
57 CVB_END_INLINE_NS
58
59} // namespace Cvb
std::vector< NodePtr > Nodes() const
Gets the nodes categorized by this node.
Definition category_node.hpp:47
void FromString(const String &value) override
Not supported.
Definition category_node.hpp:36
T move(T... args)
Namespace for GenApi based device configuration.
Definition decl_fw_updater.hpp:29
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49