ADD: added use of raw tracklist update
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/IdentifierMaker.hpp"
|
||||
#include "SimCore/Messages/SensorTrack.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "nlohmann/json.hpp"
|
||||
#include <atomic>
|
||||
@@ -24,21 +25,22 @@ namespace TrackList
|
||||
{
|
||||
public:
|
||||
TrackList();
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> Track);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrack(SimCore::Identifier);
|
||||
void addTrack(std::shared_ptr<SimCore::SensorTrack> Track);
|
||||
std::shared_ptr<SimCore::SensorTrack> getTrack(SimCore::Identifier);
|
||||
|
||||
void deleteTrack(std::string ID);
|
||||
void deleteTrack(SimCore::Identifier);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrackBySringID(std::string ID);
|
||||
std::shared_ptr<SimCore::SensorTrack> getTrackBySringID(std::string ID);
|
||||
|
||||
size_t getSize();
|
||||
|
||||
void getJsonTRackList(nlohmann::json &message);
|
||||
std::map<std::string, std::shared_ptr<SimCore::SensorTrack>> getTrackStore();
|
||||
|
||||
|
||||
private:
|
||||
mutable std::mutex mx_;
|
||||
std::map<std::string, std::shared_ptr<SimCore::SimTrack>> TrackStore_;
|
||||
std::map<std::string, std::shared_ptr<SimCore::SensorTrack>> TrackStore_;
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user