AuroraRuntime/Source/IO/AuIOSimpleEventListener.cpp
Reece 4e6f116925 [*] Refactor
[+] IProcessSectionView::GetStart
[+] IProcessSectionView::GetEnd
2022-12-17 20:14:19 +00:00

63 lines
1.2 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIOSimpleEventListener.cpp
Date: 2022-6-22
Author: Reece
***/
#include <Source/RuntimeInternal.hpp>
#include <Aurora/IO/IOExperimental.hpp>
#include "AuIOSimpleEventListener.hpp"
namespace Aurora::IO
{
IOSimpleEventListener::IOSimpleEventListener(const AuSPtr<IIOSimpleEventListener> &pParent) : pParent(pParent)
{
}
void IOSimpleEventListener::Tick_RunOnTick()
{
}
void IOSimpleEventListener::Tick_OtherIOEvent()
{
}
void IOSimpleEventListener::Tick_SelfIOEvent()
{
}
void IOSimpleEventListener::Tick_Any()
{
this->pParent->OnIOTick();
}
void IOSimpleEventListener::Tick_FrameEpilogue()
{
}
void IOSimpleEventListener::OnFailureCompletion()
{
this->pParent->OnIOFailure();
}
void IOSimpleEventListener::OnNominalCompletion()
{
this->pParent->OnIOComplete();
}
AuSPtr<IIOEventListener> DesimplifyIOEventListenerAdapter(const AuSPtr<IIOSimpleEventListener> &pInterface)
{
if (!pInterface)
{
return {};
}
return AuMakeShared<IOSimpleEventListener>(pInterface);
}
}