8 #include "Arp/System/Rsc/Services/IRscService.hpp" 9 #include "DataLoggerService2ProxyFactory.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 "ErrorCode.hpp" 16 #include "SessionProperty.hpp" 17 #include "SessionState.hpp" 18 #include "TriggerRpnItem.hpp" 19 #include "VariableInfo.hpp" 24 namespace Arp {
namespace Services {
namespace DataLogger {
namespace Services
36 typedef std::shared_ptr<IDataLoggerService2> Ptr;
37 typedef delegate<void(IRscReadEnumerator<RscString<512>>&)> ListSessionNamesResultDelegate;
38 typedef delegate<void(IRscWriteEnumerator<RscString<512>>&)> SetVariablesVariableNamesDelegate;
39 typedef delegate<void(IRscReadEnumerator<ErrorCode>&)> SetVariablesResultDelegate;
40 typedef delegate<void(IRscReadEnumerator<VariableInfo>&)> GetLoggedVariablesInfosDelegate;
41 typedef delegate<void(IRscWriteEnumerator<RscString<512>>&)> ReadVariablesDataVariableNamesDelegate;
42 typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> ReadVariablesDataValuesDelegate;
43 typedef delegate<void(IRscReadEnumerator<RscString<512>>&)> GetRotatedFileNamesFilenamesDelegate;
44 typedef delegate<void(IRscReadEnumerator<RscString<512>>&)> GetSessionNamesResultDelegate;
45 typedef delegate<void(IRscWriteEnumerator<TriggerRpnItem>&)> SetTriggerConditionTriggerConditionDelegate;
54 static IRscServiceProxyFactory& GetProxyFactory(
void);
61 virtual void ListSessionNames(ListSessionNamesResultDelegate resultDelegate) = 0;
103 virtual ErrorCode ConfigureSession(
const RscString<512>& sessionname,
const std::vector<SessionProperty>& properties) = 0;
113 virtual ErrorCode GetSessionConfiguration(
const RscString<512>& sessionname, std::vector<SessionProperty>& properties,
boolean& isPersistent) = 0;
132 virtual void SetVariables(
const RscString<512>& sessionName, SetVariablesVariableNamesDelegate variableNamesDelegate, SetVariablesResultDelegate resultDelegate) = 0;
141 virtual ErrorCode GetLoggedVariables(
const RscString<512>& sessionName, GetLoggedVariablesInfosDelegate infosDelegate) = 0;
189 virtual ErrorCode ReadVariablesData(
const RscString<512>& sessionName,
DateTime startTime,
DateTime endTime, ReadVariablesDataVariableNamesDelegate variableNamesDelegate, ReadVariablesDataValuesDelegate valuesDelegate) = 0;
199 virtual ErrorCode GetRotatedFileNames(
const RscString<512>& sessionname, GetRotatedFileNamesFilenamesDelegate filenamesDelegate) = 0;
206 virtual void GetSessionNames(
const RscString<512>& variablename, GetSessionNamesResultDelegate resultDelegate) = 0;
243 inline IRscServiceProxyFactory& IDataLoggerService2::GetProxyFactory()
245 return DataLoggerService2ProxyFactory::GetInstance();
Namespace for classes and interfaces for the Remote Service Call implementation
virtual ~IDataLoggerService2(void)
Destructs this instance and frees all resouces.
Definition: IDataLoggerService2.hpp:239
The class contains date and time informations.
Definition: DateTime.hpp:43
IDataLoggerService2(void)
Constructs an IDataLoggerService2 instance.
Definition: IDataLoggerService2.hpp:235
The DataLogger provides an interface to log and store variables during firmware runtime.
Definition: IDataLoggerService2.hpp:33
Root namespace for the PLCnext API
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:31
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
ErrorCode
Possible error codes for data-logger rsc services.
Definition: ErrorCode.hpp:20
SessionState
State of a data logger session
Definition: SessionState.hpp:20