Vehicle ID request DoIP message with vehicle ID number filtering.  
 More...
#include <vin_vehicle_id_request.h>
 | 
| void  | GetPayload (std::vector< uint8_t > &payload) const override | 
|   | Get message payload.  More...
  | 
|   | 
| virtual bool  | TrySetPayload (const std::vector< uint8_t > &payload, uint32_t payloadLength) override | 
|   | Try to set message payload.  More...
  | 
|   | 
|   | Message (PayloadType payloadType) noexcept | 
|   | Constructor.  More...
  | 
|   | 
|   | Message (uint8_t protocolVersion, PayloadType payloadType) noexcept | 
|   | Constructor.  More...
  | 
|   | 
 | 
| static bool  | TryExtractPayloadType (const std::vector< uint8_t > &serializedMessage, PayloadType &payloadType) | 
|   | Try to extract the payload type from the given serialized message.  More...
  | 
|   | 
| 
static const std::size_t  | cHeaderSize {8} | 
|   | DoIP message header size. 
  | 
|   | 
Vehicle ID request DoIP message with vehicle ID number filtering. 
 
◆ VinVehicleIdRequest() [1/2]
      
        
          | DoipLib::VinVehicleIdRequest::VinVehicleIdRequest  | 
          ( | 
          uint8_t  | 
          protocolVersion,  | 
        
        
           | 
           | 
          const std::string &  | 
          vin  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | protocolVersion | DoIP ISO protocol version  | 
    | vin | Vehicle ID number filter  | 
  
   
- Exceptions
 - 
  
    | std::out_of_range | Throws if the given VIN is invalid  | 
  
   
 
 
◆ VinVehicleIdRequest() [2/2]
      
        
          | DoipLib::VinVehicleIdRequest::VinVehicleIdRequest  | 
          ( | 
          uint8_t  | 
          protocolVersion,  | 
        
        
           | 
           | 
          std::string &&  | 
          vin  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | protocolVersion | DoIP ISO protocol version  | 
    | vin | Vehicle ID number filter  | 
  
   
- Exceptions
 - 
  
    | std::out_of_range | Throws if the given VIN is invalid  | 
  
   
 
 
◆ GetPayload()
  
  
      
        
          | void DoipLib::VinVehicleIdRequest::GetPayload  | 
          ( | 
          std::vector< uint8_t > &  | 
          payload | ) | 
           const | 
         
       
   | 
  
overrideprotectedvirtual   | 
  
 
Get message payload. 
- Parameters
 - 
  
    | [out] | payload | Payload byte array  | 
  
   
Implements DoipLib::Message.
 
 
◆ GetVin()
      
        
          | std::string DoipLib::VinVehicleIdRequest::GetVin  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get VIN filter. 
- Returns
 - Vehicle ID number 
 
 
 
◆ TrySetPayload()
  
  
      
        
          | virtual bool DoipLib::VinVehicleIdRequest::TrySetPayload  | 
          ( | 
          const std::vector< uint8_t > &  | 
          payload,  | 
         
        
           | 
           | 
          uint32_t  | 
          payloadLength  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
overrideprotectedvirtual   | 
  
 
Try to set message payload. 
- Parameters
 - 
  
    | [in] | payload | Payload byte array  | 
    | [in] | payloadLength | Payload length from the message header  | 
  
   
- Returns
 - True if the payload is set successfully, otherwise false 
 
Implements DoipLib::Message.