From b2ef500e1d51f7f7955e551b37ba6790e6453a39 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Tue, 21 Dec 2010 15:26:02 -0500 Subject: [PATCH] lib: show offset and rectype in HexDumpParser --- src/parser.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/parser.cc b/src/parser.cc index dd3d9a20..7768391f 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -37,6 +37,8 @@ #include #include +using namespace std; + namespace Barry { ////////////////////////////////////////////////////////////////////////////// @@ -50,8 +52,11 @@ HexDumpParser::HexDumpParser(std::ostream &os) void HexDumpParser::ParseRecord(const Barry::DBData &data, const IConverter *ic) { - m_os << "Raw record dump for record: " - << std::hex << data.GetUniqueId() << std::endl; + m_os << "Raw record dump for record: 0x" + << hex << data.GetUniqueId() + << ", type: 0x" << hex << data.GetRecType() + << ", offset: 0x" << hex << data.GetOffset() + << endl; m_os << data.GetData() << std::endl; } -- 2.11.4.GIT