diff options
Diffstat (limited to 'decoder/include/pkt_printers/item_printer.h')
-rw-r--r-- | decoder/include/pkt_printers/item_printer.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/decoder/include/pkt_printers/item_printer.h b/decoder/include/pkt_printers/item_printer.h index cc3ec37..0f1feeb 100644 --- a/decoder/include/pkt_printers/item_printer.h +++ b/decoder/include/pkt_printers/item_printer.h @@ -52,14 +52,21 @@ public: const int getTestWaits() const; void decTestWaits(); + // mute printers when profiling + void setMute(bool mute); + const bool is_muted() const; + + protected: ocsdMsgLogger *m_pMsgLogger; int m_test_waits; + bool m_mute; }; inline ItemPrinter::ItemPrinter() : m_pMsgLogger(0), - m_test_waits(0) + m_test_waits(0), + m_mute(false) { } @@ -89,6 +96,16 @@ inline void ItemPrinter::decTestWaits() m_test_waits--; } +inline void ItemPrinter::setMute(bool mute) +{ + m_mute = mute; +} + +inline const bool ItemPrinter::is_muted() const +{ + return m_mute; +} + #endif // ARM_ITEM_PRINTER_H_INCLUDED /* End of File item_printer.h */ |