8#include "Arp/Plc/Gds/Services/DataAccessError.hpp"
9#include "Arp/Plc/Gds/Services/SubscriptionKind.hpp"
10#include "Arp/Plc/Gds/Services/SubscriptionServiceProxyFactory.hpp"
11#include "Arp/Plc/Gds/Services/VariableInfo.hpp"
12#include "Arp/System/Core/delegate.hxx"
13#include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx"
14#include "Arp/System/Rsc/Services/IRscService.hpp"
15#include "Arp/System/Rsc/Services/IRscWriteEnumerator.hxx"
16#include "Arp/System/Rsc/Services/RscString.hxx"
17#include "Arp/System/Rsc/Services/RscVariant.hxx"
21namespace Arp {
namespace Plc {
namespace Gds {
namespace Services
92 using Ptr = std::shared_ptr<ISubscriptionService>;
107 static IRscServiceProxyFactory& GetProxyFactory(
void);
298 virtual void AddVariables(
uint32 subscriptionId, AddVariablesVariableNamesDelegate variableNamesDelegate, AddVariablesResultDelegate resultDelegate) = 0;
752inline IRscServiceProxyFactory& ISubscriptionService::GetProxyFactory()
754 return SubscriptionServiceProxyFactory::GetInstance();
Services for the subscription.
Definition: ISubscriptionService.hpp:90
virtual DataAccessError DeleteSubscription(uint32 subscriptionId)=0
Deletes the subscription.
virtual DataAccessError Subscribe(uint32 subscriptionId, uint64 sampleRate)=0
Subscribes the subscription with the given id.
virtual uint32 CreateSubscription(SubscriptionKind kind)=0
Creates a subscription of the given Arp.Plc.Gds.Services.SubscriptionKind.
virtual DataAccessError RemoveVariable(uint32 subscriptionId, const RscString< 512 > &variableName)=0
Removes the variable with the specific variable name from the subscription.
ISubscriptionService(void)=default
Constructs an ISubscriptionService instance.
virtual DataAccessError GetVariableInfos(uint32 subscriptionId, GetVariableInfosVariableInfoDelegate variableInfoDelegate)=0
Get the subscribed variable information of the subscription.
virtual DataAccessError ReadValues(uint32 subscriptionId, ReadValuesValuesDelegate valuesDelegate)=0
Read the data from the subscription with the given id.
virtual DataAccessError GetTimeStampedVariableInfos(uint32 subscriptionId, GetTimeStampedVariableInfosVariableInfoDelegate variableInfoDelegate)=0
Get the subscribed variable information including information of timestamps of the subscription.
virtual uint32 CreateRecordingSubscription(uint16 recordCount)=0
Creates a subscription of Arp.Plc.Gds.Services.SubscriptionKind.Recording.
virtual DataAccessError AddVariable(uint32 subscriptionId, const RscString< 512 > &variableName)=0
Extends the subscription with the given id by inserting the given variable name
virtual DataAccessError Unsubscribe(uint32 subscriptionId)=0
Unsubscribes the subscription with the given id.
virtual DataAccessError GetRecordInfos(uint32 subscriptionId, GetRecordInfosRecordInfosDelegate recordInfosDelegate)=0
Get the subscribed variable information as a record of the subscription.
virtual DataAccessError ReadRecords(uint32 subscriptionId, uint16 count, ReadRecordsRecordsDelegate recordsDelegate)=0
Read the data including timestamps from the subscription with the given id separated in task records.
virtual void AddVariables(uint32 subscriptionId, AddVariablesVariableNamesDelegate variableNamesDelegate, AddVariablesResultDelegate resultDelegate)=0
Extends the subscription with the given id by inserting a range of new variables.
virtual DataAccessError Resubscribe(uint32 subscriptionId, uint64 sampleRate)=0
Resubscribes the subscription with the given id.
virtual DataAccessError ReadTimeStampedValues(uint32 subscriptionId, ReadTimeStampedValuesValuesDelegate valuesDelegate)=0
Read the data including timestamps from the subscription with the given id.
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscReadEnumerator.hxx:21
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscWriteEnumerator.hxx:23
std::uint64_t uint64
The Arp unsigned integer type of 8 byte size.
Definition: PrimitiveTypes.hpp:40
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:32
DataAccessError
This enumeration contains the possible data access errors.
Definition: DataAccessError.hpp:19
SubscriptionKind
This enumeration contains the possible kinds of subscriptions.
Definition: SubscriptionKind.hpp:28
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API