added helper for dumping messages, corrected line number printing

This commit is contained in:
john30
2015-02-21 16:19:02 +01:00
parent 2786e44d73
commit e484bf57b9
4 changed files with 106 additions and 11 deletions
+13 -1
View File
@@ -240,6 +240,12 @@ public:
*/
bool isLessPollWeight(const Message* other);
/**
* Write the message definition to the @a ostream.
* @param output the @a ostream to append the formatted value to.
*/
void dump(ostream& output);
private:
/** the optional device class. */
@@ -261,7 +267,7 @@ private:
/** the source address, or @a SYN for any (only relevant if passive). */
const unsigned char m_srcAddress;
/** the destination address. */
/** the destination address, or @a SYN for any (only for temporary scan messages). */
const unsigned char m_dstAddress;
/** the primary, secondary, and optionally further command ID bytes. */
@@ -396,6 +402,12 @@ public:
*/
Message* getNextPoll();
/**
* Write the message definitions to the @a ostream.
* @param output the @a ostream to append the formatted messages to.
*/
void dump(ostream& output);
private:
/** the minimum ID length used by any of the known @a Message instances. */