Goose Management Model ODdox
1.02
|
Integer configurator entry class. More...
#include <configurator.h>
Public Member Functions | |
CfgInt (const char *a_key, CfgSecureLevel a_level, int a_defval) | |
CfgInt (const char *a_key, CfgSecureLevel a_level, int a_defval, int a_min, int a_max) | |
virtual CfgType | gettype (void) |
virtual void | set (int a_newval) |
int | value (void) |
Public Member Functions inherited from CfgBase | |
CfgBase (const char *a_key, CfgSecureLevel a_level) | |
const string | getkey (void) |
CfgSecureLevel | getlevel (void) |
virtual | ~CfgBase (void) |
Protected Attributes | |
int | m_int |
int | m_max |
int | m_min |
Protected Attributes inherited from CfgBase | |
string | m_key |
CfgSecureLevel | m_level |
bool | m_rangetest |
Integer configurator entry class.
Definition at line 87 of file configurator.h.
CfgInt::CfgInt | ( | const char * | a_key, |
CfgSecureLevel | a_level, | ||
int | a_defval | ||
) |
Definition at line 94 of file configurator.cpp.
References m_int.
CfgInt::CfgInt | ( | const char * | a_key, |
CfgSecureLevel | a_level, | ||
int | a_defval, | ||
int | a_min, | ||
int | a_max | ||
) |
Constructor with max min checking enabled
Definition at line 99 of file configurator.cpp.
References m_max, m_min, CfgBase::m_rangetest, and set().
|
inlinevirtual |
|
virtual |
Definition at line 108 of file configurator.cpp.
References g_msg, m_int, m_max, m_min, CfgBase::m_rangetest, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by CfgInt().
|
inline |
Definition at line 98 of file configurator.h.
Referenced by Landscape::AddBeetleBanks(), Goose_Population_Manager::BangAtPoly(), Landscape::BeetleBankAdd(), Landscape::BeetleBankPossible(), Landscape::BorderAdd(), Landscape::BuildingDesignationCalc(), FarmManager::CreateFarms(), Pesticide::DiffusionMaskInit(), Pesticide::DiffusionMaskInitTest(), Hunter_Population_Manager::DistributeHunters(), Hunter_Population_Manager::DistributeHuntersByRules(), Orchard::DoDevelopment(), OrchardBand::DoDevelopment(), MownGrass::DoDevelopment(), Goose_Population_Manager::DoEmigration(), Goose_Population_Manager::DoFirst(), Goose_Population_Manager::DoImmigration(), Goose_Population_Manager::DoLast(), Configurator::DumpSymbols(), FarmManager::FarmManagement(), LE::GetGooseNos(), Goose_Population_Manager::GetImmigrationNumbers(), LE::GetQuarryNos(), FarmManager::GetSpilledGrain(), Landscape::GISASCII_Output(), Goose_Population_Manager::Goose_Population_Manager(), GooseHunter::GooseHunter(), GooseMemoryMap::GooseMemoryMap(), Farm::HandleEvents(), OptimisingFarm::HandleEvents(), Landscape::hb_GenerateHBPolys(), Landscape::hb_StripingDist(), Goose_Population_Manager::InHuntingSeason(), Hunter::Init(), Goose_Base::Init(), Farm::InitiateManagement(), Hunter::IsTodayAPreferredHuntDay(), Landscape::Landscape(), RasterMap::Manipulation1(), Pesticide::Pesticide(), Farm::ProductApplication_DateLimited(), Landscape::ReadPolys2(), Hunter_Population_Manager::RuleSet10Based(), Hunter_Population_Manager::SetHuntingSeason(), Goose_Base::st_ChooseForageLocation(), Goose_Base::st_Forage(), GooseHunter::st_OutHunting(), Goose_Population_Manager::TheAOROutputProbe(), Landscape::Tick(), UnsprayedFieldMargin::UnsprayedFieldMargin(), Landscape::UnsprayedMarginAdd(), Weather::Weather(), and Goose_Population_Manager::WriteConfig().
|
protected |
Definition at line 90 of file configurator.h.
|
protected |
Definition at line 91 of file configurator.h.
|
protected |
Definition at line 92 of file configurator.h.