UWARG Computer Vision
metadata_reader.h
Go to the documentation of this file.
1 
16 #ifndef METADATA_READER_H_INCLUDED
17 #define METADATA_READER_H_INCLUDED
18 
19 #include "metadata_input.h"
20 #include "metadata.h"
21 #include <vector>
22 #include <string>
23 #include <unordered_map>
24 #include <boost/asio.hpp>
25 
31 public:
32 
33  /*
34  * @brief constructor for MetadataReader which reads log from a file
35  *
36  * Throws a runtime error if the file cannot be read
37  *
38  * @param filename Path of the file to be read
39  */
40  MetadataReader(MetadataInput &input, std::string filename);
41 
48  MetadataReader(MetadataInput &input, std::string addr, std::string port);
49 
50  ~MetadataReader();
51 private:
53 
58  void set_head_row(std::string headRow);
59 
67  void read_log();
68 
72  std::vector<std::string> heads;
73 
79  std::unordered_map<std::string, std::vector<std::string> > data;
80 
81  boost::asio::io_service ioService;
82  std::string addr, port;
83  std::string buffer;
84 
85  MetadataInput &input;
86 };
87 
88 #endif // METADATA_READER_H_INCLUDED
Structure for storing plane status information from the time that an image was taken.
A class for storing and searching telemetry logs.
Definition: metadata_input.h:32
A class for reading telemetry logs.
Definition: metadata_reader.h:30