StringFileReader.ixx File
Abstract base class for reading file contents into a string. More...
Included Headers
#include <string>
#include <helios.util.log.LogManager>
#include <helios.util.log.Logger>
Namespaces Index
| namespace | helios |
| namespace | util |
|
Utility functions and helper classes. More... | |
| namespace | io |
|
Input/output utilities. More... | |
Classes Index
| class | StringFileReader |
|
Abstract base class for reading file contents into a string. More... | |
Macro Definitions Index
| #define | HELIOS_LOG_SCOPE "helios::util::io.FileReader" |
Description
Abstract base class for reading file contents into a string.
Macro Definitions
HELIOS_LOG_SCOPE
|
Definition at line 14 of file StringFileReader.ixx.
14#define HELIOS_LOG_SCOPE "helios::util::io.FileReader"
File Listing
The file content with the documentation metadata removed is:
14#define HELIOS_LOG_SCOPE "helios::util::io.FileReader"
15export namespace helios::util::io {
22 class StringFileReader {
28 inline static const helios::util::log::Logger& logger_ = helios::util::log::LogManager::loggerForScope(HELIOS_LOG_SCOPE);
32 virtual ~StringFileReader() = default;
37 StringFileReader() = default;
43 * @return The contents of the file as a std::string. If reading fails, an empty string is returned.
47 [[nodiscard]] virtual std::string getContents(const std::string& filename) const = 0;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.