libdoip  0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
DoIPFurtherAction.h
Go to the documentation of this file.
1 #ifndef DOIPFURTHERACTION_H
2 #define DOIPFURTHERACTION_H
3 
4 #include <stdint.h>
5 
6 namespace doip {
7  // Table 6 - Further Action Required values
8  enum class DoIPFurtherAction : uint8_t {
9  NoFurtherAction = 0x00,
10  // 0x01 to 0x0F: reserved
12  // 0x11 to 0xFE: reserved for VM manufacturer specific use
13  };
14 
15  inline std::ostream &operator<<(std::ostream &os, const DoIPFurtherAction far) {
16  switch (far) {
18  os << "None";
19  break;
21  os << "Routing Activation for Central Security Required";
22  break;
23  default:
24  os << "Reserved Further Action Code: 0x" << std::hex << static_cast<uint8_t>(far) << std::dec;
25  break;
26  }
27 
28  return os;
29  }
30 
31 } // namespace doip
32 
33 #endif /* DOIPFURTHERACTION_H */
Definition: AnsiColors.h:3
std::ostream & operator<<(std::ostream &os, const ByteArray &arr)
Stream operator for ByteArray.
Definition: ByteArray.h:303