![]() |
Public API Reference |
![]() |
Verbosity management helpers. More...
#include "csextern.h"
#include "iutil/verbositymanager.h"
#include "csutil/strhash.h"
#include "csutil/csstring.h"
#include "csutil/scf_implementation.h"
#include "csutil/deprecated_warn_off.h"
#include "csutil/deprecated_warn_on.h"
Go to the source code of this file.
Classes | |
class | csVerbosityManager |
Default iVerbosityManager implementation. More... | |
class | csVerbosityParser |
Utility for parsing verbosity flags such as those provided by the --verbose=flags command-line option. More... | |
Functions | |
bool | csCheckVerbosity (int argc, char const *const argv[], char const *flag=0, bool fuzzy=true) |
Search command-line arguments for --verbosity=flags options, and check if flag is enabled or disabled. | |
bool | csCheckVerbosity (int argc, char const *const argv[], char const *major, char const *minor) |
Given major and minor components, check if the verbosity class "major.minor" is enabled via the command-line `--verbose' switch. | |
csVerbosityParser | csParseVerbosity (int argc, char const *const argv[]) |
Construct a csVerbosityParser from --verbosity=flags options given on the command-line. |
Verbosity management helpers.
Definition in file verbosity.h.
bool csCheckVerbosity | ( | int | argc, |
char const *const | argv[], | ||
char const * | flag = 0 , |
||
bool | fuzzy = true |
||
) |
Search command-line arguments for --verbosity=flags
options, and check if flag is enabled or disabled.
Enabled(flags)
on the constructed verbosity parser. See the csParseVerbosity() and csVerbosityParser::Enabled() for a description of the arguments to this function. bool csCheckVerbosity | ( | int | argc, |
char const *const | argv[], | ||
char const * | major, | ||
char const * | minor | ||
) |
Given major and minor components, check if the verbosity class "major.minor" is enabled via the command-line `--verbose' switch.
csVerbosityParser csParseVerbosity | ( | int | argc, |
char const *const | argv[] | ||
) |
Construct a csVerbosityParser from --verbosity=flags
options given on the command-line.
argc | Command-line argument count from main(). |
argv | Command-line argument vector from main(). |
flags
text following the equal sign in each --verbose=flags
option (if present) and constructs a csVerbosityParser with the extracted text.