Chi-Tech
chi::SystemWideEventPublisher Class Reference

#include <SystemWideEventPublisher.h>

Inheritance diagram for chi::SystemWideEventPublisher:
chi::EventPublisher

Public Member Functions

 SystemWideEventPublisher (const SystemWideEventPublisher &)=delete
 
SystemWideEventPublisher operator= (const SystemWideEventPublisher &)=delete
 
void PublishEvent (const chi::Event &event) override
 
- Public Member Functions inherited from chi::EventPublisher
virtual void PublishEvent (const chi::Event &event)
 
void AddSubscriber (std::shared_ptr< chi::EventSubscriber > &subscriber_sptr)
 
virtual ~EventPublisher ()=default
 

Static Public Member Functions

static SystemWideEventPublisherGetInstance ()
 

Private Member Functions

 SystemWideEventPublisher ()
 

Additional Inherited Members

- Protected Member Functions inherited from chi::EventPublisher
 EventPublisher (const std::string &name)
 
- Protected Attributes inherited from chi::EventPublisher
const std::string publisher_name_
 
std::vector< std::weak_ptr< chi::EventSubscriber > > subscribers_
 

Detailed Description

Definition at line 9 of file SystemWideEventPublisher.h.

Constructor & Destructor Documentation

◆ SystemWideEventPublisher() [1/2]

chi::SystemWideEventPublisher::SystemWideEventPublisher ( const SystemWideEventPublisher )
delete

◆ SystemWideEventPublisher() [2/2]

chi::SystemWideEventPublisher::SystemWideEventPublisher ( )
private

Definition at line 6 of file SystemWideEventPublisher.cc.

Member Function Documentation

◆ GetInstance()

SystemWideEventPublisher & chi::SystemWideEventPublisher::GetInstance ( )
static

Definition at line 11 of file SystemWideEventPublisher.cc.

◆ operator=()

SystemWideEventPublisher chi::SystemWideEventPublisher::operator= ( const SystemWideEventPublisher )
delete

◆ PublishEvent()

void chi::SystemWideEventPublisher::PublishEvent ( const chi::Event event)
overridevirtual

Publish the given event.

Reimplemented from chi::EventPublisher.

Definition at line 18 of file SystemWideEventPublisher.cc.


The documentation for this class was generated from the following files: