PLCnext API Documentation 23.6.0.37
IArStatisticService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include <vector>
9#include "Arp/Io/ProfinetStack/Controller/Services/ArStatisticServiceProxyFactory.hpp"
10#include "Arp/Io/ProfinetStack/Controller/Services/ArStatisticValue.hpp"
11#include "Arp/System/Rsc/Services/IRscService.hpp"
12#include "Arp/System/Rsc/Services/RscString.hxx"
13
14// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IArStatisticService.cs
15
16namespace Arp { namespace Io { namespace ProfinetStack { namespace Controller { namespace Services
17{
18
19using namespace Arp;
20using namespace Arp::System::Rsc::Services;
21
30{
31public: // typedefs
32 using Ptr = std::shared_ptr<IArStatisticService>;
33
34public: // construction/destruction
36 IArStatisticService(void) = default;
37
38public: // static policy operation
39 static IRscServiceProxyFactory& GetProxyFactory(void);
40
41public: // abstract operations
48 virtual ArStatisticValue Read(const RscString<256>& stationName) = 0;
49
54 virtual std::vector<ArStatisticValue> ReadChanges() = 0;
55
61
65 virtual void Reset() = 0;
66};
67
69// inline methods of class IArStatisticService
70inline IRscServiceProxyFactory& IArStatisticService::GetProxyFactory()
71{
72 return ArStatisticServiceProxyFactory::GetInstance();
73}
74
75}}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Contains statistic values of one application relation
Definition: ArStatisticValue.hpp:25
This services provides statistic values for Profinet application relations (AR)
Definition: IArStatisticService.hpp:30
virtual ArStatisticValue Read(const RscString< 256 > &stationName)=0
Returns statistic values of one profinet device referenced by given station name. If the station name...
virtual std::vector< ArStatisticValue > ReadChanges()=0
Returns statistic values of all profinet devices with changed values since last call of ReadChanges o...
virtual uint32 ReadMissedFramesGlobal()=0
Returns the sum of all missed frames over all configured profinet devices.
virtual void Reset()=0
Resets missed frames global to 0. Also resets connection count and missed frames total of all configu...
IArStatisticService(void)=default
Constructs an IArStatisticService instance.
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API