refactor replay: split timestamp offset into separate method

This commit is contained in:
Beat Küng
2017-07-16 14:08:37 +02:00
committed by Lorenz Meier
parent 950273dbcf
commit cef3a29ac9
2 changed files with 48 additions and 31 deletions
+10
View File
@@ -112,6 +112,16 @@ protected:
int publication_counter = 0;
};
/**
* Find the offset & field size in bytes for a given field name
* @param format format string, as specified by ULog
* @param field_name search for this field
* @param offset returned offset
* @param field_size returned field size
* @return true if found, false otherwise
*/
static bool findFieldOffset(const std::string &format, const std::string &field_name, int &offset, int &field_size);
/**
* publish an orb topic
* @param sub