|
PLCnext API Documentation 23.6.0.37
|
Navigates the children of a struct More...
#include <StructNavigator.hpp>
Classes | |
| class | Enumerator |
| IEnumerator of DataInfos of a struct More... | |
Public Types | |
| using | Ptr = std::shared_ptr< StructNavigator > |
| std::shared_ptr to StructNavigator | |
Public Member Functions | |
| StructNavigator (const TypeIdentifier &typeId, ITypeNavigator &typeNavigator, bool isChanging) | |
| Constructs an StructNavigator instance. More... | |
| StructNavigator (const StructNavigator &arg)=default | |
| Copy constructor. | |
| StructNavigator (StructNavigator &&arg)=default | |
| Move constructor. | |
| StructNavigator & | operator= (const StructNavigator &arg)=default |
| Copy assignment operator. | |
| StructNavigator & | operator= (StructNavigator &&arg)=default |
| Move assignment operator. | |
| ~StructNavigator (void)=default | |
| Destructs this instance and frees all resources. | |
| Enumerator | GetEnumerator (const byte *address) |
| Gets an IEnumerator based on an address More... | |
| Enumerator | GetEnumerator (const DataInfo &dataInfo) |
| Gets an IEnumerator based on a DataInfo object More... | |
| size_t | GetOffset (const String &fieldName) |
| Gets the offset of a field in the struct More... | |
Navigates the children of a struct
| Arp::Plc::Commons::Meta::StructNavigator::StructNavigator | ( | const TypeIdentifier & | typeId, |
| ITypeNavigator & | typeNavigator, | ||
| bool | isChanging | ||
| ) |
Constructs an StructNavigator instance.
| typeId | TypeIdentifier of the navigated struct |
| typeNavigator | Reference to the ITypeNavigator to get infoprmation about the type |
| isChanging | true, if the background domain should be used, otherwise uses the foreground domain |
|
inline |
Gets an IEnumerator based on an address
| address | Address of the struct to navigate |
|
inline |
Gets an IEnumerator based on a DataInfo object
| dataInfo | DataInfo of the struct to navigate |
| size_t Arp::Plc::Commons::Meta::StructNavigator::GetOffset | ( | const String & | fieldName | ) |
Gets the offset of a field in the struct
| fieldName | name of the field |