Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
MathLogger.h
1
2#pragma once
3#include <filesystem>
4
5#include "antares-xpansion/benders/benders_core/BendersMathLogger.h"
6#include "antares-xpansion/xpansion_interfaces/LoggerUtils.h"
7
9 public:
10 explicit MathLoggerFile(const BENDERSMETHOD& method,
11 const std::filesystem::path& log_file,
12 std::streamsize width = 30);
13
14 void display_message(const std::string& msg) override;
15 void display_message(const std::string& msg, LogUtils::LOGLEVEL level,
16 const std::string& context) override;
17 virtual void PrintIterationSeparatorBegin() override;
18 virtual void PrintIterationSeparatorEnd() override;
19
20 private:
21 std::ofstream file_stream_;
22};
23
25 public:
26 explicit MathLoggerOstream(const BENDERSMETHOD& method,
27 std::streamsize width = 20)
28 : MathLoggerImplementation(method, width, HEADERSTYPE::SHORT) {}
29
30 virtual void PrintIterationSeparatorBegin() override;
31 virtual void PrintIterationSeparatorEnd() override;
32};
Definition MathLogger.h:8
void display_message(const std::string &msg) override
pure virtual method to display a std::string message
Definition MathLogger.cpp:8
Definition BendersMathLogger.h:156
Definition MathLogger.h:24