17 out.precision(std::numeric_limits<double>::max_digits10);
31 return std::string(
"");
35 std::filesystem::path
const& file_path)
41 std::ofstream fileStream;
42 fileStream.open(file_path.c_str());
47 ERR(
"Could not open file '{:s}'!", file_path.string());
51 fileStream << content;
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
std::ostringstream out
The stream to write to.
virtual bool write()=0
Writes the object to the internal stream. This method must be implemented by a subclass....
std::string writeToString()
Writes the object to a string.
int writeStringToFile(std::string_view content, std::filesystem::path const &file_path)