ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
CfgBool Class Reference

Bool configurator entry class. More...

#include <Configurator.h>

Inheritance diagram for CfgBool:
CfgBase

Public Member Functions

 CfgBool (const std::string &, CfgSecureLevel a_level, bool a_defval)
 
 CfgBool (const std::string &, CfgSecureLevel a_level, bool a_defval, bool a_definconf)
 
bool value () const
 
void set (bool a_newval)
 
CfgType gettype () override
 
- Public Member Functions inherited from CfgBase
 CfgBase (const std::string &a_key, CfgSecureLevel a_level)
 
 CfgBase (const std::string &a_key, CfgSecureLevel a_level, bool a_definedinconfig)
 
virtual ~CfgBase ()
 
std::string getkey ()
 
CfgSecureLevel getlevel (void)
 
void set_definedinconfig (bool flag)
 
bool get_definedinconfig () const
 
bool get_rangetest () const
 

Protected Attributes

bool m_bool
 
- Protected Attributes inherited from CfgBase
std::string m_key
 
CfgSecureLevel m_level
 
bool m_rangetest
 
bool m_definedinconfig {false}
 

Detailed Description

Bool configurator entry class.

Constructor & Destructor Documentation

◆ CfgBool() [1/2]

CfgBool::CfgBool ( const std::string &  a_key,
CfgSecureLevel  a_level,
bool  a_defval 
)
202  :CfgBase( a_key, a_level )
203 {
204  m_bool = a_defval;
205  g_cfg->Register( this, a_key );
206 }

References g_cfg, and m_bool.

◆ CfgBool() [2/2]

CfgBool::CfgBool ( const std::string &  a_key,
CfgSecureLevel  a_level,
bool  a_defval,
bool  a_definconf 
)
210  :CfgBase{ a_key, a_level , a_definconf}
211 {
212  m_bool = a_defval;
213 }

Member Function Documentation

◆ gettype()

CfgType CfgBool::gettype ( void  )
inlineoverridevirtual

Reimplemented from CfgBase.

166 { return CFG_BOOL; }

References CFG_BOOL.

◆ set()

void CfgBool::set ( bool  a_newval)
inline
165 { m_bool = a_newval; }

References m_bool.

◆ value()

bool CfgBool::value ( ) const
inline
164 { return m_bool; }

References m_bool.

Referenced by Landscape::AddBeetleBanks(), Pesticide::AddGranularPesticide(), AOR_Probe::AOR_Probe(), Aphid_Population_Manager::Aphid_Population_Manager(), Beetle_Population_Manager::Beetle_Population_Manager(), Vole_JuvenileMale::BeginStep(), Vole_JuvenileFemale::BeginStep(), Osmia_Female::BeginStep(), Farm::BiocideTreat(), Landscape::BorderTest(), VegElement::CalcGooseForageResources(), Pond::CalcPondPesticide(), Farm::CalculateTreatmentCosts(), Landscape::CheckForPesticideRecord(), Population_Manager::CloseTheRipleysOutputProbe(), FarmManager::CreateFarms(), Pesticide::DailyQueueProcess(), Pesticide::DecreaseVegetationPesticide(), Pesticide::DiffusionSprayPixel(), Pesticide::DiffusionVectorInit(), Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), OCloverGrassGrazed2::Do(), OCloverGrassGrazed1::Do(), OPermanentGrassGrazed::Do(), OBarleyPeaCloverGrass::Do(), DK_CerealLegume::Do(), DK_CerealLegume_Whole::Do(), DK_SpringBarley_Green::Do(), DK_Legume_Peas::Do(), DK_SpringBarleySilage::Do(), BEOrchardCrop::Do(), NLOrchardCrop::Do(), DK_FodderBeet::Do(), DK_Legume_Beans::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), DK_SpringWheat::Do(), UKBeans::Do(), DK_Legume_Whole::Do(), FI_Potato_North::Do(), FI_StarchPotato_North::Do(), SpringBarleyCloverGrass::Do(), FI_PotatoIndustry_North::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), DK_SpringBarleyCloverGrass::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), BEWinterWheatCC::Do(), BEWinterWheat::Do(), DK_VegSeeds::Do(), NLCabbage::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DK_Carrots_Spring::Do(), PLCarrots::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), UKWinterWheat::Do(), DK_Carrots::Do(), NLSpringBarley::Do(), TestCrop::Do(), DK_Cabbages::Do(), NLWinterWheat::Do(), PLSpringBarleySpr::Do(), SpringBarley::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), FI_OCaraway2::Do(), PLFodderLucerne1::Do(), DK_Potato::Do(), UKPotatoes::Do(), FR_Grassland_Perm::Do(), FI_Caraway2::Do(), DK_MixedVeg::Do(), PLBeetSpr::Do(), PLBeans::Do(), DK_WinterRape::Do(), FI_OSpringBarley_Malt::Do(), DK_PotatoSeed::Do(), WinterRape::Do(), BEPotatoesSpring::Do(), DE_BushFruitPerm::Do(), DE_Maize::Do(), FI_OCaraway1::Do(), FI_OFabaBean::Do(), DK_PotatoIndustry::Do(), DE_MaizeSilage::Do(), FI_OSpringOats::Do(), FI_OSpringRape::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FR_SpringBarley::Do(), FR_SpringOats::Do(), NLPotatoesSpring::Do(), FI_OSpringBarley_Fodder::Do(), PLWinterRye::Do(), DE_SpringBarley::Do(), FI_FeedingGround::Do(), BEPotatoes::Do(), FI_TurnipRape::Do(), FR_Sorghum::Do(), DE_AsparagusEstablishedPlantation::Do(), FR_Maize::Do(), FR_Maize_Silage::Do(), NLPotatoes::Do(), PLMaize::Do(), PLMaizeSilage::Do(), PLSpringBarley::Do(), NLTulips::Do(), FI_OWinterRye::Do(), FI_SpringRape::Do(), FR_Sunflower::Do(), DE_Legumes::Do(), DE_Peas::Do(), PLWinterTriticale::Do(), SE_SpringBarley::Do(), FI_SpringBarley_Malt::Do(), DE_WinterRye::Do(), FI_OWinterWheat::Do(), PLBeet::Do(), PLWinterBarley::Do(), PLWinterWheat::Do(), FI_SpringWheat::Do(), FI_SprSpringBarley_Fodder::Do(), DK_CloverGrassGrazed3::Do(), PLSpringWheat::Do(), PLWinterWheatLate::Do(), FI_SpringOats::Do(), DK_CloverGrassGrazed2::Do(), PLPotatoes::Do(), SE_WinterRape_Seed::Do(), DK_BushFruit_Perm1::Do(), FI_SpringBarley_Fodder::Do(), SE_WinterWheat::Do(), DE_Cabbage::Do(), DE_Oats::Do(), FR_SpringWheat::Do(), DE_WinterBarley::Do(), DE_SpringRye::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), DK_BushFruit_Perm2::Do(), FI_WinterWheat::Do(), IRSpringBarley::Do(), IRSpringOats::Do(), IRWinterBarley::Do(), IRWinterOats::Do(), FR_WinterWheat::Do(), IRSpringWheat::Do(), DE_Triticale::Do(), DE_WinterWheatLate::Do(), DE_WinterWheat::Do(), FI_WinterRye::Do(), FR_WinterRape::Do(), IRWinterWheat::Do(), FR_Potatoes::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchOther::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchApple::Do(), DE_PotatoesIndustry::Do(), IRGrassland_reseed::Do(), Vole_Population_Manager::DoFirst(), AOR_Probe::DoProbe(), Configurator::DumpSymbols(), Landscape::DumpVegAreaData(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Hare_Young::EndStep(), Hare_Juvenile::EndStep(), Hare_Male::EndStep(), Hare_Female::EndStep(), FarmManager::FarmManager(), g_init_random_seed_fnc(), Farm::GetFirstCropIndex(), Farm::GetNextCropIndex(), Farm::GetNextCropStartDate(), Farm::HandleEvents(), Farm::HerbicideTreat(), THare_Population_Manager::HuntingDifferentiatedBeetleBankArea(), Erigone_Population_Manager::Init(), Oedothorax_Population_Manager::Init(), Vole_Population_Manager::Init(), Osmia_Population_Manager::Init(), Skylark_Population_Manager::Init(), THare_Population_Manager::Init(), Aphid_Population_Manager::initialisePopulation(), Farm::InitiateManagement(), FarmManager::InitiateManagement(), Farm::InsecticideTreat(), TAnimal::KillThis(), Landscape::Landscape(), Vole_JuvenileMale::OnFarmEvent(), Vole_JuvenileFemale::OnFarmEvent(), Vole_JuvenileMale::OnKilled(), Vole_JuvenileFemale::OnKilled(), Pesticide::Pesticide(), PesticideStore::PesticideStore(), PesticideToxicity::PesticideToxicity(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Pond::Pond(), Population_Manager::Population_Manager(), Farm::ProductApplication(), Landscape::ReadPolys2(), Weather::readWeatherFile(), VegElement::RecalculateBugsNStuff(), Pesticide::ReducePlantPesticide(), Pesticide::RemovePlantPesticide(), Vole_Population_Manager::ResistanceOutput(), TPredator_Population_Manager::Run(), Population_Manager::Run(), Landscape::RunHiddenYear(), Configurator::SetCfgGatekeeper(), SetOutputFiles(), VegElement::SetSpeciesFunction(), Osmia_Egg::st_Develop(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Skylark_Female::st_Laying(), Osmia_Female::st_ReproductiveBehaviour(), Vole_JuvenileFemale::Step(), Vole_Female::Step(), SubPopulation_Population_Manager::SubPopulation_Population_Manager(), Vole_Population_Manager::SuitableStartingLocation(), Landscape::SupplyOverspray(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideInPlant(), Landscape::SupplyPesticideNectar(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticidePlantSurface(), Landscape::SupplyPesticidePollen(), Landscape::SupplyPesticideS(), Landscape::SupplyRodenticide(), Landscape::SupplySeedCoating(), TAnimal::TAnimal(), PesticideStore::tick(), PesticideToxicity::tick(), Pesticide::Tick(), Landscape::Tick(), Landscape::VegDump(), VegElement::VegElement(), AOR_Probe::WriteData(), Landscape::~Landscape(), Population_Manager::~Population_Manager(), SubPopulation_Population_Manager::~SubPopulation_Population_Manager(), and Vole_Population_Manager::~Vole_Population_Manager().

Member Data Documentation

◆ m_bool

bool CfgBool::m_bool
protected

Referenced by CfgBool(), set(), and value().


The documentation for this class was generated from the following files:
g_cfg
std::shared_ptr< Configurator > g_cfg
Definition: Configurator.cpp:56
CFG_BOOL
Definition: Configurator.h:62
CfgBase::CfgBase
CfgBase(const std::string &a_key, CfgSecureLevel a_level)
Definition: Configurator.cpp:84
CfgBase
Base class for a configurator entry.
Definition: Configurator.h:79
CfgBool::m_bool
bool m_bool
Definition: Configurator.h:158