AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
IO streams

Input-output streams. More...

Detailed Description#

Classes#

class  AByteBufferInputStream
 Converts a AByteBuffer to an IInputStream. More...
 
class  AConcatInputStream
 Concatenates multiple sequential input streams into one. More...
 
class  ADynamicPipe
 An asynchronous buffer that converts an IInputStream to IOutputStream (and otherwise). More...
 
class  AEOFException
 Thrown when stream has reached end (end of file). More...
 
class  AFileInputStream
 Opens a file for a binary read. More...
 
class  AFileOutputStream
 Opens a file for a binary write. More...
 
class  AIOException
 Exception caused by input/output stream. More...
 
class  ALimitedInputStream
 Input stream that will pass through a maximum of a certain number of bytes - then it will return eof (end of stream) More...
 
class  APath
 An add-on to AString with functions for working with the path. More...
 
struct  APathOwner
 RAII-style file owner for storing temporary data on disk. More...
 
class  APipe
 A thread safe buffer that converts an IInputStream to IOutputStream (and otherwise). More...
 
class  ARandomInputStream
 An input stream that generates random bytes. More...
 
class  AStdIStream
 std::istream implementation wrapping AUI's IInputStream. More...
 
class  AStringStream
 A buffer input/output stream based on std::string. More...
 
class  AStrongByteBufferInputStream
 Input stream based on AByteBuffer with memory control, clears byte buffer on destruction. More...
 
class  IInputStream
 Represents an input stream. More...
 
class  InputStreamAsync
 Converts a basic input stream to an asynchronous input stream so it's read in a separate thread. More...
 
class  ISeekableInputStream
 Represents an input stream with updating reading position. More...
 
struct  aui::archive::ExtractTo
 Default extracter for aui::zlib::readZip. More...
 

Function Documentation#

◆ AUI_ENUM_FLAG() [1/3]#

AUI_ENUM_FLAG ( AFileAccess )

File is Readable flag.

File is Writeable flag.

File is eXecutable flag.

◆ AUI_ENUM_FLAG() [2/3]#

AUI_ENUM_FLAG ( AFileListFlags )

Some file systems include ". " and " .. " to the list of files. In AUI, these elements are skipped by default. This flag overrides this behaviour.

Include folders to the list of files.

Include regular files to the list of files.

Walk thru the folder recursively (i.e. include the contents of child folders). The paths of child files are set relative to the folder where the listDir() is called.

  • /home
  • /home/user
  • /home/user/file1.txt
  • /home/user/file2.txt
  • /home/other
  • /home/other/code1.cpp
  • /home/other/code2.cpp

◆ AUI_ENUM_FLAG() [3/3]#

AUI_ENUM_FLAG ( APathFinder )

In addition to specified paths, use the system paths (PATH environment variable)

Do scan recursively (slow)

Return only one file

◆ read()#

void API_AUI_CORE aui::archive::zip::read ( aui::no_escape< ISeekableInputStream > stream,
const std::function< void(const FileEntry &)> & visitor )
Parameters
streamZIP file stream.
visitorzip contents visitor.

ZIP file names are passed to callback. Optionally, the callback might request file contents by FileEntry::open().

See also
aui::zlib::ExtractTo