PLCnext API Documentation 25.0.2.69
|
Provides detailed informations for the respective data object. More...
#include <DataInfo.hpp>
Public Member Functions | |
DataInfo (void)=default | |
Constructs an DataInfo instance. | |
DataInfo (const DataInfo &arg)=default | |
Copy constructor. | |
DataInfo (DataInfo &&arg)=default | |
Move constructor. | |
DataInfo (const DataTag &dataTag) | |
Constructs an DataInfo instance. | |
DataInfo (const DataTag &dataTag, const ArrayDimension &arrayDimension) | |
Constructs an DataInfo instance. | |
DataInfo (const DataTag &dataTag, const ArrayDimensions &arrayDimensions) | |
Constructs an DataInfo instance. | |
DataInfo & | operator= (const DataInfo &arg)=default |
Copy assignment operator. | |
DataInfo & | operator= (DataInfo &&arg)=default |
Move assignment operator | |
~DataInfo (void)=default | |
Destructs this instance and frees all resources. | |
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 |
DataTag & | GetDataTag (void) |
Gets the DataTag . More... | |
const DataTag & | GetDataTag (void) const |
TypeIdentifier & | GetTypeIdentifier (void) |
Get type name and namspace. More... | |
const TypeIdentifier & | GetTypeIdentifier (void) const |
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 |
Deprecated! 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 |
void | Deserialize (RscReader &reader) |
![]() | |
RscSerializable (void)=default | |
The default constructor. | |
Static Public Member Functions | |
static size_t | GetFieldCount (void) |
Static Public Attributes | |
static const DataInfo | Empty |
constant empty object to enable references | |
Friends | |
class | Arp::Plc::Meta::Internal::DataBrowser |
Provides detailed informations for the respective data object.
ArrayDimensions & Arp::Plc::Commons::Meta::DataInfo::GetArrayDimensions | ( | void | ) |
List of array dimensions information
const ArrayDimensions & Arp::Plc::Commons::Meta::DataInfo::GetArrayDimensions | ( | void | ) | const |
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!
const DataTag & Arp::Plc::Commons::Meta::DataInfo::GetDataTag | ( | void | ) |
const DataTypeEnum & Arp::Plc::Commons::Meta::DataInfo::GetDataType | ( | void | ) |
The data type of this instance.
const TypeIdentifier & Arp::Plc::Commons::Meta::DataInfo::GetTypeIdentifier | ( | void | ) |
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 |
Deprecated! 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
bool Arp::Plc::Commons::Meta::DataInfo::IsBackgroundDomain | ( | void | ) | const |
Only for internal using.
true
if this instance relates to the background domain, otherwise false
.bool Arp::Plc::Commons::Meta::DataInfo::IsEmpty | ( | void | ) | const |
Determines if this instance is empty.
true
if this instance is empty, otherwiese false
.