The Config
Namespace Reference
Public function to deal with the configuration file. More...
Definition
Enumerations Index
enum class | CompareMode { ... } |
Functions Index
void | init () |
void | writeTemplate (TextStream &t, bool shortList, bool updateOnly=FALSE) |
void | compareDoxyfile (TextStream &t, CompareMode compareMode) |
void | writeXMLDoxyfile (TextStream &t) |
void | writeXSDDoxyfile (TextStream &t) |
bool | parse (const QCString &fileName, bool update=FALSE, CompareMode compareMode=CompareMode::Full) |
void | postProcess (bool clearHeaderAndFooter, CompareMode compareMode=CompareMode::Full) |
void | checkAndCorrect (bool quiet, const bool check) |
void | updateObsolete () |
void | deinit () |
Description
Public function to deal with the configuration file.
Enumerations
CompareMode
| strong |
Definition at line 54 of file config.h.
Functions
checkAndCorrect()
|
Check the validity of the parsed options and correct or warn the user where needed.
- Parameters
-
quiet setting for the QUIET option (can have been overruled by means of a command line option)
check check HTML / LaTeX header file etc. on existence (and terminate when not present)
Declaration at line 98 of file config.h, definition at line 1753 of file configimpl.l.
References adjustBoolSetting, adjustColorStyleSetting, adjustStringSetting, QCString::at, checkFileName, checkList, cleanUpPaths, Portable::commandExtension, Config_getBool, Config_getEnum, Config_getEnumAsString, Config_getInt, Config_getList, Config_getString, ConfigImpl::config_term, Config_updateBool, Config_updateEnum, Config_updateInt, Config_updateList, Config_updateString, ConfigImpl_getBool, Dir::currentDirPath, ConfigOption::dependsOn, FileInfo::dirPath, err, FileInfo::exists, FALSE, QCString::find, FileInfo::isDir, QCString::isEmpty, FileInfo::isFile, ConfigOption::kind, QCString::length, QCString::lower, ConfigOption::name, ConfigOption::O_Bool, Portable::pathSeparator, qPrint, QCString::startsWith, QCString::str, stripFromPath, QCString::stripWhiteSpace, TRUE and warn_uncond.
Referenced by checkConfiguration and readConfiguration.
compareDoxyfile()
|
Writes a the differences between the current configuration and the template configuration to stream t.
Declaration at line 68 of file config.h, definition at line 2348 of file configimpl.l.
References ConfigImpl::compareDoxyfile, FALSE, ConfigImpl::instance and postProcess.
Referenced by compareDoxyfile.
deinit()
|
Clean up any data
Declaration at line 104 of file config.h, definition at line 2396 of file configimpl.l.
References ConfigImpl::deleteInstance and ConfigImpl::instance.
Referenced by generateOutput.
init()
|
Initialize configuration variables to their default value
Declaration at line 57 of file config.h, definition at line 1662 of file configimpl.l.
References ConfigImpl::init and ConfigImpl::instance.
Referenced by readConfiguration.
parse()
|
Parses a configuration file with name fn.
- Returns
TRUE if successful, FALSE if the file could not be opened or read.
Declaration at line 84 of file config.h, definition at line 2364 of file configimpl.l.
References g_compareMode, g_config, ConfigString::init, ConfigImpl::instance and ConfigImpl::parse.
Referenced by readConfiguration.
postProcess()
|
Post processed the parsed data. Replaces raw string values by the actual values. and replaces environment variables.
- Parameters
-
clearHeaderAndFooter set to TRUE when writing header and footer templates.
compareMode signals if we in Doxyfile compare (-x or -x_noenv) mode are or not. Influences setting of the default value and replacement of environment variables and CMake type replacement variables.
Declaration at line 92 of file config.h, definition at line 2378 of file configimpl.l.
References CompressedNoEnv, Config_updateString, Full and ConfigImpl::instance.
Referenced by checkConfiguration, compareDoxyfile and readConfiguration.
updateObsolete()
|
Adjust any configuration values based on the value of obsolete options.
Declaration at line 101 of file config.h, definition at line 2243 of file configimpl.l.
References convertStringToBool, ConfigImpl::get, ConfigImpl::instance, QCString::isEmpty, ConfigObsolete::isPresent, ConfigOption::kind, QCString::lower, ConfigOption::O_Bool, ConfigOption::O_Obsolete, ConfigObsolete::orgType, DotAttributes::str, updateAttribute, ConfigEnum::valueRef, ConfigBool::valueStringRef, ConfigObsolete::valueStringRef and warn_uncond.
Referenced by checkConfiguration and readConfiguration.
writeTemplate()
|
Writes a template configuration to stream t. If shortList is TRUE the description of each configuration option will be omitted.
Declaration at line 63 of file config.h, definition at line 2343 of file configimpl.l.
References ConfigImpl::instance and ConfigImpl::writeTemplate.
Referenced by generateConfigFile.
writeXMLDoxyfile()
|
Writes a the used settings of the current configuration as XML format to stream t.
Declaration at line 73 of file config.h, definition at line 2354 of file configimpl.l.
References ConfigImpl::instance and ConfigImpl::writeXMLDoxyfile.
Referenced by generateXML.
writeXSDDoxyfile()
|
Writes all possible setting ids to an XSD file for validation through the stream t.
Declaration at line 78 of file config.h, definition at line 2359 of file configimpl.l.
References ConfigImpl::instance and ConfigImpl::writeXSDDoxyfile.
Referenced by generateXML.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.