8 #include "Arp/System/Rsc/Services/IRscService.hpp" 9 #include "SubscriptionServiceProxyFactory.hpp" 10 #include "Arp/System/Core/delegate.hxx" 11 #include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx" 12 #include "Arp/System/Rsc/Services/IRscWriteEnumerator.hxx" 13 #include "Arp/System/Rsc/Services/RscString.hxx" 14 #include "Arp/System/Rsc/Services/RscVariant.hxx" 15 #include "DataAccessError.hpp" 16 #include "SubscriptionKind.hpp" 17 #include "VariableInfo.hpp" 21 namespace Arp {
namespace Plc {
namespace Gds {
namespace Services
88 using Ptr = std::shared_ptr<ISubscriptionService>;
89 using AddVariablesVariableNamesDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
90 using AddVariablesResultDelegate = delegate<void(IRscReadEnumerator<DataAccessError>&)>;
91 using GetVariableInfosVariableInfoDelegate = delegate<void(IRscReadEnumerator<VariableInfo>&)>;
92 using GetTimeStampedVariableInfosVariableInfoDelegate = delegate<void(IRscReadEnumerator<VariableInfo>&)>;
93 using GetRecordInfosRecordInfosDelegate = delegate<void(IRscReadEnumerator<VariableInfo>&)>;
94 using ReadValuesValuesDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
95 using ReadTimeStampedValuesValuesDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
96 using ReadRecordsRecordsDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
103 static IRscServiceProxyFactory& GetProxyFactory(
void);
221 virtual uint32 CreateRecordingSubscription(
uint16 recordCount) = 0;
294 virtual void AddVariables(
uint32 subscriptionId, AddVariablesVariableNamesDelegate variableNamesDelegate, AddVariablesResultDelegate resultDelegate) = 0;
502 virtual DataAccessError GetVariableInfos(
uint32 subscriptionId, GetVariableInfosVariableInfoDelegate variableInfoDelegate) = 0;
551 virtual DataAccessError GetTimeStampedVariableInfos(
uint32 subscriptionId, GetTimeStampedVariableInfosVariableInfoDelegate variableInfoDelegate) = 0;
608 virtual DataAccessError GetRecordInfos(
uint32 subscriptionId, GetRecordInfosRecordInfosDelegate recordInfosDelegate) = 0;
657 virtual DataAccessError ReadValues(
uint32 subscriptionId, ReadValuesValuesDelegate valuesDelegate) = 0;
704 virtual DataAccessError ReadTimeStampedValues(
uint32 subscriptionId, ReadTimeStampedValuesValuesDelegate valuesDelegate) = 0;
788 inline IRscServiceProxyFactory& ISubscriptionService::GetProxyFactory()
790 return SubscriptionServiceProxyFactory::GetInstance();
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:35
Services for the subscription.
Definition: ISubscriptionService.hpp:85
DataAccessError
This enumeration contains the possible data access errors.
Definition: DataAccessError.hpp:20
Root namespace for the PLCnext API
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:31
std::uint64_t uint64
The Arp unsigned integer type of 8 byte size.
Definition: PrimitiveTypes.hpp:39
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
SubscriptionKind
This enumeration contains the possible kinds of subscriptions.
Definition: SubscriptionKind.hpp:29