Public Types | |
using | text_data = std::string |
using | binary_data = std::vector< char > |
using | filename_type = std::string |
Public Member Functions | |
file () noexcept=default | |
virtual | ~file ()=default |
virtual text_data | read_text (const filename_type &filename) const |
virtual binary_data | read_binary (const filename_type &filename) const |
virtual void | write_text (const filename_type &filename, const text_data &data) const |
virtual void | write_binary (const filename_type &filename, const binary_data &data) const |
File
This class is responsible for working with a file. Specifically, this class wraps calls to ifstream and fstream to simplify their interface as well as provide an implementation for the rest of the Bareflank Manager, such that testing is easier.
using file::text_data = std::string |
using file::binary_data = std::vector<char> |
using file::filename_type = std::string |
|
defaultnoexcept |
File Constructor
Creates a file class that can be used to working with files.
|
virtualdefault |
File Destructor
|
virtual |
|
virtual |
|
virtual |
|
virtual |