MCSB  2.0.0
High-throughput shared memory middleware
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | List of all members
MCSB::dbprinter Class Reference

A simple debug printer class used in MCSB. More...

#include <MCSB/dbprinter.h>

Inheritance diagram for MCSB::dbprinter:
MCSB::BaseClient MCSB::Client

Public Types

enum  {
  kCritical =0, kError, kWarning, kNotice,
  kInfo, kDebug
}
 debug print levels are similar to RFC5424 for syslog
 

Public Member Functions

 dbprinter (int verbosity_=kNotice)
 Construct, setting the verbosity level.
 
int dbprintf (int level, const char *fmt,...) const
 behaves like fprintf(stderr,...) if verbosity is at or above the specified level
 
int dbprintf (int level, const char *fmt, va_list ap) const
 behaves like vfprintf(stderr,...) if verbosity is at or above the specified level
 
int Verbosity (void) const
 Get the current verbosity level.
 
int Verbosity (int v)
 Set the current verbosity level.
 

Detailed Description

A simple debug printer class used in MCSB.

dbprinter is used throughout MCSB, both internally and in the public interface. It provides the ability to set debug print verbosity at runtime.


The documentation for this class was generated from the following file: