This class handles category lists. More...
#include <mbl_log.h>
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_spec & | get (const vcl_string &category) const |
Get the closest matching entry;. | |
void | print (vcl_ostream &ss) const |
Private Attributes | |
vcl_map< vcl_string, cat_spec > | cat_list_ |
mbl_log_categories::mbl_log_categories | ( | ) |
Definition at line 495 of file mbl_log.cxx.
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.
vcl_map<vcl_string, cat_spec> mbl_log_categories::cat_list_ [private] |