PLCnext API Documentation 25.0.2.69
|
This class represents an attribute on a variable as a key-value-pair More...
#include <CustomAttribute.hpp>
Public Types | |
using | ValueType = Arp::Base::Rsc::Commons::RscVariant< ValueTypeLength > |
Specialization of RscVariant for the value | |
Public Member Functions | |
CustomAttribute (const String &name, const ValueType &value) | |
Constructs a CustomAttribute as a key-value pair More... | |
CustomAttribute (const CustomAttribute &arg) | |
The default copy constructor. | |
CustomAttribute (CustomAttribute &&arg) noexcept | |
The default move constructor. | |
CustomAttribute & | operator= (const CustomAttribute &arg) |
The default copy-assignment operator. | |
CustomAttribute & | operator= (CustomAttribute &&arg) noexcept |
The default move-assignment operator. | |
~CustomAttribute (void) | |
The default destructor. | |
const String & | GetName () const |
Returns the name of the attribute More... | |
const ValueType & | GetValue () const |
Returns the value of the attribute More... | |
Impl & | GetImpl (void) |
For internal use only. | |
const Impl & | GetImpl (void) const |
Static Public Attributes | |
static constexpr size_t | ValueTypeLength = 256 |
Maximum length of an attribute value | |
This class represents an attribute on a variable as a key-value-pair
Arp::Plc::Meta::Commons::CustomAttribute::CustomAttribute | ( | const String & | name, |
const ValueType & | value | ||
) |
Constructs a CustomAttribute as a key-value pair
name | Name of the attribute. Must not be empty. |
value | Value of the attribute, must be shorter than 256 characters. |
const String & Arp::Plc::Meta::Commons::CustomAttribute::GetName | ( | void | ) | const |
Returns the name of the attribute
const CustomAttribute::ValueType & Arp::Plc::Meta::Commons::CustomAttribute::GetValue | ( | void | ) | const |
Returns the value of the attribute