Goose Management Model ODdox
1.02
|
Double configurator entry class. More...
#include <configurator.h>
Public Member Functions | |
CfgFloat (const char *a_key, CfgSecureLevel a_level, double a_defval) | |
CfgFloat (const char *a_key, CfgSecureLevel a_level, double a_defval, double a_min, double a_max) | |
Constructor with max min checking enabled. More... | |
virtual CfgType | gettype (void) |
virtual void | set (double a_newval) |
double | value (void) |
![]() | |
CfgBase (const char *a_key, CfgSecureLevel a_level) | |
const string | getkey (void) |
CfgSecureLevel | getlevel (void) |
virtual | ~CfgBase (void) |
Protected Attributes | |
double | m_float |
double | m_max |
double | m_min |
![]() | |
string | m_key |
CfgSecureLevel | m_level |
bool | m_rangetest |
Double configurator entry class.
Definition at line 106 of file configurator.h.
CfgFloat::CfgFloat | ( | const char * | a_key, |
CfgSecureLevel | a_level, | ||
double | a_defval | ||
) |
Definition at line 121 of file configurator.cpp.
References m_float.
CfgFloat::CfgFloat | ( | const char * | a_key, |
CfgSecureLevel | a_level, | ||
double | a_defval, | ||
double | a_min, | ||
double | a_max | ||
) |
Constructor with max min checking enabled.
Definition at line 126 of file configurator.cpp.
References m_max, m_min, CfgBase::m_rangetest, and set().
|
inlinevirtual |
|
virtual |
Definition at line 134 of file configurator.cpp.
References g_msg, m_float, m_max, m_min, CfgBase::m_rangetest, and MapErrorMsg::Warn().
Referenced by CfgFloat().
|
inline |
Definition at line 118 of file configurator.h.
Referenced by OptimisingFarm::ActualProfit(), Goose_Base::AdjustIntakeRateToSnowDepth(), BeetleBank::BeetleBank(), Landscape::BeetleBankPossible(), VegElement::CalcGooseForageResources(), Pond::CalcLarvalFood(), Pond::CalcPondPesticide(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Hunter_Population_Manager::CheckDensity(), OptimisingFarm::ChooseDecisionMode(), AnimalFarm::correctFodderDemand(), Farm::CutOrch(), Orchard::Cutting(), MownGrass::Cutting(), Pesticide::DiffusionFunction(), FarmManager::DistributeFarmerTypes(), Hunter_Population_Manager::DistributeHuntersByRules(), VegElement::DoDevelopment(), BeetleBank::DoDevelopment(), Orchard::DoDevelopment(), OrchardBand::DoDevelopment(), Goose_Population_Manager::DoEmigration(), Goose_Population_Manager::DoFirst(), Goose_Population_Manager::DoImmigration(), Configurator::DumpSymbols(), FarmManager::FarmManagement(), OptimisingFarm::findBIs(), FarmManager::FindClosestFarmOpennessProb(), FarmManager::FindClosestFarmOpennessProbNearRoostIsBest(), FarmManager::FindClosestFarmOpennessProbSmallIsBest(), OptimisingFarm::findFertilizer(), OptimisingFarm::findGrossMargin(), FarmManager::FindNeighbours(), Goose_Population_Manager::GetForageLocIndex(), Goose_Population_Manager::GetImmigrationNumbers(), Hunter_Population_Manager::GetNoHuntLocs(), Goose_Population_Manager::Goose_Population_Manager(), Goose_Population_Manager::GooseFieldForageInfoOutput(), GooseMemoryMap::GooseMemoryMap(), Landscape::hb_Add(), Landscape::hb_MarkTheBresenhamWay(), Heath::Heath(), Goose_Pinkfoot_Base::Init(), Goose_Barnacle_Base::Init(), Goose_Greylag_Base::Init(), GooseHunter::Init(), Goose_Base::Init(), Hunter::IsTodayAChosenHuntDay(), Landscape::Landscape(), Pesticide::MainMapDecay(), Marsh::Marsh(), MownGrass::MownGrass(), NaturalGrassDry::NaturalGrassDry(), NaturalGrassWet::NaturalGrassWet(), OptimisingFarm::OptimiseFarm(), OptimisingFarm::optimizeCrops(), PermanentSetaside::PermanentSetaside(), PermPasture::PermPasture(), PermPastureLowYield::PermPastureLowYield(), PermPastureTussocky::PermPastureTussocky(), Pesticide::Pesticide(), Farm::PigsAreOutForced(), Farm::PigsOut(), OptimisingFarm::Prob_multiplier(), Farm::ProductApplication(), Farm::ProductApplication_DateLimited(), RoadsideVerge::RoadsideVerge(), Hunter_Population_Manager::RuleSet10Based(), Saltmarsh::Saltmarsh(), Hunter_Population_Manager::SaveFarmHunters(), Goose_Base::st_Forage(), GooseHunter::st_OutHunting(), Goose_Barnacle_Base::st_ToRoost(), Goose_Pinkfoot_Base::st_ToRoost(), Goose_Greylag_Base::st_ToRoost(), Goose_Base::StartDay(), Pesticide::Tick(), WaterBufferZone::WaterBufferZone(), and Goose_Population_Manager::WriteConfig().
|
protected |
Definition at line 109 of file configurator.h.
Referenced by CfgFloat(), and set().
|
protected |
Definition at line 111 of file configurator.h.
Referenced by CfgFloat(), and set().
|
protected |
Definition at line 110 of file configurator.h.
Referenced by CfgFloat(), and set().