added helper for dumping messages, corrected line number printing
This commit is contained in:
+13
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user