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

#include <configimpl.h>

Inheritance diagram for ConfigBool:
ConfigOption

Public Member Functions

 ConfigBool (const char *name, const char *doc, bool defVal)
 
QCString * valueStringRef ()
 
bool * valueRef ()
 
void convertStrToVal ()
 
void substEnvVars ()
 
void setValueString (const QCString &v)
 
void writeTemplate (FTextStream &t, bool sl, bool upd)
 
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

bool m_value
 
bool m_defValue
 
QCString m_valueString
 

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
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 a Boolean type option.

Definition at line 227 of file configimpl.h.

Constructor & Destructor Documentation

ConfigBool::ConfigBool ( const char *  name,
const char *  doc,
bool  defVal 
)
inline

Definition at line 230 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 ConfigBool::convertStrToVal ( )
virtual

Reimplemented from ConfigOption.

void ConfigBool::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 244 of file configimpl.h.

References m_defValue, and m_value.

void ConfigBool::setValueString ( const QCString &  v)
inline

Definition at line 242 of file configimpl.h.

References m_valueString.

{ m_valueString = v; }
void ConfigBool::substEnvVars ( )
virtual

Implements ConfigOption.

bool* ConfigBool::valueRef ( )
inline

Definition at line 239 of file configimpl.h.

References m_value.

{ return &m_value; }
QCString* ConfigBool::valueStringRef ( )
inline

Definition at line 238 of file configimpl.h.

References m_valueString.

{ return &m_valueString; }
void ConfigBool::writeTemplate ( FTextStream t,
bool  sl,
bool  upd 
)
virtual

Implements ConfigOption.

Member Data Documentation

bool ConfigBool::m_defValue
private

Definition at line 247 of file configimpl.h.

Referenced by ConfigBool(), and init().

bool ConfigBool::m_value
private

Definition at line 246 of file configimpl.h.

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

QCString ConfigBool::m_valueString
private

Definition at line 248 of file configimpl.h.

Referenced by setValueString(), and valueStringRef().


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