a81cef4467
- Modularize common routines - Extract the block_dumper interface for displaying blocks - Remove inheritance from show_traits
22 lines
510 B
C++
22 lines
510 B
C++
#ifndef DBG_BLOCK_DUMPER_H
|
|
#define DBG_BLOCK_DUMPER_H
|
|
|
|
#include "persistent-data/block.h"
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
namespace dbg {
|
|
class block_dumper {
|
|
public:
|
|
typedef std::shared_ptr<block_dumper> ptr;
|
|
|
|
// pass the read_ref by reference since the caller already held the ref-count
|
|
virtual void show(persistent_data::block_manager::read_ref &rr,
|
|
std::ostream &out) = 0;
|
|
};
|
|
}
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
#endif
|