21 #ifndef __ANTARES_LIBS_STUDY_PARTS_THERMAL_CLUSTER_HXX__
22 #define __ANTARES_LIBS_STUDY_PARTS_THERMAL_CLUSTER_HXX__
24 namespace Yuni::Extension::CString
26 template<
class CStringT>
27 class Append<CStringT, Antares::Data::StatisticalLaw>
30 static void Perform(CStringT&
string, Antares::Data::StatisticalLaw law)
34 case Antares::Data::LawUniform:
37 case Antares::Data::LawGeometric:
38 string +=
"geometric";
44 template<
class CStringT>
45 class Append<CStringT, Antares::Data::CostGeneration>
48 static void Perform(CStringT&
string, Antares::Data::CostGeneration costgeneration)
50 switch (costgeneration)
52 case Antares::Data::setManually:
53 string +=
"setManually";
55 case Antares::Data::useCostTimeseries:
56 string +=
"useCostTimeseries";
62 template<
class CStringT>
63 class Append<CStringT, Antares::Data::LocalTSGenerationBehavior>
66 static void Perform(CStringT&
string, Antares::Data::LocalTSGenerationBehavior behavior)
70 case Antares::Data::LocalTSGenerationBehavior::forceGen:
71 string +=
"force generation";
73 case Antares::Data::LocalTSGenerationBehavior::forceNoGen:
74 string +=
"force no generation";
77 string +=
"use global";
84 class Into<Antares::Data::StatisticalLaw>
87 using TargetType = Antares::Data::StatisticalLaw;
94 static bool Perform(AnyString
string, TargetType& out);
96 template<
class StringT>
97 static TargetType Perform(
const StringT& s)
99 TargetType law = Antares::Data::LawUniform;
106 class Into<Antares::Data::CostGeneration>
109 using TargetType = Antares::Data::CostGeneration;
110 enum class Validation
115 static bool Perform(AnyString
string, TargetType& out);
117 template<
class StringT>
118 static TargetType Perform(
const StringT& s)
120 TargetType costgeneration = Antares::Data::setManually;
121 Perform(s, costgeneration);
122 return costgeneration;
127 class Into<Antares::Data::LocalTSGenerationBehavior>
130 using TargetType = Antares::Data::LocalTSGenerationBehavior;
137 static bool Perform(AnyString
string, TargetType& out);
139 template<
class StringT>
140 static TargetType Perform(
const StringT& s)
142 TargetType behavior = Antares::Data::LocalTSGenerationBehavior::useGlobalParameter;
143 Perform(s, behavior);