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

#include <configimpl.h>

Inheritance diagram for ConfigInt:
ConfigOption

Public Member Functions

 ConfigInt (const char *name, const char *doc, int minVal, int maxVal, int defVal)
 
QCString * valueStringRef ()
 
int * valueRef ()
 
int minVal () const
 
int maxVal () const
 
void convertStrToVal ()
 
void substEnvVars ()
 
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

int m_value
 
int m_defValue
 
int m_minVal
 
int m_maxVal
 
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 an integer type option.

Definition at line 196 of file configimpl.h.

Constructor & Destructor Documentation

ConfigInt::ConfigInt ( const char *  name,
const char *  doc,
int  minVal,
int  maxVal,
int  defVal 
)
inline

Member Function Documentation

void ConfigInt::convertStrToVal ( )
virtual

Reimplemented from ConfigOption.

void ConfigInt::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 216 of file configimpl.h.

References m_defValue, and m_value.

int ConfigInt::maxVal ( ) const
inline

Definition at line 212 of file configimpl.h.

References m_maxVal.

Referenced by ConfigInt().

{ return m_maxVal; }
int ConfigInt::minVal ( ) const
inline

Definition at line 211 of file configimpl.h.

References m_minVal.

Referenced by ConfigInt().

{ return m_minVal; }
void ConfigInt::substEnvVars ( )
virtual

Implements ConfigOption.

int* ConfigInt::valueRef ( )
inline

Definition at line 210 of file configimpl.h.

References m_value.

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

Definition at line 209 of file configimpl.h.

References m_valueString.

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

Implements ConfigOption.

Member Data Documentation

int ConfigInt::m_defValue
private

Definition at line 219 of file configimpl.h.

Referenced by ConfigInt(), and init().

int ConfigInt::m_maxVal
private

Definition at line 221 of file configimpl.h.

Referenced by ConfigInt(), and maxVal().

int ConfigInt::m_minVal
private

Definition at line 220 of file configimpl.h.

Referenced by ConfigInt(), and minVal().

int ConfigInt::m_value
private

Definition at line 218 of file configimpl.h.

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

QCString ConfigInt::m_valueString
private

Definition at line 222 of file configimpl.h.

Referenced by valueStringRef().


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