Parser.h 925 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by wrede on 22.04.16.
  3. //
  4. #ifndef GBMOT_PARSE_H
  5. #define GBMOT_PARSE_H
  6. #include "../core/Definitions.h"
  7. #include "../core/DetectionSequence.h"
  8. namespace util
  9. {
  10. /**
  11. * Utility class for parsing diverse objects.
  12. */
  13. class Parser
  14. {
  15. public:
  16. /**
  17. * Parses the keys and values into a DetectionSequence of ObjectDataMap
  18. * objects.
  19. * The keys are used for the third dimension in the values list.
  20. * @see DetectionSequence
  21. * @see ObjectDataMap
  22. * @param keys A 1D vector of keys
  23. * @param values A 3D vector of values
  24. * @param sequence The sequence to store the created objects in
  25. */
  26. static void ParseObjectDataMap(
  27. const std::vector<std::string> &keys,
  28. const core::Vector3d &values,
  29. core::DetectionSequence &sequence);
  30. };
  31. }
  32. #endif //GBMOT_PARSE_H