CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csVerbosityParser Class Reference

Class to parse verbosity flags and allow checking of them. More...

#include <csutil/verbosity.h>

List of all members.

Public Member Functions

 csVerbosityParser (const char *flags)
 Construct the verbose flag parser.
bool CheckFlag (const char *msgClass, const char *msgSubclass=0)
 Check for the verbosity of a class and subclass pair.


Detailed Description

Class to parse verbosity flags and allow checking of them.

This class is also internally used by csCheckVerbosity() and csVerbosityManager.

The syntax is [+|-]class{:[+|-]subclass}{,[+|-]class{:[+|-]subclass}}. class and subclass specify the verbosity class and, for more fine-grained control, the verbosity subclass names; they match the strings passed to CheckFlag() at runtime. The "<tt>+</tt>" and "<tt>-</tt>" flags specify the actual verbosity; "<tt>+</tt>" enables, "<tt>-</tt>" disables verbosity for a specific class or subclass. There are the special class and subclass names "<tt>*</tt>" which control the default verbosity for all classes or subclasses of a class; they allow to enable or disable only specific classes or subclasses, e.g. --verbose=*,-scf will enable verbosity for everything except the SCF diagnostic information.

Definition at line 48 of file verbosity.h.


Constructor & Destructor Documentation

csVerbosityParser::csVerbosityParser const char *  flags  ) 
 

Construct the verbose flag parser.

Parameters:
flags Verbosity flags. Note: 0 and "" have different meanings: 0 means "always return false", "" means "always return true".


Member Function Documentation

bool csVerbosityParser::CheckFlag const char *  msgClass,
const char *  msgSubclass = 0
 

Check for the verbosity of a class and subclass pair.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1