Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+50
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Interface
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "aes_to_situation_map_tmpl.h"
|
||||
#include <Plugins/AreaEffectSimulation/aes_data_plugin_interface.h>
|
||||
//#include <MapObjects/biological_agent.h>
|
||||
#include <MapObjects/single_fire.h>
|
||||
#include <QObject>
|
||||
#include <memory>
|
||||
|
||||
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
class BCContamination2SituationMap;
|
||||
template <>
|
||||
struct Aes2SituationMapTraits<BCContamination2SituationMap>
|
||||
{
|
||||
using DDS_TYPE = AreaEffectSimulation::BCContamination;
|
||||
using MAP_TYPE = SituationMap::SingleFire;
|
||||
static const AreaEffectSimulation::AesType_def::type aesType = AreaEffectSimulation::AesType_def::AtBCContamination;
|
||||
};
|
||||
|
||||
class BCContamination2SituationMap final : public Aes2SituationMap<BCContamination2SituationMap>
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using BaseClass = SituationMap::Aes2SituationMap<BCContamination2SituationMap>;
|
||||
using BaseClass::BaseClass;
|
||||
|
||||
bool run() override;
|
||||
bool iterateAesData(const std::function<bool(const AreaEffectSimulation::BCContamination &data)> &cb) const
|
||||
{
|
||||
return m_aesDtc->bCContaminations(cb);
|
||||
}
|
||||
|
||||
protected:
|
||||
bool updateElementImpl(const Sim2SituationMap::DDS_T &ddsData,
|
||||
RefPointer<MAP_T> mapObj) override;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
Reference in new issue
Block a user