Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
ProblemFormatStream.h
1
#pragma once
2
3
#include <fmt/format.h>
4
5
#include <ostream>
6
7
#include "ProblemFormat.h"
8
9
inline
std::ostream &operator<<(std::ostream &stream,
10
ProblemsFormat
const
&rhs) {
11
switch
(rhs) {
12
case
ProblemsFormat::MPS_FILE:
13
stream <<
"MPS"
;
14
break
;
15
case
ProblemsFormat::SAVED_FILE:
16
stream <<
"SAVED"
;
17
break
;
18
default
:
19
stream <<
"Unknown"
;
20
}
21
return
stream;
22
}
23
24
template
<>
25
struct
fmt::formatter<ProblemsFormat> : formatter<string_view> {
26
// parse is inherited from formatter<string_view>.
27
28
auto
format(ProblemsFormat problems_format,
29
format_context &ctx)
const
-> format_context::iterator;
30
};
src
cpp
benders
benders_core
include
antares-xpansion
benders
benders_core
ProblemFormatStream.h
Generated by
1.12.0