-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added columns to database and updated equality checks
Signed-off-by: Coury Richards <[email protected]>
- Loading branch information
1 parent
2045241
commit 881ecef
Showing
7 changed files
with
102 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
CREATE TABLE CHARGING_PROFILES ( | ||
Check failure on line 1 in config/v201/core_migrations/5_up-charging_profiles_db.sql
|
||
ID INT PRIMARY KEY NOT NULL, | ||
EVSE_ID INT NOT NULL, | ||
STACK_LEVEL INT NOT NULL, | ||
CHARGING_PROFILE_PURPOSE TEXT NOT NULL, | ||
PROFILE TEXT NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "ocpp/v201/ocpp_types.hpp" | ||
namespace ocpp::v201 { | ||
|
||
bool operator==(const ChargingProfile& lhs, const ChargingProfile& rhs); | ||
|
||
} // namespace ocpp::v201 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "ocpp/v201/profile_utils.hpp" | ||
#include "ocpp/v201/ocpp_types.hpp" | ||
|
||
namespace ocpp::v201 { | ||
|
||
bool operator==(const ChargingProfile& lhs, const ChargingProfile& rhs) { | ||
return lhs.chargingProfileKind == rhs.chargingProfileKind && | ||
lhs.chargingProfilePurpose == rhs.chargingProfilePurpose && lhs.id == rhs.id && | ||
lhs.stackLevel == rhs.stackLevel; | ||
} | ||
} // namespace ocpp::v201 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters