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
87 typedef std::shared_ptr<ISubscriptionService> Ptr;
88 typedef delegate<void(IRscWriteEnumerator<RscString<512>>&)> AddVariablesVariableNamesDelegate;
89 typedef delegate<void(IRscReadEnumerator<DataAccessError>&)> AddVariablesResultDelegate;
90 typedef delegate<void(IRscReadEnumerator<VariableInfo>&)> GetVariableInfosVariableInfoDelegate;
91 typedef delegate<void(IRscReadEnumerator<VariableInfo>&)> GetTimeStampedVariableInfosVariableInfoDelegate;
92 typedef delegate<void(IRscReadEnumerator<VariableInfo>&)> GetRecordInfosRecordInfosDelegate;
93 typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> ReadValuesValuesDelegate;
94 typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> ReadTimeStampedValuesValuesDelegate;
95 typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> ReadRecordsRecordsDelegate;
104 static IRscServiceProxyFactory& GetProxyFactory(
void);
228 virtual uint32 CreateRecordingSubscription(
uint16 recordCount) = 0;
301 virtual void AddVariables(
uint32 subscriptionId, AddVariablesVariableNamesDelegate variableNamesDelegate, AddVariablesResultDelegate resultDelegate) = 0;
509 virtual DataAccessError GetVariableInfos(
uint32 subscriptionId, GetVariableInfosVariableInfoDelegate variableInfoDelegate) = 0;
558 virtual DataAccessError GetTimeStampedVariableInfos(
uint32 subscriptionId, GetTimeStampedVariableInfosVariableInfoDelegate variableInfoDelegate) = 0;
615 virtual DataAccessError GetRecordInfos(
uint32 subscriptionId, GetRecordInfosRecordInfosDelegate recordInfosDelegate) = 0;
664 virtual DataAccessError ReadValues(
uint32 subscriptionId, ReadValuesValuesDelegate valuesDelegate) = 0;
711 virtual DataAccessError ReadTimeStampedValues(
uint32 subscriptionId, ReadTimeStampedValuesValuesDelegate valuesDelegate) = 0;
807 inline IRscServiceProxyFactory& ISubscriptionService::GetProxyFactory()
809 return SubscriptionServiceProxyFactory::GetInstance();
Namespace for classes and interfaces for the Remote Service Call implementation
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:35
Services for the subscription.
Definition: ISubscriptionService.hpp:84
ISubscriptionService(void)
Constructs an ISubscriptionService instance.
Definition: ISubscriptionService.hpp:799
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
virtual ~ISubscriptionService(void)
Destructs this instance and frees all resouces.
Definition: ISubscriptionService.hpp:803