PLCnext API Documentation  21.0.0.35466
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 
16 class RtEventManagerProxy : public IRtEventManager, public AppDomainSingleton<RtEventManagerProxy>, private Loggable<RtEventManagerProxy>
17 {
18 public: // typedefs
19 
20 public: // construction/destruction
22  RtEventManagerProxy(void);
24  RtEventManagerProxy(const RtEventManagerProxy& arg) = default;
26  RtEventManagerProxy& operator=(const RtEventManagerProxy& arg) = default;
29 
30 public: // operators
31 
32 public: // static operations
33 
34 public: // setter/getter operations
35 
36 public: // operations
37 
38 public: // IEventManager operations
42  RtEvent::Ptr GetEvent(const String& name)override;
46  bool HasEvent(const String& name)override;
47 
48 protected: // operations
49 
50 private: // static methods
51 
52 private: // methods
53 
54 private: // fields
55 
56 private: // static fields
57 
58 };
59 
61 // inline methods of class RtEventManagerProxy
62 
63 }}}} // end of namespace Arp::Plc::Commons::Esm
~RtEventManagerProxy(void)
Destructs this instance and frees all resources.
Definition: IRtEventManager.hpp:13
RtEventManagerProxy(void)
Constructs an RtEventManagerProxy instance.
bool HasEvent(const String &name) override
Checks that a given event exists.
RtEventManagerSharedData::Ptr< RtEvent > Ptr
Shared pointer type of RtEvent.
Definition: RtEvent.hpp:20
Root namespace for the PLCnext API
This class implements the singleton pattern for singletons with process wide scope.
Definition: AppDomainSingleton.hxx:24
This class implements a event manager proxy to get instances of RtEvent.
Definition: RtEventManagerProxy.hpp:16
RtEventManagerProxy & operator=(const RtEventManagerProxy &arg)=default
Assignment operator.
RtEvent::Ptr GetEvent(const String &name) override
Get shared pointer of the give event.