gtopt/gas_enums.hpp file

Enumerations for the gas-network element configuration.

Named enums (enum_from_name / enum_name) for the string selectors of GasPipe and GasCompressor. The JSON fields stay OptName; the data structs expose *_enum() accessors (same pattern as Line::line_losses_mode_enum) that return the default when the field is unset and std::nullopt for an unknown name.

Namespaces

namespace gtopt
namespace gtopt::gas