|
UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
|
Simple event type with no associated payload. More...
#include <EngineEvent.h>
Public Member Functions | |
| NoPayloadEvent (uint32_t c) | |
| Constructor that stores the event type code. | |
| uint32_t | getType () const override |
| Get the event type code. | |
| virtual const void * | getPayload () const override |
| Get the payload (always nullptr for NoPayloadEvent). | |
Public Member Functions inherited from UCILoader::EngineEvent | |
| virtual | ~EngineEvent () |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual uint32_t | getType () const =0 |
| Get the type code of this event. | |
| virtual const void * | getPayload () const =0 |
| Get the payload data associated with this event. | |
Simple event type with no associated payload.
NoPayloadEvent is used for events that don't carry any data beyond their type code. Instances are typically created by factory functions in NamedEngineEvents namespace.
getPayload() always returns nullptr for this event type.
|
inline |
Constructor that stores the event type code.
| c | The event type code |
|
inlineoverridevirtual |
Get the payload (always nullptr for NoPayloadEvent).
Implements UCILoader::EngineEvent.
|
inlineoverridevirtual |