OptionEntryInt Class Reference

#include <OptionEntry.h>

Inheritance diagram for OptionEntryInt:

OptionEntry ARGParserIntI OptionEntryBoundedInt OptionEntryEnum

List of all members.

Public Member Functions

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

Protected Attributes

int defaultValue_
int value_


Detailed Description

Definition at line 112 of file OptionEntry.h.


Constructor & Destructor Documentation

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

Definition at line 278 of file OptionEntry.cpp.

OptionEntryInt::~OptionEntryInt (  )  [virtual]

Definition at line 289 of file OptionEntry.cpp.


Member Function Documentation

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

Implements OptionEntry.

Reimplemented in OptionEntryBoundedInt, and OptionEntryEnum.

Definition at line 122 of file OptionEntry.h.

References OptionEntry::OptionEntryIntType.

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

Implements OptionEntry.

Reimplemented in OptionEntryEnum.

Definition at line 294 of file OptionEntry.cpp.

References snprintf, and value_.

Referenced by OptionEntryEnum::getComsBufferValue().

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

Implements OptionEntry.

Reimplemented in OptionEntryEnum.

Definition at line 301 of file OptionEntry.cpp.

References defaultValue_, and snprintf.

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

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

Implements OptionEntry.

Reimplemented in OptionEntryEnum.

Definition at line 308 of file OptionEntry.cpp.

References setValue().

Referenced by ClientParams::reset(), and OptionEntryEnum::setComsBufferValue().

int OptionEntryInt::getValue (  )  [virtual]

Definition at line 315 of file OptionEntry.cpp.

References value_.

Referenced by ServerWebServerUtil::generateSettingValue(), OptionsTransient::getCurrentGameNo(), OptionsTransient::getCurrentRoundNo(), ClientParams::getExitTime(), OptionsTransient::getWallType(), OptionsTransient::newGame(), and OptionsTransient::nextRound().

bool OptionEntryInt::setValue ( int  value  )  [virtual]

Reimplemented in OptionEntryBoundedInt, and OptionEntryEnum.

Definition at line 320 of file OptionEntry.cpp.

References OptionEntry::changedValue_, and value_.

Referenced by SoundDialog::buttonDown(), SettingsSelectDialog::buttonDown(), OptionsTransient::newGame(), OptionsTransient::newGameWall(), OptionsTransient::nextRound(), OptionsTransient::reset(), ClientParams::setExitTime(), setIntArgument(), SettingsFrame::setupPlayers(), OptionEntryEnum::setValue(), OptionEntryBoundedInt::setValue(), setValueFromString(), OptionsTransient::startNewGame(), OptionsTransient::startNewRound(), SettingsFrame::TransferDataFromWindow(), ServerSFrame::TransferDataFromWindow(), and DisplayFrame::TransferDataFromWindow().

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

Implements OptionEntry.

Definition at line 332 of file OptionEntry.cpp.

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

bool OptionEntryInt::setIntArgument ( int  value  )  [virtual]

Implements ARGParserIntI.

Definition at line 327 of file OptionEntry.cpp.

References setValue().

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

Implements OptionEntry.

Definition at line 132 of file OptionEntry.h.

References defaultValue_, and value_.

OptionEntryInt::operator int (  )  [inline]

Definition at line 134 of file OptionEntry.h.

References value_.


Member Data Documentation

int OptionEntryInt::defaultValue_ [protected]

Definition at line 137 of file OptionEntry.h.

Referenced by OptionEntryEnum::getDefaultValueAsString(), getDefaultValueAsString(), and isDefaultValue().

int OptionEntryInt::value_ [protected]

Definition at line 138 of file OptionEntry.h.

Referenced by getValue(), OptionEntryEnum::getValueAsString(), getValueAsString(), isDefaultValue(), operator int(), 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