Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark methods as override #735

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/ocpp/common/database/database_exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DatabaseException : public std::exception {
virtual ~DatabaseException() noexcept {
}

virtual const char* what() const noexcept {
virtual const char* what() const noexcept override {
return msg.c_str();
}

Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/Authorize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct AuthorizeRequest : public ocpp::Message {

/// \brief Provides the type of this Authorize message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given AuthorizeRequest \p k to a given json object \p j
Expand All @@ -38,7 +38,7 @@ struct AuthorizeResponse : public ocpp::Message {

/// \brief Provides the type of this AuthorizeResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given AuthorizeResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/BootNotification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct BootNotificationRequest : public ocpp::Message {

/// \brief Provides the type of this BootNotification message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given BootNotificationRequest \p k to a given json object \p j
Expand All @@ -48,7 +48,7 @@ struct BootNotificationResponse : public ocpp::Message {

/// \brief Provides the type of this BootNotificationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given BootNotificationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/CancelReservation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct CancelReservationRequest : public ocpp::Message {

/// \brief Provides the type of this CancelReservation message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given CancelReservationRequest \p k to a given json object \p j
Expand All @@ -36,7 +36,7 @@ struct CancelReservationResponse : public ocpp::Message {

/// \brief Provides the type of this CancelReservationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given CancelReservationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/CertificateSigned.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct CertificateSignedRequest : public ocpp::Message {

/// \brief Provides the type of this CertificateSigned message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given CertificateSignedRequest \p k to a given json object \p j
Expand All @@ -36,7 +36,7 @@ struct CertificateSignedResponse : public ocpp::Message {

/// \brief Provides the type of this CertificateSignedResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given CertificateSignedResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/ChangeAvailability.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct ChangeAvailabilityRequest : public ocpp::Message {

/// \brief Provides the type of this ChangeAvailability message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ChangeAvailabilityRequest \p k to a given json object \p j
Expand All @@ -37,7 +37,7 @@ struct ChangeAvailabilityResponse : public ocpp::Message {

/// \brief Provides the type of this ChangeAvailabilityResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ChangeAvailabilityResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/ChangeConfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct ChangeConfigurationRequest : public ocpp::Message {

/// \brief Provides the type of this ChangeConfiguration message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ChangeConfigurationRequest \p k to a given json object \p j
Expand All @@ -38,7 +38,7 @@ struct ChangeConfigurationResponse : public ocpp::Message {

/// \brief Provides the type of this ChangeConfigurationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ChangeConfigurationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/ClearCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct ClearCacheRequest : public ocpp::Message {

/// \brief Provides the type of this ClearCache message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ClearCacheRequest \p k to a given json object \p j
Expand All @@ -35,7 +35,7 @@ struct ClearCacheResponse : public ocpp::Message {

/// \brief Provides the type of this ClearCacheResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ClearCacheResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/ClearChargingProfile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ClearChargingProfileRequest : public ocpp::Message {

/// \brief Provides the type of this ClearChargingProfile message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ClearChargingProfileRequest \p k to a given json object \p j
Expand All @@ -40,7 +40,7 @@ struct ClearChargingProfileResponse : public ocpp::Message {

/// \brief Provides the type of this ClearChargingProfileResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ClearChargingProfileResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/DataTransfer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct DataTransferRequest : public ocpp::Message {

/// \brief Provides the type of this DataTransfer message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DataTransferRequest \p k to a given json object \p j
Expand All @@ -41,7 +41,7 @@ struct DataTransferResponse : public ocpp::Message {

/// \brief Provides the type of this DataTransferResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DataTransferResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/DeleteCertificate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct DeleteCertificateRequest : public ocpp::Message {

/// \brief Provides the type of this DeleteCertificate message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DeleteCertificateRequest \p k to a given json object \p j
Expand All @@ -36,7 +36,7 @@ struct DeleteCertificateResponse : public ocpp::Message {

/// \brief Provides the type of this DeleteCertificateResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DeleteCertificateResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/DiagnosticsStatusNotification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct DiagnosticsStatusNotificationRequest : public ocpp::Message {

/// \brief Provides the type of this DiagnosticsStatusNotification message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DiagnosticsStatusNotificationRequest \p k to a given json object \p j
Expand All @@ -35,7 +35,7 @@ struct DiagnosticsStatusNotificationResponse : public ocpp::Message {

/// \brief Provides the type of this DiagnosticsStatusNotificationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given DiagnosticsStatusNotificationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/ExtendedTriggerMessage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct ExtendedTriggerMessageRequest : public ocpp::Message {

/// \brief Provides the type of this ExtendedTriggerMessage message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ExtendedTriggerMessageRequest \p k to a given json object \p j
Expand All @@ -38,7 +38,7 @@ struct ExtendedTriggerMessageResponse : public ocpp::Message {

/// \brief Provides the type of this ExtendedTriggerMessageResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given ExtendedTriggerMessageResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/FirmwareStatusNotification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct FirmwareStatusNotificationRequest : public ocpp::Message {

/// \brief Provides the type of this FirmwareStatusNotification message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given FirmwareStatusNotificationRequest \p k to a given json object \p j
Expand All @@ -35,7 +35,7 @@ struct FirmwareStatusNotificationResponse : public ocpp::Message {

/// \brief Provides the type of this FirmwareStatusNotificationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given FirmwareStatusNotificationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetCompositeSchedule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct GetCompositeScheduleRequest : public ocpp::Message {

/// \brief Provides the type of this GetCompositeSchedule message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetCompositeScheduleRequest \p k to a given json object \p j
Expand All @@ -42,7 +42,7 @@ struct GetCompositeScheduleResponse : public ocpp::Message {

/// \brief Provides the type of this GetCompositeScheduleResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetCompositeScheduleResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetConfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct GetConfigurationRequest : public ocpp::Message {

/// \brief Provides the type of this GetConfiguration message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetConfigurationRequest \p k to a given json object \p j
Expand All @@ -38,7 +38,7 @@ struct GetConfigurationResponse : public ocpp::Message {

/// \brief Provides the type of this GetConfigurationResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetConfigurationResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetDiagnostics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct GetDiagnosticsRequest : public ocpp::Message {

/// \brief Provides the type of this GetDiagnostics message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetDiagnosticsRequest \p k to a given json object \p j
Expand All @@ -41,7 +41,7 @@ struct GetDiagnosticsResponse : public ocpp::Message {

/// \brief Provides the type of this GetDiagnosticsResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetDiagnosticsResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetInstalledCertificateIds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct GetInstalledCertificateIdsRequest : public ocpp::Message {

/// \brief Provides the type of this GetInstalledCertificateIds message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetInstalledCertificateIdsRequest \p k to a given json object \p j
Expand All @@ -38,7 +38,7 @@ struct GetInstalledCertificateIdsResponse : public ocpp::Message {

/// \brief Provides the type of this GetInstalledCertificateIdsResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetInstalledCertificateIdsResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetLocalListVersion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct GetLocalListVersionRequest : public ocpp::Message {

/// \brief Provides the type of this GetLocalListVersion message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetLocalListVersionRequest \p k to a given json object \p j
Expand All @@ -34,7 +34,7 @@ struct GetLocalListVersionResponse : public ocpp::Message {

/// \brief Provides the type of this GetLocalListVersionResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetLocalListVersionResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/GetLog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct GetLogRequest : public ocpp::Message {

/// \brief Provides the type of this GetLog message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetLogRequest \p k to a given json object \p j
Expand All @@ -43,7 +43,7 @@ struct GetLogResponse : public ocpp::Message {

/// \brief Provides the type of this GetLogResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given GetLogResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/Heartbeat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct HeartbeatRequest : public ocpp::Message {

/// \brief Provides the type of this Heartbeat message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given HeartbeatRequest \p k to a given json object \p j
Expand All @@ -34,7 +34,7 @@ struct HeartbeatResponse : public ocpp::Message {

/// \brief Provides the type of this HeartbeatResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given HeartbeatResponse \p k to a given json object \p j
Expand Down
4 changes: 2 additions & 2 deletions include/ocpp/v16/messages/InstallCertificate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct InstallCertificateRequest : public ocpp::Message {

/// \brief Provides the type of this InstallCertificate message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given InstallCertificateRequest \p k to a given json object \p j
Expand All @@ -37,7 +37,7 @@ struct InstallCertificateResponse : public ocpp::Message {

/// \brief Provides the type of this InstallCertificateResponse message as a human readable string
/// \returns the message type as a human readable string
std::string get_type() const;
std::string get_type() const override;
};

/// \brief Conversion from a given InstallCertificateResponse \p k to a given json object \p j
Expand Down
Loading
Loading