EMath++
Classes for mathematical concepts
|
Storage class to read and write to a file. More...
Public Member Functions | |
Storage (const ::std::string file) noexcept | |
The main constructor. | |
const ::std::string | read () const noexcept |
The read function that returns the whole file as a std:.string. | |
const int | write (const ::std::string contents) const noexcept |
The write function that overwrites the whole file with a std::string. | |
bool | exists () const noexcept |
This function check if the filename exists. | |
~Storage () noexcept=default | |
Default destructor. | |
Storage class to read and write to a file.
Provides some functions to read and write to a filename saved in a class variable
Definition at line 589 of file interface.cpp.
|
inlinenoexcept |
The main constructor.
file | The filename to write to as a std::string |
Definition at line 600 of file interface.cpp.
|
inlinenoexcept |
This function check if the filename exists.
Definition at line 628 of file interface.cpp.
|
inlinenoexcept |
The read function that returns the whole file as a std:.string.
Definition at line 605 of file interface.cpp.
|
inlinenoexcept |
The write function that overwrites the whole file with a std::string.
contents | The contents to write as a std::string |
Definition at line 618 of file interface.cpp.