OptionEntryBool Class Reference

#include <OptionEntry.h>

Inheritance diagram for OptionEntryBool:

OptionEntry ARGParserBoolI

List of all members.

Public Member Functions

 OptionEntryBool (std::list< OptionEntry * > &group, const char *name, const char *description, unsigned int data, bool defaultValue)
virtual ~OptionEntryBool ()
virtual EntryType getEntryType ()
virtual const char * getValueAsString ()
virtual const char * getDefaultValueAsString ()
virtual bool setValueFromString (const std::string &string)
virtual bool setValue (bool value)
virtual bool getValue ()
virtual bool addToArgParser (ARGParser &parser)
virtual bool setBoolArgument (bool value)
virtual bool isDefaultValue ()
 operator bool ()

Protected Attributes

bool defaultValue_
bool value_


Detailed Description

Definition at line 204 of file OptionEntry.h.


Constructor & Destructor Documentation

OptionEntryBool::OptionEntryBool ( std::list< OptionEntry * > &  group,
const char *  name,
const char *  description,
unsigned int  data,
bool  defaultValue 
)

Definition at line 458 of file OptionEntry.cpp.

OptionEntryBool::~OptionEntryBool (  )  [virtual]

Definition at line 469 of file OptionEntry.cpp.


Member Function Documentation

virtual EntryType OptionEntryBool::getEntryType (  )  [inline, virtual]

Implements OptionEntry.

Definition at line 214 of file OptionEntry.h.

References OptionEntry::OptionEntryBoolType.

const char * OptionEntryBool::getValueAsString (  )  [virtual]

Implements OptionEntry.

Definition at line 479 of file OptionEntry.cpp.

References value_.

const char * OptionEntryBool::getDefaultValueAsString (  )  [virtual]

Implements OptionEntry.

Definition at line 474 of file OptionEntry.cpp.

References defaultValue_.

Referenced by addToArgParser(), and ClientParams::reset().

bool OptionEntryBool::setValueFromString ( const std::string string  )  [virtual]

Implements OptionEntry.

Definition at line 484 of file OptionEntry.cpp.

References setValue(), and stricmp.

Referenced by ClientParams::reset().

bool OptionEntryBool::setValue ( bool  value  )  [virtual]

Definition at line 499 of file OptionEntry.cpp.

References OptionEntry::changedValue_, and value_.

Referenced by TipDialog::buttonDown(), SoundDialog::buttonDown(), HUDDialog::buttonDown(), AnimatedBackdropDialog::init(), setBoolArgument(), ClientParams::setStartCustom(), setValueFromString(), SettingsFrame::TransferDataFromWindow(), ServerSFrame::TransferDataFromWindow(), DisplayFrame::TransferDataFromWindow(), OptionEntrySetterUtil::updateEntries(), and GLWOptionEntry::updateEntries().

bool OptionEntryBool::getValue (  )  [virtual]

Definition at line 506 of file OptionEntry.cpp.

References value_.

Referenced by ServerWebServerUtil::generateSettingValue(), OptionsParameters::getAllowExceptions(), ServerParams::getHideWindow(), ServerParams::getServerCustom(), ClientParams::getStartCustom(), OptionEntrySetterUtil::updateControls(), and GLWOptionEntry::updateControls().

bool OptionEntryBool::addToArgParser ( ARGParser parser  )  [virtual]

Implements OptionEntry.

Definition at line 516 of file OptionEntry.cpp.

References ARGParser::addEntry(), getDefaultValueAsString(), OptionEntry::getDescription(), OptionEntry::getName(), and snprintf.

bool OptionEntryBool::setBoolArgument ( bool  value  )  [virtual]

Implements ARGParserBoolI.

Definition at line 511 of file OptionEntry.cpp.

References setValue().

virtual bool OptionEntryBool::isDefaultValue (  )  [inline, virtual]

Implements OptionEntry.

Definition at line 224 of file OptionEntry.h.

References defaultValue_, and value_.

OptionEntryBool::operator bool (  )  [inline]

Definition at line 226 of file OptionEntry.h.

References value_.


Member Data Documentation

bool OptionEntryBool::defaultValue_ [protected]

Definition at line 229 of file OptionEntry.h.

Referenced by getDefaultValueAsString(), and isDefaultValue().

bool OptionEntryBool::value_ [protected]

Definition at line 230 of file OptionEntry.h.

Referenced by getValue(), getValueAsString(), isDefaultValue(), operator bool(), and setValue().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:05 2009 for Scorched3D by  doxygen 1.5.3