ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
MapErrorMsg.cpp File Reference
#include <cstdio>
#include <time.h>
#include <string>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string.h>
#include "MapErrorMsg.h"

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

MapErrorMsgCreateErrorMsg ()
 

Variables

MapErrorMsgg_msg = NULL
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ CreateErrorMsg()

MapErrorMsg* CreateErrorMsg ( )
203 {
204  if (g_msg == NULL)
205  {
206  g_msg = new MapErrorMsg();
207  }
208 
209  return g_msg;
210 }

References g_msg.

Referenced by main().

Variable Documentation

◆ g_msg

MapErrorMsg* g_msg = NULL

Referenced by Landscape::AddBeetleBanks(), Landscape::AddPatches(), AlleleFreq::AlleleFreq(), AlleleFreq1616::AlleleFreq1616(), AlleleFreq256_16::AlleleFreq256_16(), AOR_Probe::AOR_Probe(), FarmManager::BackTranslateCropCodes(), LE_TypeClass::BackTranslateEleTypes(), LE_TypeClass::BackTranslateVegTypes(), beetle_tole_movemap_init(), Landscape::BorderNeed(), Skylark_Population_Manager::BreedingPairsOutput(), Skylark_Population_Manager::BreedingSuccessProbeOutput(), Skylark_Female::CalcFoodTime(), RasterMap::CellReplacementNeighbour(), Farm::Centroids(), Landscape::CentroidSpiralOut(), Configurator::CheckBounds(), Farm::CheckRotationManagementLoop(), Beetle_Base::ChooseDirection(), CloseDownSim(), FarmManager::ConnectFarm(), Landscape::ConsolidatePolys(), CreateErrorMsg(), FarmManager::CreateFarms(), CreatePopulationManager(), CropRotation::CropRotation(), Pesticide::DailyQueueProcess(), Calendar::DayLength(), SimplePositionMapInt::DecMapValue(), OFirstYearDanger::Do(), PermanentSetAside::Do(), DK_GrazingPigs::Do(), DK_GrazingPigs_Perm::Do(), DK_OGrazingPigs_Perm::Do(), DK_OGrazingPigs::Do(), OGrazingPigs::Do(), OrchardCrop::Do(), PermanentGrassTussocky::Do(), UKMaize::Do(), DK_GrassTussocky_Perm::Do(), GenericCatchCrop::Do(), NorwegianSpringBarley::Do(), NorwegianOats::Do(), OSeedGrass1::Do(), DK_OptimalFlowerMix2::Do(), WinterRapeStrigling::Do(), OCloverGrassGrazed2::Do(), DK_FarmForest_Perm::Do(), DK_FarmYoungForest_Perm::Do(), BroadBeans::Do(), DK_OFarmForest_Perm::Do(), DK_OFarmYoungForest_Perm::Do(), OSeedGrass2::Do(), DK_PlantNursery_Perm::Do(), HorticultureCrop::Do(), OSBarleySilage::Do(), PermanentGrassLowYield::Do(), YoungForestCrop::Do(), DK_OGrassLowYield_Perm::Do(), NLCatchCropPea::Do(), OCloverGrassGrazed1::Do(), OFieldPeas::Do(), OFieldPeasSilage::Do(), OCloverGrassSilage1::Do(), OPermanentGrassGrazed::Do(), DK_GrassLowYield_Perm::Do(), DK_OLegume::Do(), OCarrots::Do(), DE_OPeas::Do(), BECatchPeaCrop::Do(), SeedGrass1::Do(), DK_CerealLegume_Whole::Do(), DK_CerealLegume::Do(), CloverGrassGrazed2::Do(), DK_OCatchCrop::Do(), OBarleyPeaCloverGrass::Do(), OMaizeSilage::Do(), PermanentGrassGrazed::Do(), FI_OPotato_North::Do(), FI_OPotato_South::Do(), FI_OPotatoIndustry_North::Do(), FI_OPotatoIndustry_South::Do(), FI_OStarchPotato_North::Do(), FI_OStarchPotato_South::Do(), DK_Legume_Peas::Do(), FodderGrass::Do(), DE_OLegume::Do(), DK_OLegume_Peas_CC::Do(), OWinterBarleyExt::Do(), DK_SpringBarley_Green::Do(), DK_CatchCrop::Do(), CloverGrassGrazed1::Do(), DK_OLegume_Beans::Do(), DK_OLegume_Peas::Do(), DK_OLegume_Beans_CC::Do(), DK_OLentils::Do(), OWinterBarley::Do(), SeedGrass2::Do(), DK_SpringBarleySilage::Do(), BEOrchardCrop::Do(), DK_FodderBeet::Do(), DK_MaizeSilage::Do(), NLOrchardCrop::Do(), DK_OLupines::Do(), OWinterRye::Do(), DK_OSpringBarleyCloverGrass::Do(), FI_SugarBeet::Do(), DK_Legume_Beans::Do(), DE_OMaizeSilage::Do(), OOats::Do(), DK_OptimalFlowerMix3::Do(), DE_OOats::Do(), DE_OSpringRye::Do(), DK_OWinterRye::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), DK_OCerealLegume_Whole::Do(), Maize::Do(), MaizeSilage::Do(), MaizeStrigling::Do(), DK_OLegume_Whole::Do(), DK_OLegume_Whole_CC::Do(), DK_OLegumeCloverGrass_Whole::Do(), DE_OMaize::Do(), DK_OptimalFlowerMix1::Do(), OTriticale::Do(), DK_OSpringBarley_CC::Do(), DE_OWinterWheat::Do(), DK_OWinterRye_CC::Do(), DK_Maize::Do(), NLMaizeSpring::Do(), Oats::Do(), OSpringBarleyExt::Do(), DK_OWinterBarley::Do(), UKBeans::Do(), DK_SpringWheat::Do(), BEMaizeSpring::Do(), DK_Legume_Whole::Do(), DK_OCerealLegume::Do(), OSpringBarley::Do(), DK_OSpringBarley::Do(), DK_OSugarBeet::Do(), SpringBarleySeed::Do(), FI_Potato_North::Do(), FieldPeas::Do(), FieldPeasStrigling::Do(), FieldPeasSilage::Do(), DK_OFodderBeet::Do(), OPotatoes::Do(), SpringBarleyCloverGrassStrigling::Do(), BEMaizeCC::Do(), DummyCropPestTesting::Do(), DE_OWinterRape::Do(), FI_StarchPotato_North::Do(), OWinterWheat::Do(), OWinterWheatUndersown::Do(), OWinterWheatUndersownExt::Do(), FI_PotatoIndustry_North::Do(), OFodderBeet::Do(), SpringBarleyCloverGrass::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), OWinterRape::Do(), PLFodderLucerne2::Do(), DK_OSpringOats::Do(), DK_OSpringWheat::Do(), PTOliveGroveTradOrganic::Do(), BEBeetSpring::Do(), Triticale::Do(), BEMaize::Do(), UKBeet::Do(), Carrots::Do(), NLBeetSpring::Do(), NLMaize::Do(), DE_OCabbages::Do(), DE_OSugarBeet::Do(), DK_OVegSeeds::Do(), DK_SpringBarleyCloverGrass::Do(), DE_OBushFruitPerm::Do(), DK_OSpringOats_CC::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_WinterFodderGrass::Do(), NLCarrotsSpring::Do(), DK_OMaizeSilage::Do(), DK_OMaize::Do(), DE_OPotatoes::Do(), BEBeet::Do(), DK_OWinterRape::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), SpringBarleyPeaCloverGrassStrigling::Do(), DK_OCabbages::Do(), DK_OEnergyCrop_Perm::Do(), NLBeet::Do(), NLGrassGrazedExtensive2::Do(), NLPermanentGrassGrazedExtensive::Do(), DE_OCarrots::Do(), DK_OSpringBarleySilage::Do(), SetAside::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), DK_OCarrots::Do(), NLCarrots::Do(), NLGrassGrazedExtensive1Spring::Do(), NLGrassGrazedExtensiveLast::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), PotatoesIndustry::Do(), SugarBeet::Do(), DK_WinterBarley::Do(), FodderBeet::Do(), NorwegianPotatoes::Do(), Potatoes::Do(), PTOliveGroveIntensive::Do(), DKOBroadBeans_test::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_EnergyCrop_Perm::Do(), PTCorkOak::Do(), DK_VegSeeds::Do(), DK_Carrots_Spring::Do(), NLCabbage::Do(), NLGrassGrazedExtensive1::Do(), SpringBarleySKManagement::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DK_OGrassGrazed_Perm::Do(), PLCarrots::Do(), PTSetAside::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), UKWinterWheat::Do(), WinterRyeStrigling::Do(), DK_Carrots::Do(), DK_GrassGrazed_Perm::Do(), NLSpringBarley::Do(), TestCrop::Do(), DE_PermanentGrassLowYield::Do(), DE_OPermanentGrassLowYield::Do(), SpringBarleyPTreatment::Do(), SpringBarleyStrigling::Do(), SpringBarleyStriglingSingle::Do(), BEGrassGrazed1Spring::Do(), SpringBarleyStriglingCulm::Do(), UKWinterRape::Do(), WinterRye::Do(), DK_Cabbages::Do(), NLWinterWheat::Do(), DK_OMixedVeg::Do(), PLSpringBarleySpr::Do(), PTBeans::Do(), PTOliveGroveSuperIntensive::Do(), PTTurnipGrazed::Do(), BEGrassGrazed1::Do(), BEGrassGrazed2::Do(), BEGrassGrazedLast::Do(), FI_OCaraway2::Do(), DK_OPotato::Do(), DK_OPotatoIndustry::Do(), DK_OPotatoSeed::Do(), PTCabbage::Do(), PTCabbage_Hort::Do(), PTOtherDryBeans::Do(), DE_PermanentGrassGrazed::Do(), SpringBarley::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), PLFodderLucerne1::Do(), PTHorticulture::Do(), FR_Grassland_Perm::Do(), UKPotatoes::Do(), DK_Potato::Do(), UKPermanentGrass::Do(), FI_GreenFallow_1year::Do(), DE_GreenFallow_1year::Do(), PTOliveGroveTraditional::Do(), PTPotatoes::Do(), UKTempGrass::Do(), FI_NaturalGrassland_Perm::Do(), SpringRape::Do(), DK_OBushFruit_Perm2::Do(), DE_HerbsPerennial_after1year::Do(), DE_OGreenFallow_1year::Do(), DE_OPermanentGrassGrazed::Do(), DK_OSeedGrassRye_Spring::Do(), PTOats::Do(), PTShrubPastures::Do(), FI_Caraway2::Do(), DK_CloverGrassGrazed1::Do(), DK_MixedVeg::Do(), DE_HerbsPerennial_1year::Do(), NLGrassGrazed2::Do(), NLPermanentGrassGrazed::Do(), DE_OHerbsPerennial_after1year::Do(), PLBeetSpr::Do(), FI_GreenFallow_Perm::Do(), NLGrassGrazed1Spring::Do(), NLGrassGrazedLast::Do(), WinterWheatStriglingCulm::Do(), DE_OHerbsPerennial_1year::Do(), PLBeans::Do(), WinterWheatStrigling::Do(), WinterWheatStriglingSingle::Do(), PTMaize_Hort::Do(), DE_OGrasslandSilageAnnual::Do(), PTMaize::Do(), PTWinterBarley::Do(), PTWinterWheat::Do(), PTWinterRye::Do(), FI_BufferZone::Do(), FI_BufferZone_Perm::Do(), FI_NaturalGrassland::Do(), FI_OSpringBarley_Malt::Do(), ITGrassland::Do(), DK_SetAside::Do(), PTCloverGrassGrazed2::Do(), PTFodderMix::Do(), PTTriticale::Do(), DK_WinterRape::Do(), BEPotatoesSpring::Do(), WinterRape::Do(), DK_OSetAside::Do(), DK_OSetAside_AnnualFlower::Do(), DK_OSetAside_PerennialFlower::Do(), DK_OSetAside_SummerMow::Do(), PTYellowLupin::Do(), PTGrassGrazed::Do(), PTSorghum::Do(), DK_PotatoSeed::Do(), WinterBarleyStrigling::Do(), FI_OCaraway1::Do(), FI_OFabaBean::Do(), DE_BushFruitPerm::Do(), NLGrassGrazed1::Do(), DE_Maize::Do(), FI_GrasslandPasturePerennial1::Do(), FI_GrasslandPasturePerennial2::Do(), FI_GrasslandSilagePerennial1::Do(), FI_OSpringOats::Do(), FI_OSpringRape::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FR_SpringBarley::Do(), DE_MaizeSilage::Do(), DE_OAsparagusEstablishedPlantation::Do(), OSpringBarleyPigs::Do(), DK_SetAside_SummerMow::Do(), DK_PotatoIndustry::Do(), FI_OSpringBarley_Fodder::Do(), FR_SpringOats::Do(), NLPotatoesSpring::Do(), PTRyegrass::Do(), WinterBarley::Do(), FI_FeedingGround::Do(), FI_GrasslandSilagePerennial2::Do(), DK_OOrchCherry::Do(), PLWinterRye::Do(), DE_SpringBarley::Do(), FI_GrasslandSilageAnnual::Do(), FI_TurnipRape::Do(), DK_OBushFruit_Perm1::Do(), FR_Sorghum::Do(), DK_OSpringFodderGrass::Do(), BEPotatoes::Do(), DE_AsparagusEstablishedPlantation::Do(), FR_Maize::Do(), FR_Maize_Silage::Do(), DK_OWinterWheat_CC::Do(), DK_OCloverGrassGrazed3::Do(), PLMaize::Do(), DK_OCloverGrassGrazed1::Do(), DK_OCloverGrassGrazed2::Do(), NLPotatoes::Do(), PLMaizeSilage::Do(), PLSpringBarley::Do(), DK_OWinterWheat::Do(), FI_FabaBean::Do(), FI_OWinterRye::Do(), FI_SpringRape::Do(), FR_WinterTriticale::Do(), NLTulips::Do(), FI_SpringBarley_Malt::Do(), FR_Sunflower::Do(), DE_Legumes::Do(), PTCloverGrassGrazed1::Do(), DE_Peas::Do(), PLWinterTriticale::Do(), SE_SpringBarley::Do(), FI_Caraway1::Do(), FI_OWinterWheat::Do(), DE_OTriticale::Do(), DE_WinterRye::Do(), DK_OOrchPear::Do(), DK_OWinterFodderGrass::Do(), DE_OWinterRye::Do(), DK_CloverGrassGrazed3::Do(), PLBeet::Do(), FI_SpringWheat::Do(), FI_SprSpringBarley_Fodder::Do(), DE_OWinterBarley::Do(), DK_OOrchApple::Do(), DK_OOrchardCrop_Perm::Do(), DK_OOrchOther::Do(), PLWinterBarley::Do(), DK_OWinterCloverGrassGrazedSown::Do(), PLWinterWheat::Do(), DK_CloverGrassGrazed2::Do(), FI_SpringOats::Do(), DE_Carrots::Do(), PLSpringWheat::Do(), PLWinterWheatLate::Do(), FI_SpringBarley_Fodder::Do(), PTPermanentGrassGrazed::Do(), PLPotatoes::Do(), SE_WinterRape_Seed::Do(), DK_BushFruit_Perm1::Do(), DE_WinterBarley::Do(), DE_Cabbage::Do(), FR_SpringWheat::Do(), DE_Oats::Do(), SE_WinterWheat::Do(), DE_SpringRye::Do(), DK_SeedGrassRye_Spring::Do(), PLWinterRape::Do(), PTVineyards::Do(), FI_WinterWheat::Do(), FR_WinterBarley::Do(), DE_GrasslandSilageAnnual::Do(), DK_BushFruit_Perm2::Do(), FR_Grassland::Do(), IRSpringBarley::Do(), IRWinterBarley::Do(), IRWinterOats::Do(), IRSpringOats::Do(), DE_Triticale::Do(), FI_WinterRye::Do(), FR_WinterWheat::Do(), IRSpringWheat::Do(), DE_WinterWheat::Do(), DE_WinterWheatLate::Do(), IRWinterWheat::Do(), FR_WinterRape::Do(), FR_Potatoes::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), DK_SeedGrassFescue_Spring::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchApple::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchOther::Do(), DE_PotatoesIndustry::Do(), DE_OOrchard::Do(), IRGrassland_reseed::Do(), ITOrchard::Do(), DK_OChristmasTrees_Perm::Do(), ITOOrchard::Do(), DK_ChristmasTrees_Perm::Do(), VegElement::DoDevelopment(), Vole_Population_Manager::DoFirst(), FarmManager::DumpFarmrefs(), SkTerritories::DumpMapGraphics(), Landscape::DumpMapGraphics(), Landscape::DumpMapInfoByArea(), PesticideMap::DumpPMap(), Configurator::DumpSymbols(), Landscape::DumpTreatCounters(), Skylark_Clutch::EndStep(), Landscape::EventDump(), Landscape::EventDumpPesticides(), Landscape::EventtypeToString(), Configurator::ExtractString(), Farm::FarmActions(), Landscape::FarmtypeToString(), Probe_Data::FileAppendOutput(), FarmManager::FindClosestFarm(), FarmManager::FindClosestFarmOpenness(), FarmManager::FindClosestFarmOpennessProb(), FarmManager::FindClosestFarmOpennessProbNearRoostIsBest(), FarmManager::FindClosestFarmOpennessProbSmallIsBest(), FarmManager::FindFarmWithOpenness(), FarmManager::FindFarmWithRandom(), Skylark_Population_Manager::FledgelingProbeOutput(), Landscape::ForceArea(), g_init_random_seed_fnc(), RasterMap::Get(), probability_distribution::Get(), GeneticMaterial1616::GetAllele(), FarmManager::GetCropMgtPlansIndex(), FarmManager::GetFarmCentroid(), FarmManager::GetFarmNoLookupIndex(), FarmManager::GetFarmPtr(), CropRotation::GetFirstCrop(), THare_Population_Manager::GetInterference(), CropRotation::GetNextCrop(), GetProbeInput_ini(), FarmManager::GetRenumberedFarmRef(), Landscape::GISASCII_Output(), Landscape::GrainDump(), Landscape::IncTreatCounter(), RasterMap::Init(), TrapLineMap::Init(), Vole_Population_Manager::Init(), Osmia_Female::Init(), THare_Population_Manager::Init(), Farm::InitiateManagement(), Osmia_Nest_Manager::InitOsmiaBeeNesting(), Beetle_Egg_List::InternalPesticideHandlingAndResponse(), Beetle_Larvae::InternalPesticideHandlingAndResponse(), Beetle_Pupae::InternalPesticideHandlingAndResponse(), Beetle_Adult::InternalPesticideHandlingAndResponse(), Farm::InvIntPartition(), Landscape::Landscape(), main(), Landscape::NewElement(), Vole_JuvenileMale::OnFarmEvent(), Vole_JuvenileFemale::OnFarmEvent(), Probe_Data::OpenFile(), Probe_Data::OpenForAppendToFile(), Vole_Population_Manager::OpenSexRatiosProbe(), SubPopulation_Population_Manager::openSubpopulationBaseProbeFile(), Skylark_Population_Manager::OpenTheBreedingPairsProbe(), Skylark_Population_Manager::OpenTheBreedingSuccessProbe(), Population_Manager::OpenTheMonthlyRipleysOutputProbe(), Population_Manager::OpenTheReallyBigProbe(), Population_Manager::OpenTheRipleysOutputProbe(), Configurator::ParseCfgLine(), PlantGrowthData::PlantGrowthData(), poecilusCupreus_tole_movemap_init(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Landscape::PolysDump(), Landscape::PolysRenumber(), Landscape::PolysValidate(), Landscape::PolytypeToString(), SkTerritories::PreFillQualGrid(), SkTerritories::PreProcessLandscape2(), FarmManager::Print_FarmerAttributes(), PesticideTable::PrintFTable(), PesticideTable::PrintHTable(), PesticideTable::PrintITable(), FarmManager::PrintLocationAndArea(), probability_distribution::probability_distribution(), RasterMap::RasterMap(), VegElement::ReadBugPercentageFile(), FarmManager::ReadCropManagementNorms(), FarmManager::ReadCropYieldReturns(), FarmManager::ReadFarmerAttributes(), FarmManager::ReadFarmFunctionsCB(), PollenNectarDevelopmentData::ReadFlowerNumberCrop(), Landscape::ReadFlowerSpeciesComp(), Landscape::ReadPolys1(), Landscape::ReadPolys2(), Farm::ReadRotation(), Configurator::ReadSymbols(), Weather::readWeatherFile(), Weather::readWeatherFileHourly(), Pesticide::ReducePlantPesticide(), Farm::RemoveField(), Landscape::RemoveSmallPolygons(), Population_Manager::Run(), Pesticide::SavePPM(), CfgInt::set(), CfgFloat::set(), GeneticMaterial1616::SetAllele(), Configurator::SetCfgArrayDouble(), Configurator::SetCfgArrayDoubleCsv(), Configurator::SetCfgArrayInt(), Configurator::SetCfgArrayIntCsv(), Configurator::SetCfgBool(), Configurator::SetCfgFloat(), Configurator::SetCfgFunction(), Configurator::SetCfgGatekeeper(), Configurator::SetCfgInt(), Configurator::SetCfgStr(), PlantGrowthData::SetVegNum(), Configurator::ShowIdType(), spider_tole_movemap_init_Erigone(), spider_tole_movemap_init_Oedothorax(), Skylark_Female::st_Finding_Territory(), Skylark_Female::st_Laying(), Skylark_Female::st_MakingNest(), Crop::StartUpCrop(), Beetle_Egg_List::Step(), Beetle_Larvae::Step(), Beetle_Adult::Step(), Configurator::StoreFromConfig(), Calendar::SunRiseTime(), Calendar::SunSetTime(), Landscape::SupplyMonthName(), FarmManager::TranslateCropCodes(), LE_TypeClass::TranslateEleTypes(), LE_TypeClass::TranslateEleTypesFromString(), FarmManager::TranslateVegCodes(), LE_TypeClass::TranslateVegTypes(), UserDefinedFarm::UserDefinedFarm(), Landscape::VegDump(), PlantGrowthData::VegTypeToCurveNum(), Landscape::VegtypeToString(), vole_tole_assess_barrier(), vole_tole_move_quality(), vole_toletoc_asses_habitat_score(), Landscape::Warn(), Weather::Weather(), and probability_distribution::~probability_distribution().

MapErrorMsg
Definition: MapErrorMsg.h:43
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41