Diag-Client-Lib
diagnostic_client_vehicle_info_message_type.h
Go to the documentation of this file.
1 /* Diagnostic Client library
2 * Copyright (C) 2024 Avijit Dey
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8 #ifndef DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_VEHICLE_INFO_MESSAGE_TYPE_H
9 #define DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_VEHICLE_INFO_MESSAGE_TYPE_H
10 
11 #include <cstdint>
12 #include <memory>
13 #include <string>
14 #include <vector>
15 
16 namespace diag {
17 namespace client {
18 namespace vehicle_info {
19 
27  std::string ip_address{};
28 
32  std::uint16_t logical_address{};
33 
37  std::string vin{};
38 
42  std::string eid{};
43 
47  std::string gid{};
48 };
49 
60  std::uint8_t preselection_mode{0U};
61 
68  std::string preselection_value{};
69 };
70 
75  public:
79  using VehicleInfoListResponseType = std::vector<VehicleAddrInfoResponse>;
80 
81  public:
85  VehicleInfoMessage() = default;
86 
90  virtual ~VehicleInfoMessage() = default;
91 
98 };
99 
104 
108 using VehicleInfoMessageResponseUniquePtr = std::unique_ptr<VehicleInfoMessage>;
109 
110 } // namespace vehicle_info
111 } // namespace client
112 } // namespace diag
113 
114 #endif // DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_VEHICLE_INFO_MESSAGE_TYPE_H
Class provide storage of list of all available vehicle entity.
std::vector< VehicleAddrInfoResponse > VehicleInfoListResponseType
Alias to collection of Vehicle info response.
virtual ~VehicleInfoMessage()=default
Destructor an instance of VehicleInfoMessage.
VehicleInfoMessage()=default
Constructs an instance of VehicleInfoMessage.
virtual VehicleInfoListResponseType & GetVehicleList()=0
Function to get the list of vehicle available in the network.
std::unique_ptr< VehicleInfoMessage > VehicleInfoMessageResponseUniquePtr
The unique_ptr for Vehicle Identification Response Message.
std::uint8_t preselection_mode
Mode to be used during sending of Vehicle Identification request. 0U : No preselection 1U : DoIP Enti...
std::string preselection_value
Value to be used based on preselection mode. VIN when preselection_mode = 1U EID when preselection_mo...
Structure containing available Vehicle Address Information.