Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* IsmHandler for WirelessLocationSystem
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
#include <InfrastructureManagement/ism.hpp>
|
||||
#include <InfrastructureManagement/ism_dtc.h>
|
||||
#include <LtsUtilsCore/data_modification_enum.h>
|
||||
|
||||
|
||||
namespace WirelessLocationSystem
|
||||
{
|
||||
class MainHandler;
|
||||
class IsmHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit IsmHandler(QObject *parent = nullptr);
|
||||
|
||||
bool init(MainHandler *mainHandler);
|
||||
|
||||
int buildingIdFromExternalWlsId(int externalWlsId) const { return m_externalWlsId2MseId.value(externalWlsId, -1); }
|
||||
int roomIdFromRoomNumber(int buildingId, int roomNumber) const { return m_mseId2RoomId.value(buildingId).value(roomNumber, -1); }
|
||||
|
||||
private Q_SLOTS:
|
||||
void onMainStructureElementChanged(const InfrastructureManagement::MainStructureElement &data, DataModification modType);
|
||||
|
||||
private:
|
||||
// QMap<mseId, MainStructureElement>
|
||||
QHash<int, InfrastructureManagement::MainStructureElement> m_mainStructureElements;
|
||||
// QMap<externalWlsId, mseId>
|
||||
QHash<int, int> m_externalWlsId2MseId;
|
||||
// QMap<mseId, QMap<roomNumber, roomId>>
|
||||
QHash<int, QMap<int, int>> m_mseId2RoomId;
|
||||
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_dtcIsm;
|
||||
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
|
||||
} // namespace WirelessLocationSystem
|
||||
Reference in new issue
Block a user