My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ConfigEnum Class Reference

#include <configimpl.h>

Inheritance diagram for ConfigEnum:
ConfigOption

Public Member Functions

 ConfigEnum (const char *name, const char *doc, const char *defVal)
 
void addValue (const char *v)
 
QStrListIterator iterator ()
 
QCString * valueRef ()
 
void substEnvVars ()
 
void writeTemplate (FTextStream &t, bool sl, bool)
 
void init ()
 
- Public Member Functions inherited from ConfigOption
 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)
 
void setUserComment (const QCString &u)
 

Private Attributes

QStrList m_valueRange
 
QCString m_value
 
QCString m_defValue
 

Additional Inherited Members

- Public Types inherited from ConfigOption
enum  OptionType {
  O_Info, O_List, O_Enum, O_String,
  O_Int, O_Bool, O_Obsolete, O_Disabled
}
 
enum  { MAX_OPTION_LENGTH = 23 }
 
- Protected Member Functions inherited from ConfigOption
virtual void convertStrToVal ()
 
void writeBoolValue (FTextStream &t, bool v)
 
void writeIntValue (FTextStream &t, int i)
 
void writeStringValue (FTextStream &t, QCString &s)
 
void writeStringList (FTextStream &t, QStrList &l)
 
- Protected Attributes inherited from ConfigOption
QCString m_spaces
 
QCString m_name
 
QCString m_doc
 
QCString m_dependency
 
QCString m_encoding
 
QCString m_userComment
 
OptionType m_kind
 

Detailed Description

Class representing an enum type option.

Definition at line 137 of file configimpl.h.

Constructor & Destructor Documentation

ConfigEnum::ConfigEnum ( const char *  name,
const char *  doc,
const char *  defVal 
)
inline

Definition at line 140 of file configimpl.h.

References doc, m_defValue, ConfigOption::m_doc, ConfigOption::m_name, m_value, and ConfigOption::name().

{
m_value = defVal;
m_defValue = defVal;
}

Member Function Documentation

void ConfigEnum::addValue ( const char *  v)
inline

Definition at line 148 of file configimpl.h.

References m_valueRange.

{ m_valueRange.append(v); }
void ConfigEnum::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 156 of file configimpl.h.

References m_defValue, and m_value.

{ m_value = m_defValue.copy(); }
QStrListIterator ConfigEnum::iterator ( )
inline

Definition at line 149 of file configimpl.h.

References m_valueRange.

{
return QStrListIterator(m_valueRange);
}
void ConfigEnum::substEnvVars ( )
virtual

Implements ConfigOption.

QCString* ConfigEnum::valueRef ( )
inline

Definition at line 153 of file configimpl.h.

References m_value.

{ return &m_value; }
void ConfigEnum::writeTemplate ( FTextStream t,
bool  sl,
bool   
)
virtual

Implements ConfigOption.

Member Data Documentation

QCString ConfigEnum::m_defValue
private

Definition at line 161 of file configimpl.h.

Referenced by ConfigEnum(), and init().

QCString ConfigEnum::m_value
private

Definition at line 160 of file configimpl.h.

Referenced by ConfigEnum(), init(), and valueRef().

QStrList ConfigEnum::m_valueRange
private

Definition at line 159 of file configimpl.h.

Referenced by addValue(), and iterator().


The documentation for this class was generated from the following file: