PLCnext API Documentation 23.6.0.37
RtEventManagerProxy.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Core/AppDomainSingleton.hxx"
9#include "Arp/System/Commons/Logging.h"
10#include "Arp/Plc/Commons/Esm/IRtEventManager.hpp"
11
12namespace Arp { namespace Plc { namespace Commons { namespace Esm
13{
14
20class RtEventManagerProxy : public IRtEventManager, public AppDomainSingleton<RtEventManagerProxy>, private Loggable<RtEventManagerProxy>
21{
22public: // construction/destruction
31
32public: // 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(const RtEventManagerProxy &arg)=default
Copy constructor.
RtEventManagerProxy & operator=(const RtEventManagerProxy &arg)=default
Assignment operator.
RtEventManagerSharedData::Ptr< RtEvent > Ptr
Shared pointer type of RtEvent.
Definition: RtEvent.hpp:25
Root namespace for the PLCnext API