Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::EventHandlerIdentifier Struct Reference

Defines the event handler identifier type. More...

#include <event_aggregator.h>

Public Member Functions

 EventHandlerIdentifier ()=delete
 
 EventHandlerIdentifier (std::string identifier)
 Initialises a new instance of the EventHandlerIdentifier structure. More...
 
const std::string str () const noexcept
 Gets the event handle identifier string representation. More...
 
auto operator<=> (const EventHandlerIdentifier &other) const =default
 Compare this instance with other EventHandlerIdentifier instance. More...
 

Detailed Description

Defines the event handler identifier type.

Constructor & Destructor Documentation

◆ EventHandlerIdentifier() [1/2]

hgps::EventHandlerIdentifier::EventHandlerIdentifier ( )
delete

◆ EventHandlerIdentifier() [2/2]

hgps::EventHandlerIdentifier::EventHandlerIdentifier ( std::string  identifier)
inline

Initialises a new instance of the EventHandlerIdentifier structure.

Parameters
identifierThe event unique identifier
Exceptions
std::invalid_argumentfor empty event handler identifier

Member Function Documentation

◆ operator<=>()

auto hgps::EventHandlerIdentifier::operator<=> ( const EventHandlerIdentifier other) const
default

Compare this instance with other EventHandlerIdentifier instance.

Parameters
otherThe other instance to compare
Returns
The comparison operation result

◆ str()

const std::string hgps::EventHandlerIdentifier::str ( ) const
inlinenoexcept

Gets the event handle identifier string representation.

Returns
The identifier string representation

The documentation for this struct was generated from the following file: