71 std::vector<std::pair<std::string,std::vector<double>>>
data;
82 const std::map<std::string, std::string> &
getInfo()
const;
84 const std::vector<MessageLog> &
getLogs()
const;
91 bool readFormat(std::ifstream &file, uint16_t msg_size);
93 bool readFlagBits(std::ifstream &file, uint16_t msg_size);
95 bool readInfo(std::ifstream &file, uint16_t msg_size);
119 std::map<std::string, std::string>
_info;
136 #endif // ULOG_PARSER_H std::vector< uint64_t > timestamps
const std::vector< MessageLog > & getLogs() const
Timeseries createTimeseries(const Format *format)
std::vector< MessageLog > _message_logs
bool readSubscription(std::ifstream &file, uint16_t msg_size)
std::streampos _data_section_start
first ADD_LOGGED_MSG message
bool readParameter(std::ifstream &file, uint16_t msg_size)
std::vector< std::pair< std::string, std::vector< double > > > data
uint64_t _file_start_time
std::vector< Parameter > _parameters
std::map< std::string, Timeseries > _timeseries
nonstd::string_view StringView
bool readFileHeader(std::ifstream &file)
std::vector< StringView > splitString(const StringView &strToSplit, char delimeter)
char padding[ABSL_CACHELINE_SIZE-2 *sizeof(int)]
bool readFileDefinitions(std::ifstream &file)
int64_t _read_until_file_position
read limit if log contains appended data
std::set< std::string > _overridden_params
const std::map< std::string, Timeseries > & getTimeseriesMap() const
ULogParser(const std::string &filename)
size_t fieldsCount(const Format &format) const
std::map< std::string, std::string > _info
std::string format(const std::string &, const time_point< seconds > &, const femtoseconds &, const time_zone &)
std::map< uint16_t, Subscription > _subscriptions
const std::vector< Parameter > & getParameters() const
std::vector< uint8_t > _read_buffer
std::set< std::string > _message_name_with_multi_id
bool readInfo(std::ifstream &file, uint16_t msg_size)
char * parseSimpleDataMessage(Timeseries ×eries, const Format *format, char *message, size_t *index)
std::map< std::string, Format > _formats
void parseDataMessage(const Subscription &sub, char *message)
bool readFormat(std::ifstream &file, uint16_t msg_size)
bool readFlagBits(std::ifstream &file, uint16_t msg_size)
const std::map< std::string, std::string > & getInfo() const
std::string other_type_ID