a81cef4467
- Modularize common routines - Extract the block_dumper interface for displaying blocks - Remove inheritance from show_traits
20 lines
494 B
C++
20 lines
494 B
C++
#include "dbg-lib/simple_show_traits.h"
|
|
|
|
using namespace dbg;
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
void
|
|
uint32_show_traits::show(formatter::ptr f, string const &key, uint32_t const &value)
|
|
{
|
|
field(*f, key, boost::lexical_cast<string>(value));
|
|
}
|
|
|
|
void
|
|
uint64_show_traits::show(formatter::ptr f, string const &key, uint64_t const &value)
|
|
{
|
|
field(*f, key, boost::lexical_cast<string>(value));
|
|
}
|
|
|
|
//----------------------------------------------------------------
|