AuroraRuntime/Include/Aurora/IO/IIOSimpleEventListener.hpp

22 lines
672 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IIOSimpleEventListener.hpp
Date: 2022-6-22
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
AUKN_INTERFACE(IIOSimpleEventListener,
AUI_METHOD(void, OnIOTick, ()),
AUI_METHOD(void, OnIOFailure, ()),
AUI_METHOD(void, OnIOComplete, ())
);
/**
* @brief Creates an adapter to convert an object that implements the simple listener interface to the annoying internal listener interface (7 callbacks)
*/
AUKN_SYM AuSPtr<IIOEventListener> DesimplifyIOEventListenerAdapter(const AuSPtr<IIOSimpleEventListener> &pInterface);
}