PLCnext API Documentation 26.0.1.58
RscServiceAuthorizationGuard.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8
9namespace Arp::Base::Rsc::Commons::Services
10{
11
15{
16public: // construction
18
19 // canonical construction/destruction/assignment
22 RscServiceAuthorizationGuard& operator=(const RscServiceAuthorizationGuard& arg) = delete;
23 RscServiceAuthorizationGuard& operator=(RscServiceAuthorizationGuard&& arg)noexcept = delete;
25
26private: // fields
27 bool serviceCallWasAuthorizedYet = false;
28};
29
31// inline methods of class RscServiceAuthorizationGuard
32
33} // end of namespace Arp::Base::Rsc::Commons::Services
This class monitors if the service call was authorized yet by an outer service call.
Definition: RscServiceAuthorizationGuard.hpp:15