CVB++ 15.0
string_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 StringNode : public ValueNode
19 {
20 public:
21 explicit StringNode(HandleGuard<Node> &&guard) noexcept
22 : ValueNode(std::move(guard))
23 {
24 }
25
27
38 String Value() const
39 {
40 return ToString();
41 }
42
44
48 void SetValue(const String &value)
49 {
50 FromString(value);
51 }
52 };
53
54 } // namespace GenApi
55
56 using GenApi::StringNode;
57
58 CVB_END_INLINE_NS
59
60} // namespace Cvb
void SetValue(const String &value)
Sets the string value.
Definition string_node.hpp:48
String Value() const
Gets the string value.
Definition string_node.hpp:38
virtual String ToString() const
Returns this node's value as a string representation.
Definition value_node.hpp:52
virtual void FromString(const String &value)
Sets the value of this node from the string value.
Definition value_node.hpp:67
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