Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+9
-10
@@ -15,16 +15,15 @@ using namespace EffectShowManagement;
|
||||
//=============================================================================
|
||||
|
||||
HandlerPpmData::HandlerPpmData(Initialization *mainHandler,
|
||||
QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_mainHandler(mainHandler)
|
||||
{
|
||||
QObject *parent) : QObject(parent)
|
||||
, m_mainHandler(mainHandler),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {
|
||||
} // end of ctor()
|
||||
//=============================================================================
|
||||
|
||||
bool HandlerPpmData::init()
|
||||
{
|
||||
DEBUG_LOG() << "Begin HandlerPpmData";
|
||||
DEBUG_LOG(m_logger) << "Begin HandlerPpmData";
|
||||
auto dtcPpm = m_mainHandler->dds()->dtcPpm();
|
||||
connect(dtcPpm.get(), &ParticipantManagement::Interface::Dtc::participantChanged,
|
||||
this, &HandlerPpmData::onParticipantChanged);
|
||||
@@ -40,7 +39,7 @@ bool HandlerPpmData::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "End HandlerPpmData";
|
||||
DEBUG_LOG(m_logger) << "End HandlerPpmData";
|
||||
return true;
|
||||
} // end of init()
|
||||
|
||||
@@ -53,7 +52,7 @@ HandlerPpmData::Participant_t HandlerPpmData::getIdAndNameOfEffectShowActor(int
|
||||
return p;
|
||||
}
|
||||
|
||||
WARNING_LOG() << Q_FUNC_INFO << " Equipment Number not found: " << equipmentNum;
|
||||
WARNING_LOG(m_logger) << Q_FUNC_INFO << " Equipment Number not found: " << equipmentNum;
|
||||
return Participant_t(); // participant not available
|
||||
|
||||
} // end of getIdAndNameOfEffectShowActor()
|
||||
@@ -64,7 +63,7 @@ int HandlerPpmData::getEquipmentNumber(int id) const
|
||||
auto it = m_participant.find(id);
|
||||
if (it == m_participant.end())
|
||||
{
|
||||
WARNING_LOG() << Q_FUNC_INFO << " Participant(" << id << ") not found. ";
|
||||
WARNING_LOG(m_logger) << Q_FUNC_INFO << " Participant(" << id << ") not found. ";
|
||||
return -1; // participant not available
|
||||
}
|
||||
return it.value().equipmentNumber;
|
||||
@@ -78,7 +77,7 @@ void HandlerPpmData::onParticipantChanged(const ParticipantManagement::Participa
|
||||
{
|
||||
auto m_ppmDtc = m_mainHandler->dds()->dtcPpm();
|
||||
ParticipantManagement::TypeClass typeClass = m_ppmDtc->type(data.typeId()).typeClass();
|
||||
DEBUG_LOG() << "support entity / equipment number set " << (typeClass == ParticipantManagement::TypeClass::SupportEntity)
|
||||
DEBUG_LOG(m_logger) << "support entity / equipment number set " << (typeClass == ParticipantManagement::TypeClass::SupportEntity)
|
||||
<< " / " << data.equipmentNumber().is_set() << ", typeId: " << data.typeId()
|
||||
<< ", cnt: " << m_ppmDtc->types().size();
|
||||
|
||||
@@ -119,7 +118,7 @@ void HandlerPpmData::onParticipantChanged(const ParticipantManagement::Participa
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "onParticipantChanged: " << data.id() << ' ' << data.name() << ' ' << modType;
|
||||
DEBUG_LOG(m_logger) << "onParticipantChanged: " << data.id() << ' ' << data.name() << ' ' << modType;
|
||||
|
||||
|
||||
} // end of onParticipantChanged()
|
||||
Reference in new issue
Block a user