mongo::RamLog Class Reference

#include <ramlog.h>

Inheritance diagram for mongo::RamLog:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void get (vector< const char * > &v) const
string linkify (const char *s)
 RamLog ()
void toHTML (stringstream &s)
virtual void write (LogLevel ll, const string &str)

Static Public Member Functions

static string clean (const vector< const char * > &v, int i, string line="")
static string color (string line)
static int repeats (const vector< const char * > &v, int i)

Private Types

enum  { N = 128, C = 256 }

Private Attributes

unsigned h
char lines [N][C]
unsigned n

Detailed Description

Definition at line 24 of file ramlog.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
N 
C 

Definition at line 23 of file ramlog.h.


Constructor & Destructor Documentation

mongo::RamLog::RamLog (  )  [inline]

Definition at line 31 of file ramlog.h.


Member Function Documentation

static string mongo::RamLog::clean ( const vector< const char * > &  v,
int  i,
string  line = "" 
) [inline, static]

Definition at line 67 of file ramlog.h.

static string mongo::RamLog::color ( string  line  )  [inline, static]

Definition at line 74 of file ramlog.h.

void mongo::RamLog::get ( vector< const char * > &  v  )  const [inline]

Definition at line 47 of file ramlog.h.

string mongo::RamLog::linkify ( const char *  s  )  [inline]

Definition at line 90 of file ramlog.h.

static int mongo::RamLog::repeats ( const vector< const char * > &  v,
int  i 
) [inline, static]

Definition at line 52 of file ramlog.h.

void mongo::RamLog::toHTML ( stringstream &  s  )  [inline]

Definition at line 104 of file ramlog.h.

virtual void mongo::RamLog::write ( LogLevel  ll,
const string &  str 
) [inline, virtual]

Implements mongo::Tee.

Definition at line 37 of file ramlog.h.


Member Data Documentation

unsigned mongo::RamLog::h [private]

Definition at line 28 of file ramlog.h.

char mongo::RamLog::lines[N][C] [private]

Definition at line 27 of file ramlog.h.

unsigned mongo::RamLog::n [private]

Definition at line 28 of file ramlog.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:57 2013