C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::async::file Class Reference

Bundles factories for asynchronous sources and sinks that operate on files. More...

#include <file.hpp>

Public Member Functions

 file (actor_system &sys, std::string path)
 
auto read_chars () &&
 Asynchronously reads the entire file, character by character.
 
auto read_chars () const &
 Asynchronously reads the entire file, character by character.
 
auto read_lines () &&
 Asynchronously reads the entire file, line by line.
 
auto read_lines () const &
 Asynchronously reads the entire file, line by line.
 
auto read_bytes () const &
 Asynchronously reads the entire file, byte by byte.
 
auto read_bytes () &&
 Asynchronously reads the entire file, byte by byte.
 
auto read_chunks (size_t chunk_size) const &
 Asynchronously reads the entire file, grouped into chunks of size chunk_size.
 
auto read_chunks (size_t chunk_size) &&
 Asynchronously reads the entire file, grouped into chunks of size chunk_size.
 

Detailed Description

Bundles factories for asynchronous sources and sinks that operate on files.

Note
Starts a new thread for each source or sink.

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