21 #ifndef __LIBS_STUDY_SCENARIO_BUILDER_SETS_H__
22 #define __LIBS_STUDY_SCENARIO_BUILDER_SETS_H__
24 #include <yuni/yuni.h>
28 namespace Antares::Data::ScenarioBuilder
33 class Sets final:
private Yuni::NonCopyable<Sets>
59 void setStudy(
Study& study);
76 template<
class StringT>
83 template<
class StringT>
84 bool saveToINIFile(
const StringT& filename);
102 bool exists(
const RulesScenarioName& lname)
const;
114 Rules::Ptr rename(
const RulesScenarioName& lname,
const RulesScenarioName& newname);
121 bool remove(
const RulesScenarioName& lname);
142 bool internalLoadFromINIFile(
const AnyString& filename);
145 bool internalSaveToIniFile(
const AnyString& filename)
const;
std::map< RulesScenarioName, Ptr > Map
Map.
Definition: rules.h:55
std::shared_ptr< Rules > Ptr
Smart pointer.
Definition: rules.h:53
Sets for TS numbers, for all years and a single timeseries.
Definition: sets.h:34
Rules::Ptr rename(const RulesScenarioName &lname, const RulesScenarioName &newname)
Rename a given ruleset.
Definition: sets.cpp:103
Rules::Ptr createNew(const RulesScenarioName &name)
Create a new set.
Definition: sets.cpp:83
Sets()
Default constructor.
Definition: sets.cpp:31
bool empty() const
Get if empty.
Definition: sets.hxx:31
bool remove(const RulesScenarioName &lname)
Delete a ruleset.
Definition: sets.cpp:129
bool loadFromINIFile(const StringT &filename)
Load all rulesets from an INI file.
Definition: sets.hxx:82
void clear()
Clear all data.
Definition: sets.cpp:47
bool inUpdaterMode
Definition: sets.h:44
Rules::Map::iterator iterator
Iterator.
Definition: sets.h:37
bool loadFromStudy(Study &study)
Load data from the study.
Definition: sets.cpp:53
Rules::Ptr find(const RulesScenarioName &lname) const
Find a rule set.
Definition: sets.hxx:61
bool exists(const RulesScenarioName &lname) const
Test if a rules set exist.
Definition: sets.hxx:56
~Sets()
Destructor.
Definition: sets.cpp:37
Rules::Map::const_iterator const_iterator
Const iterator.
Definition: sets.h:39
uint size() const
Get the number of available sets.
Definition: sets.hxx:26