ADD: add functionality to delete and add new entities
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "DirectCommunicationServer.hpp"
|
||||
#include "SimControl/Tracklist.hpp"
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Position.hpp"
|
||||
#include "WHISPER/InternalUDPListener.hpp"
|
||||
#include "crossguid/guid.hpp"
|
||||
#include "ixwebsocket/IXConnectionState.h"
|
||||
@@ -55,6 +56,7 @@ class SimControl{
|
||||
|
||||
|
||||
void startShip(std::string name);
|
||||
void startNewShip(std::string Name, std::string lat, std::string lon, std::string height , std::string course, std::string speed);
|
||||
void updateShip(nlohmann::json request);
|
||||
void deleteShip(nlohmann::json request);
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ namespace SimControl
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> Track);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrack(SimCore::Identifier);
|
||||
|
||||
|
||||
void deleteTrack(std::string ID);
|
||||
void deleteTrack(SimCore::Identifier);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrackBySringID(std::string ID);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user