PLCnext API Documentation 25.0.2.69
StructInfo.hxx
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Rsc/Commons/Services/RscConcepts.hpp"
9
10namespace Arp::Base::Rsc::Commons::Services
11{
12
14// Meta class StructInfo
15
24template<class T, bool IsRscSerializableStruct = RscSerializableStruct<T>>
26{
27 size_t FieldCount = 0;
28};
29
39template<class T>
40struct StructInfo<T, true>
41{
42 size_t FieldCount = T::GetFieldCount();
43};
44
45} // end of namespace Arp::Base::Rsc::Commons::Services
46
This class provides the number of fields of a concrete struct. This class is specialized for concrete...
Definition: StructInfo.hxx:26
size_t FieldCount
Specifies the field count of a struct.
Definition: StructInfo.hxx:27