#include <gtopt/json/json_reservoir.hpp>
template<>
json_data_contract<Reservoir> struct
Public types
-
using type = json_member_list<json_number<"uid", Uid>, json_string<"name", Name>, json_variant_null<"active", OptActive, jvtl_
Active>, json_variant<"junction", SingleId>, json_number_null<"spillway_capacity", OptReal>, json_number_null<"spillway_cost", OptReal>, json_variant_null<"capacity", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"annual_loss", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"emin", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"emax", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"ecost", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_number_null<"eini", OptReal>, json_number_null<"efin", OptReal>, json_variant_null<"soft_emin", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"soft_emin_cost", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_number_null<"fmin", OptReal>, json_number_null<"fmax", OptReal>, json_number_null<"energy_scale", OptReal>, json_string_null<"energy_scale_mode", OptName>, json_number_null<"flow_conversion_rate", OptReal>, json_bool_null<"use_state_variable", OptBool>, json_bool_null<"daily_cycle", OptBool>, json_array_null<"seepage", Array<ReservoirSeepage>, ReservoirSeepage>, json_array_null<"discharge_limit", Array<ReservoirDischargeLimit>, ReservoirDischargeLimit>, json_array_null<"production_factor", Array<ReservoirProductionFactor>, ReservoirProductionFactor>>
Public static functions
- static auto to_json_data(Reservoir const& reservoir) -> auto constexpr