DNA Calib 1.1
Project brief
Public Types | Public Member Functions | Static Public Attributes | List of all members
trio::BoundedIOStream Class Reference

#include <Stream.h>

Inheritance diagram for trio::BoundedIOStream:
Inheritance graph
Collaboration diagram for trio::BoundedIOStream:
Collaboration graph

Public Types

using AccessMode = trio::AccessMode
 
using OpenMode = trio::OpenMode
 

Public Member Functions

virtual ~BoundedIOStream ()
 
- Public Member Functions inherited from trio::Openable
virtual void open ()=0
 Open access to the stream. More...
 
- Public Member Functions inherited from trio::Closeable
virtual void close ()=0
 Close access to the stream. More...
 
- Public Member Functions inherited from trio::Readable
virtual std::size_t read (char *destination, std::size_t size)=0
 Read bytes from stream into the given buffer. More...
 
virtual std::size_t read (Writable *destination, std::size_t size)=0
 Read bytes from this stream into the given stream. More...
 
- Public Member Functions inherited from trio::Writable
virtual std::size_t write (const char *source, std::size_t size)=0
 Writes bytes from the given buffer to the stream. More...
 
virtual std::size_t write (Readable *source, std::size_t size)=0
 Writes bytes from the given stream to this stream. More...
 
- Public Member Functions inherited from trio::Seekable
virtual std::uint64_t tell ()=0
 Get the current position in the stream. More...
 
virtual void seek (std::uint64_t position)=0
 Set the current position in the stream. More...
 
- Public Member Functions inherited from trio::Bounded
virtual std::uint64_t size ()=0
 Obtain size of stream in bytes. More...
 

Static Public Attributes

static const sc::StatusCode OpenError {100, "Error opening file"}
 
static const sc::StatusCode ReadError {101, "Error reading file"}
 
static const sc::StatusCode WriteError {102, "Error writing file"}
 
static const sc::StatusCode AlreadyOpenError {103, "File already open"}
 
static const sc::StatusCode SeekError {104, "Error seeking file"}
 

Additional Inherited Members

- Protected Member Functions inherited from trio::Controllable
virtual ~Controllable ()
 
- Protected Member Functions inherited from trio::Openable
virtual ~Openable ()
 
- Protected Member Functions inherited from trio::Closeable
virtual ~Closeable ()
 
- Protected Member Functions inherited from trio::Readable
virtual ~Readable ()
 
- Protected Member Functions inherited from trio::Writable
virtual ~Writable ()
 
- Protected Member Functions inherited from trio::Seekable
virtual ~Seekable ()
 
- Protected Member Functions inherited from trio::Bounded
virtual ~Bounded ()
 

Member Typedef Documentation

◆ AccessMode

◆ OpenMode

Constructor & Destructor Documentation

◆ ~BoundedIOStream()

trio::BoundedIOStream::~BoundedIOStream ( )
virtualdefault

Member Data Documentation

◆ AlreadyOpenError

const sc::StatusCode trio::BoundedIOStream::AlreadyOpenError {103, "File already open"}
static

◆ OpenError

const sc::StatusCode trio::BoundedIOStream::OpenError {100, "Error opening file"}
static

◆ ReadError

const sc::StatusCode trio::BoundedIOStream::ReadError {101, "Error reading file"}
static

◆ SeekError

const sc::StatusCode trio::BoundedIOStream::SeekError {104, "Error seeking file"}
static

◆ WriteError

const sc::StatusCode trio::BoundedIOStream::WriteError {102, "Error writing file"}
static

The documentation for this class was generated from the following files: