2022-06-21 04:49:36 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: IIOPipeWork.hpp
|
|
|
|
Date: 2022-6-20
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::IO
|
|
|
|
{
|
|
|
|
struct IIOPipeWork
|
|
|
|
{
|
|
|
|
/**
|
2022-12-06 22:53:37 +00:00
|
|
|
* @brief begins the operation
|
2022-06-21 04:49:36 +00:00
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual bool Start() = 0;
|
|
|
|
|
|
|
|
/**
|
2022-12-06 22:53:37 +00:00
|
|
|
* @brief terminates the operation
|
2022-06-21 04:49:36 +00:00
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual bool End() = 0;
|
2022-12-06 22:53:37 +00:00
|
|
|
|
|
|
|
/**
|
2022-12-08 19:34:15 +00:00
|
|
|
* @brief time from the au epoch. see: AuTime::.
|
2022-12-06 22:53:37 +00:00
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual AuInt64 GetStartTickMS() = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief time from the au epoch. see: AuTime::.
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual AuInt64 GetLastTickMS() = 0;
|
|
|
|
|
|
|
|
/**
|
2022-12-08 19:34:15 +00:00
|
|
|
* @brief quick approximation of normalized bytes / second
|
2022-12-06 22:53:37 +00:00
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual double GetPredictedThroughput() = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief bytes written to the stream (this will be one frame behind in the callback routine, if in on buffered data mode)
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual AuUInt64 GetBytesProcessed() = 0;
|
2023-04-25 05:36:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief bytes read written to the destination. can be used under any callback to determine interframe progress
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual AuUInt64 GetBytesProcessedInterframe() = 0;
|
2022-06-21 04:49:36 +00:00
|
|
|
};
|
|
|
|
}
|