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 using Ptr = std::shared_ptr<IDataLoggerService2>;
37 using ListSessionNamesResultDelegate = delegate<void(IRscReadEnumerator<RscString<512>>&)>;
38 using SetVariablesVariableNamesDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
39 using SetVariablesResultDelegate = delegate<void(IRscReadEnumerator<ErrorCode>&)>;
40 using GetLoggedVariablesInfosDelegate = delegate<void(IRscReadEnumerator<VariableInfo>&)>;
41 using ReadVariablesDataVariableNamesDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
42 using ReadVariablesDataValuesDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
43 using GetRotatedFileNamesFilenamesDelegate = delegate<void(IRscReadEnumerator<RscString<512>>&)>;
44 using GetSessionNamesResultDelegate = delegate<void(IRscReadEnumerator<RscString<512>>&)>;
45 using SetTriggerConditionTriggerConditionDelegate = delegate<void(IRscWriteEnumerator<TriggerRpnItem>&)>;
52 static IRscServiceProxyFactory& GetProxyFactory(
void);
59 virtual void ListSessionNames(ListSessionNamesResultDelegate resultDelegate) = 0;
101 virtual ErrorCode ConfigureSession(
const RscString<512>& sessionname,
const std::vector<SessionProperty>& properties) = 0;
111 virtual ErrorCode GetSessionConfiguration(
const RscString<512>& sessionname, std::vector<SessionProperty>& properties,
boolean& isPersistent) = 0;
130 virtual void SetVariables(
const RscString<512>& sessionName, SetVariablesVariableNamesDelegate variableNamesDelegate, SetVariablesResultDelegate resultDelegate) = 0;
139 virtual ErrorCode GetLoggedVariables(
const RscString<512>& sessionName, GetLoggedVariablesInfosDelegate infosDelegate) = 0;
187 virtual ErrorCode ReadVariablesData(
const RscString<512>& sessionName,
DateTime startTime,
DateTime endTime, ReadVariablesDataVariableNamesDelegate variableNamesDelegate, ReadVariablesDataValuesDelegate valuesDelegate) = 0;
197 virtual ErrorCode GetRotatedFileNames(
const RscString<512>& sessionname, GetRotatedFileNamesFilenamesDelegate filenamesDelegate) = 0;
204 virtual void GetSessionNames(
const RscString<512>& variablename, GetSessionNamesResultDelegate resultDelegate) = 0;
229 inline IRscServiceProxyFactory& IDataLoggerService2::GetProxyFactory()
231 return DataLoggerService2ProxyFactory::GetInstance();
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
The class contains date and time informations.
Definition: DateTime.hpp:44
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