16 #ifndef IOX_UTILS_FILE_READER_FILE_READER_HPP
17 #define IOX_UTILS_FILE_READER_FILE_READER_HPP
19 #include "iceoryx_utils/error_handling/error_handling.hpp"
55 const std::string& f_filePath =
"",
56 ErrorMode f_errorMode = ErrorMode::Inform);
72 static constexpr
char PATH_SEPARATOR[] =
"\\";
74 static constexpr
char PATH_SEPARATOR[] =
"/";
76 std::fstream m_fileStream;
Wrapper class for file reading operations. Tries to open a file in the constructor....
Definition: file_reader.hpp:41
bool IsOpen() const
Check if the associated file is open.
ErrorMode
Definition: file_reader.hpp:46
FileReader(const std::string &f_fileName, const std::string &f_filePath="", ErrorMode f_errorMode=ErrorMode::Inform)
bool ReadLine(std::string &f_string)
Read one line from the file and store the result in f_string.
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:28