PLCnext API Documentation  22.9.0.33
RtEventManagerProxy.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Core/AppDomainSingleton.hxx"
9 #include "Arp/System/Commons/Logging.h"
10 #include "Arp/Plc/Commons/Esm/IRtEventManager.hpp"
11 
12 namespace Arp { namespace Plc { namespace Commons { namespace Esm
13 {
14 
20 class RtEventManagerProxy : public IRtEventManager, public AppDomainSingleton<RtEventManagerProxy>, private Loggable<RtEventManagerProxy>
21 {
22 public: // construction/destruction
31 
32 public: // IEventManager operations
36  RtEvent::Ptr GetEvent(const String& name)override;
40  bool HasEvent(const String& name)override;
41 };
42 
44 // inline methods of class RtEventManagerProxy
45 
46 }}}} // end of namespace Arp::Plc::Commons::Esm
This class implements the singleton pattern for singletons with process wide scope.
Definition: AppDomainSingleton.hxx:25
Definition: IRtEventManager.hpp:14
With the rt event manager proxy can be get instances of RtEvent. The instances of RtEvent will be cre...
Definition: RtEventManagerProxy.hpp:21
bool HasEvent(const String &name) override
Checks that a given RtEvent exists.
RtEvent::Ptr GetEvent(const String &name) override
Get the shared pointer of the give RtEvent.
~RtEventManagerProxy(void)
Destructs this instance and frees all resources.
RtEventManagerProxy(void)
Constructs an RtEventManagerProxy instance.
RtEventManagerProxy & operator=(const RtEventManagerProxy &arg)=default
Assignment operator.
RtEventManagerProxy(const RtEventManagerProxy &arg)=default
Copy constructor.
RtEventManagerSharedData::Ptr< RtEvent > Ptr
Shared pointer type of RtEvent.
Definition: RtEvent.hpp:24
Root namespace for the PLCnext API