Skip to content

Commit

Permalink
Added Mutability type enum
Browse files Browse the repository at this point in the history
Signed-off-by: Soumya Subramanya <[email protected]>
  • Loading branch information
SNSubramanya committed Oct 16, 2023
1 parent f07b61d commit e212ae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ocpp/v201/enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,12 @@ enum class AttributeEnum {
MaxSet,
};

enum class MutabilityEnum {
ReadOnly,
WriteOnly,
ReadWrite
};

namespace conversions {
/// \brief Converts the given AttributeEnum \p e to human readable string
/// \returns a string representation of the AttributeEnum
Expand Down
1 change: 1 addition & 0 deletions include/ocpp/v201/ocpp_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ struct GetVariableData {
Variable variable;
std::optional<CustomData> customData;
std::optional<AttributeEnum> attributeType;
std::optional<MutabilityEnum> mutabilityType;
};
/// \brief Conversion from a given GetVariableData \p k to a given json object \p j
void to_json(json& j, const GetVariableData& k);
Expand Down

0 comments on commit e212ae5

Please sign in to comment.