2022-06-11 23:01:27 +00:00
|
|
|
/***
|
|
|
|
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
|
2022-06-11 23:01:27 +00:00
|
|
|
* such task to the operating system, if possible.
|
|
|
|
*/
|
|
|
|
struct IIOPipeProcessor
|
|
|
|
{
|
|
|
|
/**
|
2022-06-14 01:14:51 +00:00
|
|
|
* @brief
|
|
|
|
* @param request
|
|
|
|
* @return
|
2022-06-11 23:01:27 +00:00
|
|
|
*/
|
2022-06-14 01:14:51 +00:00
|
|
|
virtual AuSPtr<IIOPipeWork> NewBasicPipe(const IOPipeRequestBasic &request) = 0;
|
2022-06-11 23:01:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief
|
2022-06-21 04:49:36 +00:00
|
|
|
* @param request
|
|
|
|
* @return
|
2022-06-11 23:01:27 +00:00
|
|
|
*/
|
2022-06-14 01:14:51 +00:00
|
|
|
virtual AuSPtr<IIOPipeWork> NewAIOPipe(const IOPipeRequestAIO &request) = 0;
|
2022-06-11 23:01:27 +00:00
|
|
|
};
|
|
|
|
}
|