AuroraRuntime/Include/Aurora/IO/IIOPipeProcessor.hpp

33 lines
926 B
C++
Raw Normal View History

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IIOPipeProcessor.hpp
Date: 2022-6-6
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
/**
* @brief Different operating systems implement high level stream copy abstraction between network, file, and/or file descriptors.
2022-06-14 01:14:51 +00:00
* This interface connects arbitrary stream objects to one another by piping data under an iprocessor tick; or delegates
* such task to the operating system, if possible.
*/
struct IIOPipeProcessor
{
/**
2022-06-14 01:14:51 +00:00
* @brief
* @param request
* @return
*/
2022-06-14 01:14:51 +00:00
virtual AuSPtr<IIOPipeWork> NewBasicPipe(const IOPipeRequestBasic &request) = 0;
/**
* @brief
* @param request
* @return
*/
2022-06-14 01:14:51 +00:00
virtual AuSPtr<IIOPipeWork> NewAIOPipe(const IOPipeRequestAIO &request) = 0;
};
}