Classes | Public Member Functions | Private Attributes
mbl_log_categories Class Reference

This class handles category lists. More...

#include <mbl_log.h>

List of all members.

Classes

struct  cat_spec

Public Member Functions

 mbl_log_categories ()
void config (vcl_istream &, const vcl_map< vcl_string, vcl_ostream * > &stream_names)
 Configure whole category list from a file.
void clear ()
 Make the category list empty;.
const cat_specget (const vcl_string &category) const
 Get the closest matching entry;.
void print (vcl_ostream &ss) const

Private Attributes

vcl_map< vcl_string, cat_speccat_list_

Detailed Description

This class handles category lists.

Definition at line 269 of file mbl_log.h.


Constructor & Destructor Documentation

mbl_log_categories::mbl_log_categories ( )

Definition at line 495 of file mbl_log.cxx.


Member Function Documentation

void mbl_log_categories::clear ( )

Make the category list empty;.

An "empty" list still contains a root entry.

Definition at line 620 of file mbl_log.cxx.

void mbl_log_categories::config ( vcl_istream &  s,
const vcl_map< vcl_string, vcl_ostream * > &  stream_names 
)

Configure whole category list from a file.

New entries are added to any existing category details.

Definition at line 595 of file mbl_log.cxx.

const mbl_log_categories::cat_spec & mbl_log_categories::get ( const vcl_string &  category) const

Get the closest matching entry;.

Definition at line 655 of file mbl_log.cxx.

void mbl_log_categories::print ( vcl_ostream &  ss) const

Definition at line 669 of file mbl_log.cxx.


Member Data Documentation

vcl_map<vcl_string, cat_spec> mbl_log_categories::cat_list_ [private]

Definition at line 298 of file mbl_log.h.


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