Code generator for C++ from YAML to generate network protocol parsers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 regels
793 B

5 jaren geleden
  1. includes:
  2. - <array>
  3. - "\"bitops.hpp\""
  4. classes:
  5. -
  6. name: record_identifier
  7. attributes:
  8. -
  9. name: uuid
  10. out_type: std::array<unsigned char, 16>
  11. start: 0
  12. -
  13. name: x
  14. out_type: bitops::regulated<uint32_t>
  15. start: 16
  16. -
  17. name: y
  18. out_type: bitops::regulated<uint32_t>
  19. start: 20
  20. -
  21. name: record
  22. attributes:
  23. -
  24. name: record_id
  25. out_type: std::array<unsigned char, 24>
  26. start: 0
  27. -
  28. name: timestamp
  29. out_type: bitops::regulated<uint64_t>
  30. start: 24
  31. -
  32. name: offset
  33. out_type: bitops::regulated<uint64_t>
  34. start: 32
  35. -
  36. name: flags
  37. out_type: bitops::regulated<uint32_t>
  38. start: 40