- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
31 lines
574 B
C++
31 lines
574 B
C++
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright Pionix GmbH and Contributors to EVerest
|
|
#ifndef V2G_MESSAGE_HPP
|
|
#define V2G_MESSAGE_HPP
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include <pugixml.hpp>
|
|
#include <string>
|
|
|
|
namespace module {
|
|
/*
|
|
Simple V2G XML message helper
|
|
*/
|
|
|
|
class v2g_message {
|
|
public:
|
|
v2g_message();
|
|
bool from_xml(const std::string& xml);
|
|
std::string to_xml();
|
|
void from_json(const std::string& json_str);
|
|
std::string to_json();
|
|
|
|
private:
|
|
pugi::xml_document doc;
|
|
nlohmann::json j;
|
|
};
|
|
|
|
} // namespace module
|
|
|
|
#endif // V2G_MESSAGE_HPP
|