Doxygen
|
Abstract base class for any configuration option. More...
#include <src/configimpl.h>
Public Types | |
enum | OptionType { O_Info , O_List , O_Enum , O_String , O_Int , O_Bool , O_Obsolete , O_Disabled } |
enum | { MAX_OPTION_LENGTH = 23 } |
Public Member Functions | |
ConfigOption (OptionType t) | |
OptionType | kind () const |
QCString | name () const |
QCString | docs () const |
QCString | dependsOn () const |
void | addDependency (const char *dep) |
void | setEncoding (const QCString &e) |
void | setUserComment (const QCString &u) |
Protected Member Functions | |
virtual void | writeTemplate (TextStream &t, bool sl, bool upd)=0 |
virtual void | compareDoxyfile (TextStream &t, Config::CompareMode compareMode)=0 |
virtual void | writeXMLDoxyfile (TextStream &t)=0 |
virtual void | writeXSDDoxyfile (TextStream &t)=0 |
virtual void | convertStrToVal (Config::CompareMode) |
virtual void | emptyValueToDefault () |
virtual void | substEnvVars ()=0 |
virtual void | init () |
virtual bool | isDefault () |
void | writeBoolValue (TextStream &t, bool v, bool initSpace=true) |
void | writeIntValue (TextStream &t, int i, bool initSpace=true) |
void | writeStringValue (TextStream &t, const QCString &s, bool initSpace=true, bool wasQuoted=false) |
void | writeStringList (TextStream &t, const StringVector &l) |
Protected Attributes | |
QCString | m_spaces |
QCString | m_name |
QCString | m_doc |
QCString | m_dependency |
QCString | m_encoding |
QCString | m_userComment |
OptionType | m_kind |
Friends | |
class | ConfigImpl |
Abstract base class for any configuration option.
Definition at line 37 of file configimpl.h.
anonymous enum |
Enumerator | |
---|---|
MAX_OPTION_LENGTH | Maximum length of an option in the config file. Used for alignment purposes. |
Definition at line 56 of file configimpl.h.
The type of option
Definition at line 45 of file configimpl.h.
|
inline |
Definition at line 63 of file configimpl.h.
References m_kind, and m_spaces.
Referenced by ConfigBool::ConfigBool(), ConfigDisabled::ConfigDisabled(), ConfigEnum::ConfigEnum(), ConfigImpl, ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigObsolete::ConfigObsolete(), and ConfigString::ConfigString().
|
inline |
|
protectedpure virtual |
Implemented in ConfigBool, ConfigDisabled, ConfigEnum, ConfigInfo, ConfigInt, ConfigList, ConfigObsolete, and ConfigString.
Referenced by ConfigImpl::compareDoxyfile().
|
inlineprotectedvirtual |
Reimplemented in ConfigBool, ConfigEnum, and ConfigInt.
Definition at line 83 of file configimpl.h.
Referenced by ConfigImpl::convertStrToVal().
|
inline |
Definition at line 73 of file configimpl.h.
References m_dependency.
Referenced by Config::checkAndCorrect(), and ConfigImpl::init().
|
inline |
|
inlineprotectedvirtual |
Reimplemented in ConfigList, and ConfigString.
Definition at line 84 of file configimpl.h.
Referenced by ConfigImpl::emptyValueToDefault().
|
inlineprotectedvirtual |
Reimplemented in ConfigBool, ConfigEnum, ConfigInt, ConfigList, and ConfigString.
Definition at line 86 of file configimpl.h.
Referenced by ConfigImpl::init().
|
inlineprotectedvirtual |
Reimplemented in ConfigBool, ConfigEnum, ConfigInt, ConfigList, and ConfigString.
Definition at line 87 of file configimpl.h.
|
inline |
returns the kind of option this is.
Definition at line 69 of file configimpl.h.
References m_kind.
Referenced by Config::checkAndCorrect(), DocPara::handleDoxyConfig(), and Config::updateObsolete().
|
inline |
Definition at line 70 of file configimpl.h.
References m_name.
Referenced by Config::checkAndCorrect(), ConfigBool::ConfigBool(), ConfigDisabled::ConfigDisabled(), ConfigEnum::ConfigEnum(), ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigObsolete::ConfigObsolete(), ConfigString::ConfigString(), and ConfigImpl::init().
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in ConfigBool, ConfigDisabled, ConfigEnum, ConfigInfo, ConfigInt, ConfigList, ConfigObsolete, and ConfigString.
Referenced by ConfigImpl::substituteEnvironmentVars().
|
protected |
Definition at line 137 of file configimpl.l.
Referenced by ConfigBool::writeTemplate(), and ConfigBool::writeXMLDoxyfile().
|
protected |
Definition at line 143 of file configimpl.l.
Referenced by ConfigInt::writeTemplate(), and ConfigInt::writeXMLDoxyfile().
|
protected |
Definition at line 181 of file configimpl.l.
References QCString::at(), FALSE, QCString::length(), QCString::mid(), TRUE, and writeStringValue().
Referenced by ConfigList::writeTemplate().
|
protected |
Definition at line 149 of file configimpl.l.
References configStringRecode(), QCString::data(), QCString::isEmpty(), and m_encoding.
Referenced by writeStringList(), ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), ConfigEnum::writeXMLDoxyfile(), ConfigList::writeXMLDoxyfile(), and ConfigString::writeXMLDoxyfile().
|
protectedpure virtual |
Implemented in ConfigBool, ConfigDisabled, ConfigEnum, ConfigInfo, ConfigInt, ConfigList, ConfigObsolete, and ConfigString.
Referenced by ConfigImpl::writeTemplate().
|
protectedpure virtual |
Implemented in ConfigBool, ConfigDisabled, ConfigEnum, ConfigInfo, ConfigInt, ConfigList, ConfigObsolete, and ConfigString.
Referenced by ConfigImpl::writeXMLDoxyfile().
|
protectedpure virtual |
Implemented in ConfigBool, ConfigDisabled, ConfigEnum, ConfigInfo, ConfigInt, ConfigList, ConfigObsolete, and ConfigString.
Referenced by ConfigImpl::writeXSDDoxyfile().
|
friend |
Definition at line 39 of file configimpl.h.
References ConfigImpl, and ConfigOption().
Referenced by ConfigImpl.
|
protected |
Definition at line 97 of file configimpl.h.
Referenced by addDependency(), and dependsOn().
|
protected |
Definition at line 96 of file configimpl.h.
Referenced by ConfigBool::ConfigBool(), ConfigEnum::ConfigEnum(), ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigString::ConfigString(), docs(), ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigInfo::writeTemplate(), ConfigInt::writeTemplate(), ConfigList::writeTemplate(), and ConfigString::writeTemplate().
|
protected |
Definition at line 98 of file configimpl.h.
Referenced by setEncoding(), and writeStringValue().
|
protected |
Definition at line 100 of file configimpl.h.
Referenced by ConfigOption(), and kind().
|
protected |
Definition at line 95 of file configimpl.h.
Referenced by ConfigBool::ConfigBool(), ConfigDisabled::ConfigDisabled(), ConfigEnum::ConfigEnum(), ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigObsolete::ConfigObsolete(), ConfigString::ConfigString(), ConfigBool::convertStrToVal(), ConfigEnum::convertStrToVal(), ConfigInt::convertStrToVal(), name(), ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigInt::writeTemplate(), ConfigList::writeTemplate(), ConfigString::writeTemplate(), ConfigBool::writeXMLDoxyfile(), ConfigEnum::writeXMLDoxyfile(), ConfigInt::writeXMLDoxyfile(), ConfigList::writeXMLDoxyfile(), ConfigString::writeXMLDoxyfile(), ConfigBool::writeXSDDoxyfile(), ConfigDisabled::writeXSDDoxyfile(), ConfigEnum::writeXSDDoxyfile(), ConfigInt::writeXSDDoxyfile(), ConfigList::writeXSDDoxyfile(), and ConfigString::writeXSDDoxyfile().
|
protected |
Definition at line 94 of file configimpl.h.
Referenced by ConfigOption(), ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigInt::writeTemplate(), ConfigList::writeTemplate(), and ConfigString::writeTemplate().
|
protected |
Definition at line 99 of file configimpl.h.
Referenced by ConfigImpl::compareDoxyfile(), setUserComment(), ConfigBool::writeTemplate(), ConfigEnum::writeTemplate(), ConfigInt::writeTemplate(), ConfigList::writeTemplate(), and ConfigString::writeTemplate().