4#ifndef FILE_HANDLER_BASE_H
5#define FILE_HANDLER_BASE_H
8#include "boost/noncopyable.hpp"
94template <
typename HandlerType>
Definition file_handler_base.h:22
handler_type & get_file_stream() noexcept
Returns the underlying file stream.
Definition file_handler_base.h:39
FileFormats::Type get_type() const noexcept
Returns the type of the file.
Definition file_handler_base.h:34
std::string file_name_
The name of the file to write.
Definition file_handler_base.h:81
const handler_type & get_file_stream() const noexcept
Returns the underlying file stream.
Definition file_handler_base.h:44
virtual void open()=0
Open the file.
HandlerType handler_type
Definition file_handler_base.h:24
virtual void close()
Close the file. Return true if and only if the file was closed successfully false otherwise.
Definition file_handler_base.h:102
FileHandlerBase(const std::string &file_name, FileFormats::Type t)
protected Constructor so that explicit instantiation of the class fails
Definition file_handler_base.h:95
virtual ~FileHandlerBase()
Constructor.
Definition file_handler_base.h:100
bool is_open() const noexcept
Return true if and only if the file is open.
Definition file_handler_base.h:55
const FileFormats::Type t_
The format of the file.
Definition file_handler_base.h:86
handler_type f_
The low level file handler.
Definition file_handler_base.h:91
std::string get_filename() const noexcept
Returns the filename that is used to write.
Definition file_handler_base.h:49
OutT resolve(const std::string &name, const std::map< std::string, std::any > &input)
Definition std_map_utils.h:25
Definition bitrl_consts.h:14