debug_dump.h File Reference

#include <iostream>
#include <utility>
#include <dvutil/iomanip.h>
Include dependency graph for debug_dump.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Dv

Typedefs

typedef std::pair< const char
*, size_t > 
Dv::Buffer
 Convenience type that allows to make iomanip objects from buffers.
typedef iomanip_c< Buffer > Dv::BufferDump
 Iomanipulator type corresponding to buffers.

Functions

std::ostream & Dv::debug_write (std::ostream &os, const char *buf, size_t n)
 Write a character buffer to a stream using only printable characters.
std::ostream & Dv::debug_write (std::ostream &os, const Buffer &buf)
 Write a character buffer to a stream using only printable characters.
BufferDump Dv::debug_dump (const char *buf, size_t size)
 Create an iomanip from a buffer with a size.
template<typename T >
BufferDump Dv::debug_dump_t (const T &t, size_t size=sizeof(T))
 Create an iomanip from an arbitrary object and a size.

dvutil-1.0.10 [ 5 December, 2009]