87 std::vector<std::pair<std::string, std::vector<double>>>
data;
97 const std::map<std::string, std::string>&
getInfo()
const;
99 const std::vector<MessageLog>&
getLogs()
const;
111 memcpy(dst, &data[offset], len);
115 operator bool() {
return offset < data.size(); }
150 std::map<std::string, std::string>
_info;
std::vector< uint64_t > timestamps
const std::vector< MessageLog > & getLogs() const
enum MQTTPropertyCodes value
Timeseries createTimeseries(const Format *format)
FMT_INLINE std::basic_string< Char > format(const S &format_str, Args &&...args)
std::vector< MessageLog > _message_logs
std::streampos _data_section_start
first ADD_LOGGED_MSG message
bool readParameter(DataStream &datastream, uint16_t msg_size)
uint64_t _file_start_time
std::vector< Parameter > _parameters
std::map< std::string, Timeseries > _timeseries
nonstd::string_view StringView
basic_string_view< char > string_view
std::vector< StringView > splitString(const StringView &strToSplit, char delimeter)
bool readSubscription(DataStream &datastream, uint16_t msg_size)
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
const std::vector< Parameter > & getParameters() const
std::vector< uint8_t > _read_buffer
std::set< std::string > _message_name_with_multi_id
void read(char *dst, int len)
char * parseSimpleDataMessage(Timeseries ×eries, const Format *format, char *message, size_t *index)
bool readInfo(DataStream &datastream, uint16_t msg_size)
bool readFormat(DataStream &datastream, uint16_t msg_size)
std::map< std::string, Format > _formats
std::vector< std::pair< std::string, std::vector< double > > > data
void parseDataMessage(const Subscription &sub, char *message)
std::map< uint16_t, Subscription > _subscriptions
bool readFlagBits(DataStream &datastream, uint16_t msg_size)
bool readFileHeader(DataStream &datastream)
bool readFileDefinitions(DataStream &datastream)
const std::map< std::string, std::string > & getInfo() const
std::string other_type_ID