[ Lit Window Library at SourceForge[ Lit Window Productions Homepage ]  [ wxWidgets Tips&Tricks ]  [  wxVisualSetup ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

wrapping_strstreambuf Class Reference

A specialized version of a strstreambuf that wraps around instead of increasing the storage size when the end of the buffer has been reached.

List of all members.

Public Types

typedef dumper_tget_dumper_t

Public Member Functions

void clear_buffer ()
 Clears the entire buffer.
std::streamsize copy (std::string &destination) const
 Copies the entire buffer to the destination.
void set_dumper (get_dumper_t new_dumper)
 Set the dumper function.
 wrapping_strstreambuf (std::streamsize _Count=0x10000, get_dumper_t dumper=0)
 ~wrapping_strstreambuf ()

Protected Member Functions

virtual int overflow (int _Meta)

Protected Attributes

std::auto_ptr< dumper_tm_dump_function
 The dump function is called by the destructor and gives applications a chance to dump the contents of the wrap buffer to a file or debug channel.
bool m_has_wrapped


Member Typedef Documentation

typedef dumper_t* get_dumper_t
 


Constructor & Destructor Documentation

wrapping_strstreambuf std::streamsize  _Count = 0x10000,
get_dumper_t  dumper = 0
 

~wrapping_strstreambuf  ) 
 


Member Function Documentation

void clear_buffer  ) 
 

streamsize copy std::string &  destination  )  const
 

int overflow int  _Meta  )  [protected, virtual]
 

void set_dumper get_dumper_t  new_dumper  ) 
 


Member Data Documentation

std::auto_ptr<dumper_t> m_dump_function [protected]
 

bool m_has_wrapped [protected]
 


Copyright 2004, Hajo Kirchhoff, Lit Window Productions