ALMaSS Rabbit ODdox  1.1
The rabbit model description following ODdox protocol
CfgBool Class Reference

Bool configurator entry class. More...

#include <configurator.h>

Inheritance diagram for CfgBool:
CfgBase

Public Member Functions

 CfgBool (const char *a_key, CfgSecureLevel a_level, bool a_defval)
 
bool value (void)
 
void set (bool a_newval)
 
virtual CfgType gettype (void)
 
- Public Member Functions inherited from CfgBase
 CfgBase (const char *a_key, CfgSecureLevel a_level)
 
virtual ~CfgBase (void)
 
const string getkey (void)
 
CfgSecureLevel getlevel (void)
 

Protected Attributes

bool m_bool
 
- Protected Attributes inherited from CfgBase
string m_key
 
CfgSecureLevel m_level
 
bool m_rangetest
 

Detailed Description

Bool configurator entry class.

Definition at line 127 of file configurator.h.

Constructor & Destructor Documentation

◆ CfgBool()

CfgBool::CfgBool ( const char *  a_key,
CfgSecureLevel  a_level,
bool  a_defval 
)

Definition at line 148 of file configurator.cpp.

151  :CfgBase( a_key, a_level )
152 {
153  m_bool = a_defval;
154 }

References m_bool.

Member Function Documentation

◆ gettype()

virtual CfgType CfgBool::gettype ( void  )
inlinevirtual

Reimplemented from CfgBase.

Definition at line 137 of file configurator.h.

137 { return CFG_BOOL; }

References CFG_BOOL.

◆ set()

void CfgBool::set ( bool  a_newval)
inline

Definition at line 136 of file configurator.h.

136 { m_bool = a_newval; }

◆ value()

bool CfgBool::value ( void  )
inline

Definition at line 135 of file configurator.h.

135 { return m_bool; }

Referenced by OptimisingFarm::ActualProfit(), Landscape::AddBeetleBanks(), OptimisingFarm::assignFixed(), Rabbit_Base::BeginStep(), Landscape::BorderScan(), Pond::CalcPondPesticide(), Landscape::CheckForPesticideRecord(), OptimisingFarm::checkRestrictions(), OptimisingPigFarm::checkRestrictions(), OptimisingCattleFarm::checkRestrictions(), AnimalFarm::checkWinterCrops(), NonAnimalFarm::checkWinterCrops(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), OptimisingFarm::ChooseDecisionMode(), Crop::ChooseNextCrop(), Population_Manager::CloseTheRipleysOutputProbe(), AnimalFarm::correctFodderDemand(), FarmManager::CreateFarms(), AnimalFarm::createFodderCrops(), OptimisingFarm::createVariableCrops(), FarmManager::CropDistribution(), DataForOptimisation::DataForOptimisation(), AnimalFarm::decreaseCrops(), OptimisingFarm::determineAreas(), AnimalFarm::determineFodderAreas(), AnimalFarm::determineMinFodder(), Configurator::DumpSymbols(), Landscape::DumpVegAreaData(), OptimisingFarm::FarmLevelCalculation(), FarmManager::FarmManager(), OptimisingFarm::findBIs(), OptimisingFarm::findFertilizer(), OptimisingFarm::findFodderDemand(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findResponse(), OptimisingFarm::findTotalArea(), OptimisingFarm::findTotalNanim(), OptimisingFarm::findYieldLoss(), OptimisingFarm::fixBI(), OptimisingFarm::FungicideTreat(), Farm::GetFirstCropIndex(), Farm::GetNextCropIndex(), Farm::GetNextCropStartDate(), Farm::HandleEvents(), OptimisingFarm::HandleEvents(), OptimisingFarm::Harvest(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), AnimalFarm::increaseCrops(), OptimisingFarm::Init(), RasterMap::Init1(), FarmManager::InitFarms(), OptimisingFarm::Initialize(), Farm::InitiateManagement(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Landscape::Landscape(), OptimisingFarm::Make_rotations(), OptimisingFarm::Match_crop_to_field(), FarmManager::OptimisationOutput(), OptimisingFarm::optimizeCrops(), Pesticide::Pesticide(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Pond::Pond(), Population_Manager::Population_Manager(), Rabbit_Population_Manager::PreProcessWarrenLocations(), FarmManager::PrintOutput(), Farm::ProductApplication(), Rabbit_Population_Manager::Rabbit_Population_Manager(), RasterMap::RasterMap(), FarmManager::ReadCropsData_perFarm_and_Soil_and_Size_almass(), Landscape::ReadPolys2(), Population_Manager::Run(), OptimisingCattleFarm::setCattleCropsAtMin(), Configurator::SetCfgGatekeeper(), Landscape::SimulationClosingActions(), OptimisingFarm::Spraying_fungins(), OptimisingFarm::Spraying_herbicides(), Rabbit_Female::st_Dying(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticideS(), Landscape::SupplyRodenticide(), Pesticide::Tick(), Landscape::Tick(), Rabbit_Warren::UpdateForageInformation(), VegElement::VegElement(), FarmManager::~FarmManager(), Landscape::~Landscape(), Pesticide::~Pesticide(), Population_Manager::~Population_Manager(), and Rabbit_Population_Manager::~Rabbit_Population_Manager().

Member Data Documentation

◆ m_bool

bool CfgBool::m_bool
protected

Definition at line 130 of file configurator.h.

Referenced by CfgBool().


The documentation for this class was generated from the following files:
CFG_BOOL
Definition: configurator.h:55
CfgBase::CfgBase
CfgBase(const char *a_key, CfgSecureLevel a_level)
Definition: configurator.cpp:73
CfgBool::m_bool
bool m_bool
Definition: configurator.h:130