@@ -2236,12 +2236,24 @@ void to_json(json& j, const Firmware& k);
2236
2236
// / \brief Conversion from a given json object \p j to a given Firmware \p k
2237
2237
void from_json (const json& j, Firmware& k);
2238
2238
2239
- // \brief Writes the string representation of the given Firmware \p k to the given output stream \p os
2239
+ // / \brief Writes the string representation of the given Firmware \p k to the given output stream \p os
2240
2240
// / \returns an output stream with the Firmware written to
2241
2241
std::ostream& operator <<(std::ostream& os, const Firmware& k);
2242
2242
2243
+ // /
2244
+ // / \brief Required ComponentVariable.
2245
+ // /
2243
2246
struct RequiredComponentVariable : ComponentVariable {
2247
+ // / \brief Constructor
2244
2248
RequiredComponentVariable () : required_for({OcppProtocolVersion::v201, OcppProtocolVersion::v21}) {};
2249
+
2250
+ // /
2251
+ // / \brief RequiredComponentVariable
2252
+ // / \param component Component
2253
+ // / \param variable Variable
2254
+ // / \param custom_data Custom data (default nullopt)
2255
+ // / \param required_for Required for which version. Multiple versions can be given.
2256
+ // /
2245
2257
RequiredComponentVariable (const Component component, const std::optional<Variable> variable,
2246
2258
const std::optional<CustomData> custom_data = std::nullopt,
2247
2259
const std::set<OcppProtocolVersion> required_for = {OcppProtocolVersion::v201,
@@ -2251,6 +2263,8 @@ struct RequiredComponentVariable : ComponentVariable {
2251
2263
this ->variable = variable;
2252
2264
this ->customData = custom_data;
2253
2265
};
2266
+
2267
+ // / \brief For which ocpp protocol version(s) this component variable is required.
2254
2268
std::set<OcppProtocolVersion> required_for;
2255
2269
};
2256
2270
} // namespace v201
0 commit comments