Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ULogParser Class Reference

#include <ulog_parser.h>

Classes

struct  DataStream
 
struct  Field
 
struct  Format
 
struct  MessageLog
 
struct  Parameter
 
struct  Subscription
 
struct  Timeseries
 

Public Types

enum  FormatType {
  UINT8, UINT16, UINT32, UINT64,
  INT8, INT16, INT32, INT64,
  FLOAT, DOUBLE, BOOL, CHAR,
  OTHER
}
 

Public Member Functions

const std::map< std::string, std::string > & getInfo () const
 
const std::vector< MessageLog > & getLogs () const
 
const std::vector< Parameter > & getParameters () const
 
const std::map< std::string, Timeseries > & getTimeseriesMap () const
 
 ULogParser (DataStream &datastream)
 

Private Member Functions

Timeseries createTimeseries (const Format *format)
 
size_t fieldsCount (const Format &format) const
 
void parseDataMessage (const Subscription &sub, char *message)
 
char * parseSimpleDataMessage (Timeseries &timeseries, const Format *format, char *message, size_t *index)
 
bool readFileDefinitions (DataStream &datastream)
 
bool readFileHeader (DataStream &datastream)
 
bool readFlagBits (DataStream &datastream, uint16_t msg_size)
 
bool readFormat (DataStream &datastream, uint16_t msg_size)
 
bool readInfo (DataStream &datastream, uint16_t msg_size)
 
bool readParameter (DataStream &datastream, uint16_t msg_size)
 
bool readSubscription (DataStream &datastream, uint16_t msg_size)
 
std::vector< StringViewsplitString (const StringView &strToSplit, char delimeter)
 

Private Attributes

std::streampos _data_section_start
 first ADD_LOGGED_MSG message More...
 
uint64_t _file_start_time
 
std::map< std::string, Format_formats
 
std::map< std::string, std::string > _info
 
std::vector< MessageLog_message_logs
 
std::set< std::string > _message_name_with_multi_id
 
std::set< std::string > _overridden_params
 
std::vector< Parameter_parameters
 
std::vector< uint8_t > _read_buffer
 
int64_t _read_until_file_position
 read limit if log contains appended data More...
 
std::map< uint16_t, Subscription_subscriptions
 
std::map< std::string, Timeseries_timeseries
 

Detailed Description

Definition at line 14 of file ulog_parser.h.

Member Enumeration Documentation

◆ FormatType

Enumerator
UINT8 
UINT16 
UINT32 
UINT64 
INT8 
INT16 
INT32 
INT64 
FLOAT 
DOUBLE 
BOOL 
CHAR 
OTHER 

Definition at line 39 of file ulog_parser.h.

Constructor & Destructor Documentation

◆ ULogParser()

ULogParser::ULogParser ( DataStream datastream)

Definition at line 12 of file ulog_parser.cpp.

Member Function Documentation

◆ createTimeseries()

ULogParser::Timeseries ULogParser::createTimeseries ( const Format format)
private

Definition at line 753 of file ulog_parser.cpp.

◆ fieldsCount()

size_t ULogParser::fieldsCount ( const Format format) const
private

Definition at line 296 of file ulog_parser.cpp.

◆ getInfo()

const std::map< std::string, std::string > & ULogParser::getInfo ( ) const

Definition at line 270 of file ulog_parser.cpp.

◆ getLogs()

const std::vector< ULogParser::MessageLog > & ULogParser::getLogs ( ) const

Definition at line 275 of file ulog_parser.cpp.

◆ getParameters()

const std::vector< ULogParser::Parameter > & ULogParser::getParameters ( ) const

Definition at line 265 of file ulog_parser.cpp.

◆ getTimeseriesMap()

const std::map< std::string, ULogParser::Timeseries > & ULogParser::getTimeseriesMap ( ) const

Definition at line 260 of file ulog_parser.cpp.

◆ parseDataMessage()

void ULogParser::parseDataMessage ( const Subscription sub,
char *  message 
)
private

Definition at line 128 of file ulog_parser.cpp.

◆ parseSimpleDataMessage()

char * ULogParser::parseSimpleDataMessage ( Timeseries timeseries,
const Format format,
char *  message,
size_t *  index 
)
private

Definition at line 164 of file ulog_parser.cpp.

◆ readFileDefinitions()

bool ULogParser::readFileDefinitions ( DataStream datastream)
private

Definition at line 359 of file ulog_parser.cpp.

◆ readFileHeader()

bool ULogParser::readFileHeader ( DataStream datastream)
private

Definition at line 335 of file ulog_parser.cpp.

◆ readFlagBits()

bool ULogParser::readFlagBits ( DataStream datastream,
uint16_t  msg_size 
)
private

Definition at line 429 of file ulog_parser.cpp.

◆ readFormat()

bool ULogParser::readFormat ( DataStream datastream,
uint16_t  msg_size 
)
private

Definition at line 484 of file ulog_parser.cpp.

◆ readInfo()

bool ULogParser::readInfo ( DataStream datastream,
uint16_t  msg_size 
)
private

Definition at line 645 of file ulog_parser.cpp.

◆ readParameter()

bool ULogParser::readParameter ( DataStream datastream,
uint16_t  msg_size 
)
private

Definition at line 737 of file ulog_parser.cpp.

◆ readSubscription()

bool ULogParser::readSubscription ( DataStream datastream,
uint16_t  msg_size 
)
private

Definition at line 280 of file ulog_parser.cpp.

◆ splitString()

std::vector< StringView > ULogParser::splitString ( const StringView strToSplit,
char  delimeter 
)
private

Definition at line 314 of file ulog_parser.cpp.

Member Data Documentation

◆ _data_section_start

std::streampos ULogParser::_data_section_start
private

first ADD_LOGGED_MSG message

Definition at line 151 of file ulog_parser.h.

◆ _file_start_time

uint64_t ULogParser::_file_start_time
private

Definition at line 145 of file ulog_parser.h.

◆ _formats

std::map<std::string, Format> ULogParser::_formats
private

Definition at line 158 of file ulog_parser.h.

◆ _info

std::map<std::string, std::string> ULogParser::_info
private

Definition at line 160 of file ulog_parser.h.

◆ _message_logs

std::vector<MessageLog> ULogParser::_message_logs
private

Definition at line 170 of file ulog_parser.h.

◆ _message_name_with_multi_id

std::set<std::string> ULogParser::_message_name_with_multi_id
private

Definition at line 168 of file ulog_parser.h.

◆ _overridden_params

std::set<std::string> ULogParser::_overridden_params
private

Definition at line 156 of file ulog_parser.h.

◆ _parameters

std::vector<Parameter> ULogParser::_parameters
private

Definition at line 147 of file ulog_parser.h.

◆ _read_buffer

std::vector<uint8_t> ULogParser::_read_buffer
private

Definition at line 149 of file ulog_parser.h.

◆ _read_until_file_position

int64_t ULogParser::_read_until_file_position
private
Initial value:
=
1ULL << 60

read limit if log contains appended data

Definition at line 153 of file ulog_parser.h.

◆ _subscriptions

std::map<uint16_t, Subscription> ULogParser::_subscriptions
private

Definition at line 162 of file ulog_parser.h.

◆ _timeseries

std::map<std::string, Timeseries> ULogParser::_timeseries
private

Definition at line 164 of file ulog_parser.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30