From d7fcafaaaa917db458be362060e1b7855cad8083 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Thu, 23 Apr 2020 17:55:18 +0100 Subject: IVGCVSW-4722 Add missing m_TimelineEnabled bool to ConnectionAcknowledgedCommandHandler * Added timeline bool to ConnectionAcknowledgedCommandHandler * Added option to enable timeline profiling in ExecuteNetwork * Added CommandHandler stub to allow gatordMock to ignore packets Signed-off-by: Finn Williams Change-Id: I314f9411e0079cba8f103d3b8a89f2bf38bb21ab --- src/timelineDecoder/TimelineDecoder.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/timelineDecoder/TimelineDecoder.cpp') diff --git a/src/timelineDecoder/TimelineDecoder.cpp b/src/timelineDecoder/TimelineDecoder.cpp index f7f4663530..9aa84d2084 100644 --- a/src/timelineDecoder/TimelineDecoder.cpp +++ b/src/timelineDecoder/TimelineDecoder.cpp @@ -151,6 +151,13 @@ void TimelineDecoder::SetDefaultCallbacks() void TimelineDecoder::print() { + if (m_Model.m_Labels.empty() && m_Model.m_Entities.empty() && m_Model.m_EventClasses.empty() && + m_Model.m_Events.empty() && m_Model.m_Relationships.empty()) + { + std::cout << "No timeline packets received" << std::endl; + return; + } + printLabels(); printEntities(); printEventClasses(); -- cgit v1.2.1