Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+73
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* PositionsCnr
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Fröbel, NLE, 2019-08-05
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "WebSocketInterface/Messages/reply_message.h"
|
||||
#include <QVector>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace AudioVideoManagement
|
||||
{
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
}
|
||||
|
||||
class CnrConfig;
|
||||
class FrequencyPlanning;
|
||||
}
|
||||
|
||||
namespace ParticipantManagement
|
||||
{
|
||||
namespace Interface
|
||||
{
|
||||
class Dtc;
|
||||
}
|
||||
|
||||
class Participant;
|
||||
|
||||
}
|
||||
|
||||
namespace CombatNetRadio
|
||||
{
|
||||
|
||||
class ExerciseManager;
|
||||
|
||||
/**
|
||||
* Will be instantiated for each Exercise in order to provide the relevant positions
|
||||
* according to the active FrequencyPlanning
|
||||
*
|
||||
* @author Christian Fröbel
|
||||
*/
|
||||
class PositionsCnr
|
||||
{
|
||||
public:
|
||||
explicit PositionsCnr(int exerciseId, ExerciseManager *exerciseManager, ParticipantManagement::Interface::Dtc *ppmDtc, AudioVideoManagement::Interface::Dtc *avmDtc);
|
||||
|
||||
WebSocketInterface::Messages::PositionsCnrMessage::PositionsCnrMessageData data() const;
|
||||
|
||||
/**
|
||||
* For a global CnrConfig return die positions of the Participants from this Exercise.
|
||||
* Will be called by ExerciseManager which will collect the positions from all Exercises for a global CnrConfig.
|
||||
*/
|
||||
QVector<WebSocketInterface::Messages::ReplyMessage::LonLatPoint> positionsForGlobal(const AudioVideoManagement::CnrConfig &config) const;
|
||||
|
||||
private:
|
||||
QVector<WebSocketInterface::Messages::ReplyMessage::LonLatPoint> positionsFor(const AudioVideoManagement::CnrConfig &config) const;
|
||||
QVector<WebSocketInterface::Messages::ReplyMessage::LonLatPoint> positionsForLocal(const AudioVideoManagement::CnrConfig &config) const;
|
||||
boost::optional<AudioVideoManagement::FrequencyPlanning> activePlan() const;
|
||||
|
||||
int m_exerciseId;
|
||||
ExerciseManager *m_exerciseManager;
|
||||
ParticipantManagement::Interface::Dtc *m_ppmDtc;
|
||||
AudioVideoManagement::Interface::Dtc *m_avmDtc;
|
||||
};
|
||||
|
||||
} // namespace CombatNetRadio
|
||||
Reference in new issue
Block a user