PLCnext API Documentation 25.6.0.37
|
This class is used to read a entity of the type 'IO:StructDefinition' from a TIC file. More...
#include <TicStructDefinition.hpp>
Public Types | |
using | Ptr = std::shared_ptr< TicStructDefinition > |
using | BitSize = Arp::Plc::Meta::Commons::BitSize |
using | TypeDefinition = Arp::Plc::Meta::Commons::Io::TypeDefinition |
![]() | |
using | Ptr = std::shared_ptr< TicBase > |
using | ChildPtr = ITicSerializable::Ptr |
using | ChildElements = std::vector< ChildPtr > |
![]() | |
using | Ptr = std::shared_ptr< ITicSerializable > |
Public Member Functions | |
TicStructDefinition (void) | |
The default constructor. | |
TicStructDefinition (const TicStructDefinition &arg)=delete | |
TicStructDefinition (TicStructDefinition &&arg) noexcept | |
The default move constructor. More... | |
TicStructDefinition & | operator= (const TicStructDefinition &arg)=delete |
TicStructDefinition & | operator= (TicStructDefinition &&arg) noexcept |
The default move-assignment operator. More... | |
~TicStructDefinition (void) override | |
The default destructor. | |
const String & | GetTypeName () const |
Returns the name of the struct. More... | |
BitSize | GetLength () const |
Returns the total length of the structure More... | |
TypeDefinition | CreateTypeDefinition () const |
Creates an instance of type TypeDefinition More... | |
bool | TryReadAttribute (TicReader &reader, const String &attributeName) final |
This operation is called every time an attribute is read. More... | |
bool | TryCreateElement (const String &elementName, ChildPtr &result) final |
Factory method to create child elements. More... | |
void | OnReadEnd (void) override |
Validates the content of the current element. More... | |
Impl & | GetImpl (void) |
For internal use only. More... | |
const Impl & | GetImpl (void) const |
![]() | |
TicBase (const TicBase &arg)=delete | |
TicBase (TicBase &&arg) noexcept | |
Default move constructor. | |
TicBase & | operator= (const TicBase &arg)=delete |
TicBase & | operator= (TicBase &&arg) noexcept |
Default move-assignment operator. | |
~TicBase (void) override | |
Default destructor. | |
TicBase (void) | |
Default constructor. | |
const ChildElements & | GetChildElements (void) const |
Returns all childs of this element. More... | |
void | ReadTic (TicReader &reader) final |
This operation shall be implemented by all classes which should read its context from Tic files. More... | |
void | WriteTic (TicWriter &writer) final |
This method is currently not implemented and should not be used. More... | |
virtual bool | TryReadAttribute (TicReader &reader, const String &attributeName) |
This operation is called every time an attribute is read. More... | |
virtual bool | TryCreateElement (const String &elementName, ChildPtr &result) |
Factory method to create child elements. More... | |
virtual bool | TryReadCustomAttribute (TicReader &reader, const String &attributeName) |
This operation is called every time an attribute is read. More... | |
virtual bool | TryCreateCustomElement (const String &elementName, ChildPtr &result) |
Factory method to create child elements. More... | |
virtual void | OnReadEnd (void) |
Validates the content of the current element. More... | |
Impl & | GetImpl (void) |
For internal use only. | |
const Impl & | GetImpl (void) const |
![]() | |
ITicSerializable (void)=default | |
Constructs an ITicSerializable instance. | |
ITicSerializable (const ITicSerializable &arg)=default | |
Copy constructor. | |
ITicSerializable (ITicSerializable &&arg) noexcept=default | |
Move constructor. | |
ITicSerializable & | operator= (const ITicSerializable &arg)=default |
Copy-assignment operator. | |
ITicSerializable & | operator= (ITicSerializable &&arg) noexcept=default |
Move-assignment operator. | |
virtual | ~ITicSerializable (void)=default |
Destructs this instance and frees all resources. | |
virtual void | ReadTic (TicReader &reader)=0 |
This operation shall be implemented to read the content from Tic documents. More... | |
virtual void | WriteTic (TicWriter &writer)=0 |
This operation shall be implemented to write the content to Tic documents. More... | |
Static Public Member Functions | |
static const char * | GetTicElementName (void) |
This class is used to read a entity of the type 'IO:StructDefinition' from a TIC file.
The entity IO:StructDefinition contains the definition of a custom struct. The struct definition defines an explicit layout. All field definitions data sizes must fit into the total length.
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
TicStructDefinition::TypeDefinition Arp::Io::Commons::Configuration::TicStructDefinition::CreateTypeDefinition | ( | ) | const |
Creates an instance of type TypeDefinition
const TicStructDefinition::Impl & Arp::Io::Commons::Configuration::TicStructDefinition::GetImpl | ( | void | ) |
For internal use only.
TicStructDefinition::BitSize Arp::Io::Commons::Configuration::TicStructDefinition::GetLength | ( | void | ) | const |
Returns the total length of the structure
Bit granular data structure lengths are currently not supported.
const String & Arp::Io::Commons::Configuration::TicStructDefinition::GetTypeName | ( | ) | const |
Returns the name of the struct.
|
overridevirtual |
Validates the content of the current element.
Reimplemented from Arp::Io::Commons::Configuration::TicBase.
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |
|
finalvirtual |
Factory method to create child elements.
Reimplemented from Arp::Io::Commons::Configuration::TicBase.
|
finalvirtual |
This operation is called every time an attribute is read.
Reimplemented from Arp::Io::Commons::Configuration::TicBase.