#include <gtopt/json/json_volume_right.hpp>
template<>
json_data_contract<VolumeRight> struct
Public types
- using constructor_t = VolumeRightConstructor
-
using type = json_member_list<json_number<"uid", Uid>, json_string<"name", Name>, json_variant_null<"active", OptActive, jvtl_
Active>, json_string_null<"purpose", OptName>, json_variant_null<"reservoir", OptSingleId, jvtl_ SingleId>, json_variant_null<"right_reservoir", OptSingleId, jvtl_ SingleId>, json_number_null<"direction", OptInt>, 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_variant_null<"demand", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_variant_null<"fmax", OptTBRealFieldSched, jvtl_ TBRealFieldSched>, json_number_null<"fail_cost", OptReal>, json_number_null<"priority", OptReal>, json_variant_null<"saving_rate", OptTBRealFieldSched, jvtl_ TBRealFieldSched>, json_number_null<"flow_conversion_rate", OptReal>, json_number_null<"energy_scale", OptReal>, json_string_null<"energy_scale_mode", OptName>, json_bool_null<"use_state_variable", OptBool>, json_variant_null<"annual_loss", OptTRealFieldSched, jvtl_ TRealFieldSched>, json_string_null<"reset_month", OptName>, json_class_null<"bound_rule", std::optional<RightBoundRule>>>
Public static functions
- static auto to_json_data(VolumeRight const& vr) -> auto constexpr