Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
ProblemFormatStream.h
1
#pragma once
2
3
#include <fmt/format.h>
4
#include <ostream>
5
6
#include "ProblemFormat.h"
7
8
inline
std::ostream& operator<<(std::ostream& stream,
const
ProblemsFormat& rhs)
9
{
10
switch
(rhs)
11
{
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
{
27
// parse is inherited from formatter<string_view>.
28
29
auto
format(ProblemsFormat problems_format,
30
format_context& ctx)
const
-> format_context::iterator;
31
};
src
cpp
benders
benders_core
include
antares-xpansion
benders
benders_core
ProblemFormatStream.h
Generated by
1.12.0