|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
#include <file_handler_base.h>


Public Types | |
| typedef HandlerType | handler_type |
Public Member Functions | |
| virtual | ~FileHandlerBase () |
| Constructor. | |
| FileFormats::Type | get_type () const noexcept |
| Returns the type of the file. | |
| handler_type & | get_file_stream () noexcept |
| Returns the underlying file stream. | |
| const handler_type & | get_file_stream () const noexcept |
| Returns the underlying file stream. | |
| std::string | get_filename () const noexcept |
| Returns the filename that is used to write. | |
| bool | is_open () const noexcept |
| Return true if and only if the file is open. | |
| virtual void | close () |
| Close the file. Return true if and only if the file was closed successfully false otherwise. | |
| virtual void | open ()=0 |
| Open the file. | |
Protected Member Functions | |
| FileHandlerBase (const std::string &file_name, FileFormats::Type t) | |
| protected Constructor so that explicit instantiation of the class fails | |
Protected Attributes | |
| std::string | file_name_ |
| The name of the file to write. | |
| const FileFormats::Type | t_ |
| The format of the file. | |
| handler_type | f_ |
| The low level file handler. | |
| typedef HandlerType bitrl::utils::io::FileHandlerBase< HandlerType >::handler_type |
|
virtual |
Constructor.
|
protected |
protected Constructor so that explicit instantiation of the class fails
|
virtual |
Close the file. Return true if and only if the file was closed successfully false otherwise.
|
inlinenoexcept |
Returns the underlying file stream.
|
inlinenoexcept |
Returns the underlying file stream.
|
inlinenoexcept |
Returns the filename that is used to write.
|
inlinenoexcept |
Returns the type of the file.
|
inlinenoexcept |
Return true if and only if the file is open.
|
pure virtual |
Open the file.
Implemented in bitrl::utils::io::FileReaderBase, bitrl::utils::io::FileWriterBase, and bitrl::utils::io::JSONFileReader.
|
protected |
The low level file handler.
|
protected |
The name of the file to write.
|
protected |
The format of the file.