ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Reset.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3// This code is generated using the generator in 'src/code_generator/common`, please do not edit manually
4
5#ifndef OCPP_V16_RESET_HPP
6#define OCPP_V16_RESET_HPP
7
8#include <nlohmann/json_fwd.hpp>
9
10#include <ocpp/v16/ocpp_enums.hpp>
11#include <ocpp/v16/ocpp_types.hpp>
12
13namespace ocpp {
14namespace v16 {
15
17struct ResetRequest : public ocpp::Message {
18 ResetType type;
19
22 std::string get_type() const override;
23};
24
26void to_json(json& j, const ResetRequest& k);
27
29void from_json(const json& j, ResetRequest& k);
30
33std::ostream& operator<<(std::ostream& os, const ResetRequest& k);
34
37 ResetStatus status;
38
41 std::string get_type() const override;
42};
43
45void to_json(json& j, const ResetResponse& k);
46
48void from_json(const json& j, ResetResponse& k);
49
52std::ostream& operator<<(std::ostream& os, const ResetResponse& k);
53
54} // namespace v16
55} // namespace ocpp
56
57#endif // OCPP_V16_RESET_HPP
Parent structure for all OCPP messages supported by this implementation.
Definition: types.hpp:30
Contains a OCPP Reset message.
Definition: Reset.hpp:17
std::string get_type() const override
Provides the type of this Reset message as a human readable string.
Definition: Reset.cpp:15
Contains a OCPP ResetResponse message.
Definition: Reset.hpp:36
std::string get_type() const override
Provides the type of this ResetResponse message as a human readable string.
Definition: Reset.cpp:41