|
PLCnext API Documentation 25.0.2.69
|
This class collects several document traits. More...
#include <DocumentTraits.hpp>
Public Types | |
| using | Values = std::set< String > |
Public Member Functions | |
| DocumentTraits (void) | |
| Default constructor. | |
| DocumentTraits (const String &value) | |
| Constructs a DocumentTraits instance. More... | |
| DocumentTraits (const DocumentTraits &arg) | |
| Default copy constructor. | |
| DocumentTraits (DocumentTraits &&arg) noexcept | |
| Default move constructor. | |
| DocumentTraits & | operator= (const DocumentTraits &arg) |
| Default copy-assignment operator. | |
| DocumentTraits & | operator= (DocumentTraits &&arg) noexcept |
| Default move-assignment operator. | |
| ~DocumentTraits (void) | |
| Default destructor. | |
| void | Add (const String &value) |
| Adds a trait to this instance. More... | |
| bool | IsEmpty (void) const |
| Determines if this instance is empty. More... | |
| bool | HasTrait (const String &value) const |
| Determines if this instance contains the given trait. More... | |
| Impl & | GetImpl (void) |
| For internal use only. | |
| const Impl & | GetImpl (void) const |
This class collects several document traits.
The document traits might be applied insided of XML Include files, to apply one or more traits of a document, depending of the document path.
|
explicit |
Constructs a DocumentTraits instance.
| value | A initial trait value as string. |
| void Arp::System::Commons::Xml::DocumentTraits::Add | ( | const String & | value | ) |
Adds a trait to this instance.
| value | The trait value to add. |
| bool Arp::System::Commons::Xml::DocumentTraits::HasTrait | ( | const String & | value | ) | const |
Determines if this instance contains the given trait.
true if this instance contains the given trait, otherwise false.| bool Arp::System::Commons::Xml::DocumentTraits::IsEmpty | ( | void | ) | const |
Determines if this instance is empty.
true if this instance is empty, otherwise false.