replay: handle INFO_MULTIPLE & FLAG_BITS ULog messages

This commit is contained in:
Beat Küng
2017-07-07 17:06:48 +02:00
committed by Lorenz Meier
parent c775b07b43
commit 9141bf8386
2 changed files with 63 additions and 0 deletions
+3
View File
@@ -169,6 +169,8 @@ private:
/** keep track of file position to avoid adding a subscription multiple times. */
std::streampos _subscription_file_pos = 0;
uint64_t _read_until_file_position = 1ULL << 60; ///< read limit if log contains appended data
bool readFileHeader(std::ifstream &file);
/**
@@ -181,6 +183,7 @@ private:
///file parsing methods. They return false, when further parsing should be aborted.
bool readFormat(std::ifstream &file, uint16_t msg_size);
bool readAndAddSubscription(std::ifstream &file, uint16_t msg_size);
bool readFlagBits(std::ifstream &file, uint16_t msg_size);
/**
* Read the file header and definitions sections. Apply the parameters from this section