PLCnext API Documentation
22.9.0.33
|
Provides detailed informations for the respective data object. More...
#include <DataInfo.hpp>
Public Member Functions | |
DataInfo (void)=default | |
Constructs an DataInfo instance. More... | |
DataInfo (const DataInfo &arg)=default | |
Copy constructor. More... | |
DataInfo (DataInfo &&arg)=default | |
Move constructor. More... | |
DataInfo (const DataTag &dataTag) | |
Constructs an DataInfo instance. More... | |
DataInfo (const DataTag &dataTag, const ArrayDimension &arrayDimension) | |
Constructs an DataInfo instance. More... | |
DataInfo (const DataTag &dataTag, const ArrayDimensions &arrayDimensions) | |
Constructs an DataInfo instance. More... | |
DataInfo & | operator= (const DataInfo &arg)=default |
Copy assignment operator. More... | |
DataInfo & | operator= (DataInfo &&arg)=default |
Move assignment operator More... | |
~DataInfo (void) override=default | |
Destructs this instance and frees all resources. More... | |
bool | IsEmpty (void) const |
Determines if this instance is empty. More... | |
DataTypeEnum & | GetDataType (void) |
The data type of this instance. More... | |
const DataTypeEnum & | GetDataType (void) const |
The data type of this instance. More... | |
DataTag & | GetDataTag (void) |
Gets the DataTag . More... | |
const DataTag & | GetDataTag (void) const |
Gets the DataTag . More... | |
TypeIdentifier & | GetTypeIdentifier (void) |
Get type name and namspace. More... | |
const TypeIdentifier & | GetTypeIdentifier (void) const |
Get type name and namspace. More... | |
ArrayDimensions & | GetArrayDimensions (void) |
List of array dimensions information More... | |
const ArrayDimensions & | GetArrayDimensions (void) const |
List of array dimensions information More... | |
bool | IsBackgroundDomain (void) const |
Only for internal using. More... | |
size_t | GetTypeSize (ITypeNavigator &typeNavigator) const |
Determines the size of the base data type More... | |
size_t | GetBaseDataTypeSize (ITypeNavigator &typeNavigator) const |
Determines the size of the base data type More... | |
size_t | GetDataSize (ITypeNavigator &typeNavigator) const |
Determines the size of the data type More... | |
size_t | GetDataAlignment (ITypeNavigator &typeNavigator) const |
Determines the alignment of the data More... | |
size_t | GetVariableSize (ITypeNavigator &typeNavigator) const |
Determines the size of the pointer or data type More... | |
size_t | GetVariableAlignment (ITypeNavigator &typeNavigator) const |
Determines the alignment of the pointer oder data More... | |
TypeInfo | GetTypeInfo (ITypeNavigator &typeNavigator) const |
Gets the TypeInfo of this object's type More... | |
void | Serialize (RscWriter &writer) const override |
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More... | |
void | Deserialize (RscReader &reader) override |
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More... | |
![]() | |
virtual | ~IRscSerializable ()=default |
default destructor More... | |
Static Public Member Functions | |
static size_t | GetFieldCount (void) |
![]() | |
static size_t | GetFieldCount (void) |
Returns the count of fields of the struct type More... | |
Static Public Attributes | |
static const DataInfo | Empty |
constant empty object to enable references More... | |
Friends | |
class | Arp::Plc::Meta::Internal::DataBrowser |
Provides detailed informations for the respective data object.
|
default |
Constructs an DataInfo instance.
|
default |
Copy constructor.
|
default |
Move constructor.
Arp::Plc::Commons::Meta::DataInfo::DataInfo | ( | const DataTag & | dataTag | ) |
Constructs an DataInfo instance.
Arp::Plc::Commons::Meta::DataInfo::DataInfo | ( | const DataTag & | dataTag, |
const ArrayDimension & | arrayDimension | ||
) |
Constructs an DataInfo instance.
Arp::Plc::Commons::Meta::DataInfo::DataInfo | ( | const DataTag & | dataTag, |
const ArrayDimensions & | arrayDimensions | ||
) |
Constructs an DataInfo instance.
|
overridedefault |
Destructs this instance and frees all resources.
|
overridevirtual |
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.
reader | Reference to RscReader. |
Implements Arp::System::Rsc::Services::IRscSerializable.
|
inline |
List of array dimensions information
|
inline |
List of array dimensions information
size_t Arp::Plc::Commons::Meta::DataInfo::GetBaseDataTypeSize | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the size of the base data type
typeNavigator | ITypeNavigator to query additional type information from |
If this object is a pointer, the result is valid for the dereferenced data type!
size_t Arp::Plc::Commons::Meta::DataInfo::GetDataAlignment | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the alignment of the data
typeNavigator | ITypeNavigator to query additional type information from |
If this object is a pointer, the result is valid for the dereferenced data type!
size_t Arp::Plc::Commons::Meta::DataInfo::GetDataSize | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the size of the data type
typeNavigator | ITypeNavigator to query additional type information from |
Equals base data size times array dimensions. If this object is a pointer, the result is valid for the dereferenced data type!
|
inline |
const DataTag& Arp::Plc::Commons::Meta::DataInfo::GetDataTag | ( | void | ) | const |
|
inline |
The data type of this instance.
const DataTypeEnum& Arp::Plc::Commons::Meta::DataInfo::GetDataType | ( | void | ) | const |
The data type of this instance.
|
inline |
Get type name and namspace.
const TypeIdentifier& Arp::Plc::Commons::Meta::DataInfo::GetTypeIdentifier | ( | void | ) | const |
Get type name and namspace.
TypeInfo Arp::Plc::Commons::Meta::DataInfo::GetTypeInfo | ( | ITypeNavigator & | typeNavigator | ) | const |
Gets the TypeInfo of this object's type
typeNavigator | ITypeNavigator to query additional type information from |
size_t Arp::Plc::Commons::Meta::DataInfo::GetTypeSize | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the size of the base data type
typeNavigator | ITypeNavigator to query additional type information from |
This function is deperecated. Use GetBaseDataTypeSize
If this object is a pointer, the result is valid for the dereferenced data type!
size_t Arp::Plc::Commons::Meta::DataInfo::GetVariableAlignment | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the alignment of the pointer oder data
typeNavigator | ITypeNavigator to query additional type information from |
If this object is a pointer, the result is valid for the pointer! If this object is not a pointer it equals GetDataAlignment
size_t Arp::Plc::Commons::Meta::DataInfo::GetVariableSize | ( | ITypeNavigator & | typeNavigator | ) | const |
Determines the size of the pointer or data type
typeNavigator | ITypeNavigator to query additional type information from |
If this object is a pointer, the result is valid for the pointer! If this object is not a pointer it equals GetDataSize
|
inline |
Only for internal using.
true
if this instance relates to the background domain, otherwise false
.
|
inline |
Determines if this instance is empty.
true
if this instance is empty, otherwiese false
.Copy assignment operator.
Move assignment operator
|
overridevirtual |
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.
writer | Reference to RscWriter |
Implements Arp::System::Rsc::Services::IRscSerializable.
|
static |
constant empty object to enable references