PLCnext API Documentation 23.6.0.37
INotificationLoggerService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include <vector>
9#include "Arp/Services/NotificationLogger/Services/NotificationFilter.hpp"
10#include "Arp/Services/NotificationLogger/Services/NotificationLoggerServiceProxyFactory.hpp"
11#include "Arp/Services/NotificationLogger/Services/SortOrder.hpp"
12#include "Arp/Services/NotificationLogger/Services/StoredNotification.hpp"
13#include "Arp/System/Nm/Services/Notification.hpp"
14#include "Arp/System/Rsc/Services/IRscService.hpp"
15#include "Arp/System/Rsc/Services/RscString.hxx"
16
17// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY INotificationLoggerService.cs
18
19namespace Arp { namespace Services { namespace NotificationLogger { namespace Services
20{
21
22using namespace Arp;
23using namespace Arp::System::Rsc::Services;
24
33{
34public: // typedefs
35 using Ptr = std::shared_ptr<INotificationLoggerService>;
37
38public: // construction/destruction
41
42public: // static policy operation
43 static IRscServiceProxyFactory& GetProxyFactory(void);
44
45public: // abstract operations
55 virtual std::vector<StoredNotification> QueryStoredNotifications(const std::vector<RscString<512>>& archives, const NotificationFilter& filter, int32 limit, SortOrder sortOrder, const RscString<512>& language) = 0;
56
66 virtual std::vector<Notification> QueryNotifications(const std::vector<RscString<512>>& archives, const NotificationFilter& filter, int32 limit, SortOrder sortOrder, const RscString<512>& language) = 0;
67
74 virtual int32 DeleteNotifications(const std::vector<RscString<512>>& archives, const NotificationFilter& filter) = 0;
75
80 virtual std::vector<RscString<512>> ListArchives() = 0;
81
87 virtual std::vector<RscString<512>> GetArchiveConfiguration(const RscString<512>& archive) = 0;
88
95 virtual boolean SetArchiveConfiguration(const RscString<512>& archive, const std::vector<RscString<512>>& xmlConfiguration) = 0;
96
102 virtual boolean ResetArchiveConfigurationToFiles(const RscString<512>& archive) = 0;
103};
104
106// inline methods of class INotificationLoggerService
107inline IRscServiceProxyFactory& INotificationLoggerService::GetProxyFactory()
108{
109 return NotificationLoggerServiceProxyFactory::GetInstance();
110}
111
112}}}} // end of namespace Arp::Services::NotificationLogger::Services
The NotificationLogger stores Notifications and provides an interface to retrieve them.
Definition: INotificationLoggerService.hpp:33
virtual std::vector< Notification > QueryNotifications(const std::vector< RscString< 512 > > &archives, const NotificationFilter &filter, int32 limit, SortOrder sortOrder, const RscString< 512 > &language)=0
Queries notifications matching the supplied filter from the mentioned archives and returns them as No...
virtual std::vector< StoredNotification > QueryStoredNotifications(const std::vector< RscString< 512 > > &archives, const NotificationFilter &filter, int32 limit, SortOrder sortOrder, const RscString< 512 > &language)=0
Queries notifications matching the supplied filter from the mentioned archives and returns them as St...
virtual std::vector< RscString< 512 > > ListArchives()=0
Queries a list of archives
virtual std::vector< RscString< 512 > > GetArchiveConfiguration(const RscString< 512 > &archive)=0
Query the configuration as XML for the given archive
virtual boolean ResetArchiveConfigurationToFiles(const RscString< 512 > &archive)=0
Resets the configuration of the given archive to the configuration files. All changes made by RSC are...
virtual boolean SetArchiveConfiguration(const RscString< 512 > &archive, const std::vector< RscString< 512 > > &xmlConfiguration)=0
Set the configuration of the given archive
virtual int32 DeleteNotifications(const std::vector< RscString< 512 > > &archives, const NotificationFilter &filter)=0
Remove notifications mathing the filter from the given archives
INotificationLoggerService(void)=default
Constructs an INotificationLoggerService instance.
Filter specification to match notification on query or delete
Definition: NotificationFilter.hpp:25
Contains meta data and paylod of a Notification
Definition: Notification.hpp:22
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
std::int32_t int32
The Arp integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:38
SortOrder
Definition how to sort the queried notifications
Definition: SortOrder.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API