![]() |
Public API Reference |
![]() |
Helper interface which applications and plugins can use to determine whether they should be verbose. More...
#include <iutil/verbositymanager.h>
Public Member Functions | |
virtual bool | Enabled (char const *flag=0, bool fuzzy=true) const =0 |
Check if verbosity should be enabled for a particular flag. | |
virtual void | Parse (char const *flags)=0 |
Parse additional verbosity flags. |
Helper interface which applications and plugins can use to determine whether they should be verbose.
At startup, --verbose=flags
command-line options are parsed. The results are made available via an instance of this interface in the global iObjectRegitry once csInitializer::CreateEnvironment() or csInitializer::CreateVerbosityManager() has been invoked. If you need to check verbosity during very early initialization, before an iVerbosityManager is available globally, you can instead use csParseVerbosity(), csCheckVerbosity(), or csVerbosityParser.
See the csVerbosityParser class description in <csutil/verbosity.h> for a highly detailed disucssion of the --verbose=flags
option syntax.
Definition at line 47 of file verbositymanager.h.
virtual bool iVerbosityManager::Enabled | ( | char const * | flag = 0 , |
bool | fuzzy = true |
||
) | const [pure virtual] |
Check if verbosity should be enabled for a particular flag.
flag | The flag for which verboseness should be queried. |
fuzzy | Whether the search should match flag exactly (fuzzy = false) or if it can traverse the inheritance chain when searching for a match (fuzzy = true). |
Implemented in csVerbosityManager.
virtual void iVerbosityManager::Parse | ( | char const * | flags | ) | [pure virtual] |
Parse additional verbosity flags.
Implemented in csVerbosityManager.