Goose Management Model ODdox  1.02
CfgBool Class Reference

Bool configurator entry class. More...

#include <configurator.h>

Public Member Functions

 CfgBool (const char *a_key, CfgSecureLevel a_level, bool a_defval)
 
virtual CfgType gettype (void)
 
void set (bool a_newval)
 
bool 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

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(), Landscape::BorderScan(), Pond::CalcPondPesticide(), Landscape::CheckForPesticideRecord(), OptimisingFarm::checkRestrictions(), OptimisingPigFarm::checkRestrictions(), OptimisingCattleFarm::checkRestrictions(), AnimalFarm::checkWinterCrops(), NonAnimalFarm::checkWinterCrops(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), OptimisingFarm::ChooseDecisionMode(), Crop::ChooseNextCrop(), AnimalFarm::correctFodderDemand(), FarmManager::CreateFarms(), AnimalFarm::createFodderCrops(), OptimisingFarm::createVariableCrops(), FarmManager::CropDistribution(), DataForOptimisation::DataForOptimisation(), AnimalFarm::decreaseCrops(), OptimisingFarm::determineAreas(), AnimalFarm::determineFodderAreas(), AnimalFarm::determineMinFodder(), Goose_Population_Manager::DoEmigration(), Goose_Population_Manager::DoImmigration(), Goose_Population_Manager::DoLast(), 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(), Goose_Population_Manager::Goose_Population_Manager(), Goose_Population_Manager::GooseFieldForageInfoOutput(), Farm::HandleEvents(), OptimisingFarm::HandleEvents(), OptimisingFarm::Harvest(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Hunter_Population_Manager::Hunter_Population_Manager(), AnimalFarm::increaseCrops(), Hunter_Population_Manager::Init(), Goose_Population_Manager::Init(), OptimisingFarm::Init(), RasterMap::Init1(), FarmManager::InitFarms(), OptimisingFarm::Initialize(), Farm::InitiateManagement(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Landscape::Landscape(), OptimisingFarm::Make_rotations(), OptimisingFarm::Match_crop_to_field(), GooseHunter::OnShotABird(), FarmManager::OptimisationOutput(), OptimisingFarm::optimizeCrops(), Pesticide::Pesticide(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Pond::Pond(), FarmManager::PrintOutput(), Farm::ProductApplication(), RasterMap::RasterMap(), FarmManager::ReadCropsData_perFarm_and_Soil_and_Size_almass(), Landscape::ReadPolys2(), OptimisingCattleFarm::setCattleCropsAtMin(), Configurator::SetCfgGatekeeper(), Landscape::SimulationClosingActions(), OptimisingFarm::Spraying_fungins(), OptimisingFarm::Spraying_herbicides(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticideS(), Landscape::SupplyRodenticide(), Pesticide::Tick(), Landscape::Tick(), VegElement::VegElement(), Goose_Population_Manager::WriteConfig(), FarmManager::~FarmManager(), Goose_Population_Manager::~Goose_Population_Manager(), Hunter_Population_Manager::~Hunter_Population_Manager(), Landscape::~Landscape(), and Pesticide::~Pesticide().

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