#include <config.h>
Inheritance diagram for ConfigOption:
Public Types | |
enum | OptionType { O_Info, O_List, O_Enum, O_String, O_Int, O_Bool, O_Obsolete } |
enum | { MAX_OPTION_LENGTH = 23 } |
Public Member Functions | |
ConfigOption (OptionType t) | |
virtual | ~ConfigOption () |
OptionType | kind () const |
QCString | name () const |
QCString | docs () const |
QCString | dependsOn () const |
void | addDependency (const char *dep) |
void | setEncoding (const QCString &e) |
Protected Member Functions | |
virtual void | writeTemplate (QTextStream &t, bool sl, bool upd)=0 |
virtual void | convertStrToVal () |
virtual void | substEnvVars ()=0 |
virtual void | init () |
QCString | convertToComment (const QCString &s) |
void | writeBoolValue (QTextStream &t, bool v) |
void | writeIntValue (QTextStream &t, int i) |
void | writeStringValue (QTextStream &t, QCString &s) |
void | writeStringList (QTextStream &t, QStrList &l) |
Protected Attributes | |
QCString | m_spaces |
QCString | m_name |
QCString | m_doc |
QCString | m_dependency |
QCString | m_encoding |
OptionType | m_kind |
Friends | |
class | Config |
Definition at line 14 of file config.h.
anonymous enum |
ConfigOption::ConfigOption | ( | OptionType | t | ) | [inline] |
OptionType ConfigOption::kind | ( | ) | const [inline] |
returns the kind of option this is.
Definition at line 47 of file config.h.
References m_kind.
Referenced by Config::getBool(), Config::getEnum(), Config::getInt(), Config::getList(), and Config::getString().
QCString ConfigOption::name | ( | ) | const [inline] |
QCString ConfigOption::docs | ( | ) | const [inline] |
QCString ConfigOption::dependsOn | ( | ) | const [inline] |
void ConfigOption::addDependency | ( | const char * | dep | ) | [inline] |
void ConfigOption::setEncoding | ( | const QCString & | e | ) | [inline] |
virtual void ConfigOption::writeTemplate | ( | QTextStream & | t, | |
bool | sl, | |||
bool | upd | |||
) | [protected, pure virtual] |
Implemented in ConfigInfo, ConfigList, ConfigEnum, ConfigString, ConfigInt, ConfigBool, and ConfigObsolete.
Referenced by Config::writeTemplate().
virtual void ConfigOption::convertStrToVal | ( | ) | [inline, protected, virtual] |
Reimplemented in ConfigInt, and ConfigBool.
Definition at line 57 of file config.h.
Referenced by Config::convertStrToVal().
virtual void ConfigOption::substEnvVars | ( | ) | [protected, pure virtual] |
Implemented in ConfigInfo, ConfigList, ConfigEnum, ConfigString, ConfigInt, ConfigBool, and ConfigObsolete.
Referenced by Config::substituteEnvironmentVars().
virtual void ConfigOption::init | ( | ) | [inline, protected, virtual] |
Reimplemented in ConfigList, ConfigEnum, ConfigString, ConfigInt, and ConfigBool.
Definition at line 59 of file config.h.
Referenced by Config::init().
QCString ConfigOption::convertToComment | ( | const QCString & | s | ) | [protected] |
Definition at line 662 of file config.cpp.
References QCString.
Referenced by ConfigBool::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), ConfigEnum::writeTemplate(), and ConfigList::writeTemplate().
void ConfigOption::writeBoolValue | ( | QTextStream & | t, | |
bool | v | |||
) | [protected] |
void ConfigOption::writeIntValue | ( | QTextStream & | t, | |
int | i | |||
) | [protected] |
void ConfigOption::writeStringValue | ( | QTextStream & | t, | |
QCString & | s | |||
) | [protected] |
Definition at line 692 of file config.cpp.
References m_encoding, and QCString.
Referenced by writeStringList(), ConfigBool::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), and ConfigEnum::writeTemplate().
void ConfigOption::writeStringList | ( | QTextStream & | t, | |
QStrList & | l | |||
) | [protected] |
Definition at line 722 of file config.cpp.
References QCString, and writeStringValue().
Referenced by ConfigList::writeTemplate().
QCString ConfigOption::m_spaces [protected] |
Definition at line 67 of file config.h.
Referenced by ConfigOption(), ConfigBool::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), ConfigEnum::writeTemplate(), and ConfigList::writeTemplate().
QCString ConfigOption::m_name [protected] |
Definition at line 68 of file config.h.
Referenced by ConfigBool::ConfigBool(), ConfigEnum::ConfigEnum(), ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigString::ConfigString(), ConfigBool::convertStrToVal(), ConfigInt::convertStrToVal(), name(), ConfigBool::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), ConfigEnum::writeTemplate(), and ConfigList::writeTemplate().
QCString ConfigOption::m_doc [protected] |
Definition at line 69 of file config.h.
Referenced by ConfigBool::ConfigBool(), ConfigEnum::ConfigEnum(), ConfigInfo::ConfigInfo(), ConfigInt::ConfigInt(), ConfigList::ConfigList(), ConfigString::ConfigString(), docs(), ConfigBool::writeTemplate(), ConfigInt::writeTemplate(), ConfigString::writeTemplate(), ConfigEnum::writeTemplate(), ConfigList::writeTemplate(), and ConfigInfo::writeTemplate().
QCString ConfigOption::m_dependency [protected] |
QCString ConfigOption::m_encoding [protected] |
OptionType ConfigOption::m_kind [protected] |