add static method to return a test object for serialization

this allows killing the constructors taking member values
This commit is contained in:
Arne Morten Kvarving
2020-03-19 15:21:20 +01:00
parent 3bc8f832d8
commit e3bd1e6723
194 changed files with 1618 additions and 1502 deletions

View File

@@ -61,7 +61,8 @@ struct RockComp {
RockConfig() = default;
RockConfig(const Deck& deck, const FieldPropsManager& fp);
RockConfig(bool active, const std::vector<RockComp>& comp, const std::string& num_prop, std::size_t num_rock_tables, bool water_compaction, Hysteresis hyst);
static RockConfig serializeObject();
bool active() const;
const std::vector<RockConfig::RockComp>& comp() const;