nod/include/IFileIO.hpp

35 lines
676 B
C++
Raw Normal View History

2015-06-26 19:30:03 +00:00
#ifndef __NOD_IFILE_IO__
#define __NOD_IFILE_IO__
#include <memory>
#include <stdlib.h>
#include "IDiscIO.hpp"
namespace NOD
{
class IFileIO
{
public:
virtual ~IFileIO() {}
virtual size_t size()=0;
2015-06-28 05:43:53 +00:00
struct IWriteStream
2015-06-26 19:30:03 +00:00
{
virtual ~IWriteStream() {}
virtual size_t copyFromDisc(IDiscIO::IReadStream& discio, size_t length)=0;
};
virtual std::unique_ptr<IWriteStream> beginWriteStream();
2015-06-28 05:43:53 +00:00
struct IReadStream
2015-06-26 19:30:03 +00:00
{
virtual ~IReadStream() {}
virtual size_t copyToDisc(IDiscIO::IWriteStream& discio, size_t length)=0;
};
virtual std::unique_ptr<IReadStream> beginReadStream();
};
}
#endif // __NOD_IFILE_IO__