Doxygen
|
Public function to deal with the configuration file. More...
Enumerations | |
enum class | CompareMode { Full , Compressed , CompressedNoEnv } |
Functions | |
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 () |
Public function to deal with the configuration file.
|
strong |
void Config::checkAndCorrect | ( | bool | quiet, |
const bool | check ) |
Check the validity of the parsed options and correct or warn the user where needed.
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) |
Definition at line 1761 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().
void Config::compareDoxyfile | ( | TextStream & | t, |
Config::CompareMode | compareMode ) |
Writes a the differences between the current configuration and the template configuration to stream t.
Definition at line 2343 of file configimpl.l.
References ConfigImpl::compareDoxyfile(), FALSE, ConfigImpl::instance(), and postProcess().
Referenced by compareDoxyfile().
void Config::deinit | ( | ) |
Clean up any data
Definition at line 2391 of file configimpl.l.
References ConfigImpl::deleteInstance(), and ConfigImpl::instance().
Referenced by generateOutput().
void Config::init | ( | ) |
Initialize configuration variables to their default value
Definition at line 1670 of file configimpl.l.
References ConfigImpl::init(), and ConfigImpl::instance().
Referenced by readConfiguration().
bool Config::parse | ( | const QCString & | fileName, |
bool | update = FALSE, | ||
Config::CompareMode | compareMode = CompareMode::Full ) |
Parses a configuration file with name fn.
Definition at line 2359 of file configimpl.l.
References g_compareMode, g_config, ConfigString::init(), ConfigImpl::instance(), and ConfigImpl::parse().
Referenced by readConfiguration().
void Config::postProcess | ( | bool | clearHeaderAndFooter, |
Config::CompareMode | compareMode = CompareMode::Full ) |
Post processed the parsed data. Replaces raw string values by the actual values. and replaces environment variables.
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. |
Definition at line 2373 of file configimpl.l.
References CompressedNoEnv, Config_updateString, Full, and ConfigImpl::instance().
Referenced by checkConfiguration(), compareDoxyfile(), and readConfiguration().
void Config::updateObsolete | ( | ) |
Adjust any configuration values based on the value of obsolete options.
Definition at line 2238 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().
void Config::writeTemplate | ( | TextStream & | t, |
bool | shortList, | ||
bool | updateOnly = FALSE ) |
Writes a template configuration to stream t. If shortList is TRUE
the description of each configuration option will be omitted.
Definition at line 2338 of file configimpl.l.
References ConfigImpl::instance(), and ConfigImpl::writeTemplate().
Referenced by generateConfigFile().
void Config::writeXMLDoxyfile | ( | TextStream & | t | ) |
Writes a the used settings of the current configuration as XML format to stream t.
Definition at line 2349 of file configimpl.l.
References ConfigImpl::instance(), and ConfigImpl::writeXMLDoxyfile().
Referenced by generateXML().
void Config::writeXSDDoxyfile | ( | TextStream & | t | ) |
Writes all possible setting ids to an XSD file for validation through the stream t.
Definition at line 2354 of file configimpl.l.
References ConfigImpl::instance(), and ConfigImpl::writeXSDDoxyfile().
Referenced by generateXML().