20.05
|
#include <JSONTimelineDecoder.hpp>
Classes | |
struct | JSONEntity |
struct | Model |
Public Member Functions | |
void | PrintJSON (JSONEntity &entity) |
std::string | GetJSONString (JSONEntity &rootEntity) |
std::string | GetJSONEntityString (JSONEntity &entity, int &counter) |
virtual TimelineStatus | CreateEntity (const Entity &) override |
virtual TimelineStatus | CreateEventClass (const EventClass &) override |
virtual TimelineStatus | CreateEvent (const Event &) override |
virtual TimelineStatus | CreateLabel (const Label &) override |
virtual TimelineStatus | CreateRelationship (const Relationship &) override |
const Model & | GetModel () |
void | SetOutgoingCaptureFile (const std::string &basicString) |
Public Member Functions inherited from ITimelineDecoder | |
virtual | ~ITimelineDecoder ()=default |
Additional Inherited Members | |
Public Types inherited from ITimelineDecoder | |
enum | TimelineStatus { TimelineStatus_Success, TimelineStatus_Fail } |
enum | RelationshipType { RetentionLink, ExecutionLink, DataLink, LabelLink } |
Static Public Member Functions inherited from ITimelineDecoder | |
static char const * | GetRelationshipAsCString (RelationshipType rType) |
Definition at line 19 of file JSONTimelineDecoder.hpp.
|
overridevirtual |
Implements ITimelineDecoder.
Definition at line 30 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::Model::jsonEntities, ITimelineDecoder::Entity::m_Guid, JSONTimelineDecoder::JSONEntity::SetType(), and ITimelineDecoder::TimelineStatus_Success.
Referenced by RunSimpleModelThroughDecoder().
|
overridevirtual |
Implements ITimelineDecoder.
Definition at line 47 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::Model::events, JSONTimelineDecoder::JSONEntity::GetGuid(), JSONTimelineDecoder::Model::jsonEntities, ITimelineDecoder::Event::m_Guid, JSONTimelineDecoder::JSONEntity::SetType(), and ITimelineDecoder::TimelineStatus_Success.
Referenced by RunSimpleModelThroughDecoder().
|
overridevirtual |
Implements ITimelineDecoder.
Definition at line 38 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::Model::eventClasses, JSONTimelineDecoder::Model::jsonEntities, ITimelineDecoder::EventClass::m_Guid, JSONTimelineDecoder::JSONEntity::SetType(), and ITimelineDecoder::TimelineStatus_Success.
Referenced by RunSimpleModelThroughDecoder().
|
overridevirtual |
Implements ITimelineDecoder.
Definition at line 56 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::Model::labels, ITimelineDecoder::Label::m_Guid, and ITimelineDecoder::TimelineStatus_Success.
Referenced by RunSimpleModelThroughDecoder().
|
overridevirtual |
Implements ITimelineDecoder.
Definition at line 62 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::JSONEntity::AddConnection(), ITimelineDecoder::ExecutionLink, JSONTimelineDecoder::JSONEntity::extendedData, JSONTimelineDecoder::Model::jsonEntities, ITimelineDecoder::LabelLink, JSONTimelineDecoder::Model::labels, ITimelineDecoder::Relationship::m_Guid, ITimelineDecoder::Relationship::m_HeadGuid, ITimelineDecoder::Relationship::m_RelationshipType, ITimelineDecoder::Relationship::m_TailGuid, JSONTimelineDecoder::Model::relationships, ITimelineDecoder::RetentionLink, JSONTimelineDecoder::JSONEntity::SetName(), JSONTimelineDecoder::JSONEntity::SetParent(), JSONTimelineDecoder::JSONEntity::SetType(), and ITimelineDecoder::TimelineStatus_Success.
Referenced by RunSimpleModelThroughDecoder().
std::string GetJSONEntityString | ( | JSONTimelineDecoder::JSONEntity & | entity, |
int & | counter | ||
) |
Definition at line 274 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::JSONEntity::childEntities, JSONTimelineDecoder::Model::events, JSONTimelineDecoder::JSONEntity::extendedData, JSONTimelineDecoder::JSONEntity::GetGuid(), JSONTimelineDecoder::JSONEntity::GetName(), JSONTimelineDecoder::JSONEntity::GetType(), JSONTimelineDecoder::Model::jsonEntities, and ITimelineDecoder::Event::m_TimeStamp.
Referenced by JSONTimelineDecoder::GetJSONString().
std::string GetJSONString | ( | JSONTimelineDecoder::JSONEntity & | rootEntity | ) |
Definition at line 254 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::JSONEntity::childEntities, JSONTimelineDecoder::GetJSONEntityString(), JSONTimelineDecoder::JSONEntity::GetType(), and JSONTimelineDecoder::Model::jsonEntities.
Referenced by BOOST_AUTO_TEST_CASE(), and JSONTimelineDecoder::PrintJSON().
const JSONTimelineDecoder::Model & GetModel | ( | ) |
Definition at line 376 of file JSONTimelineDecoder.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
void PrintJSON | ( | JSONTimelineDecoder::JSONEntity & | rootEntity | ) |
Definition at line 246 of file JSONTimelineDecoder.cpp.
References JSONTimelineDecoder::GetJSONString().
Referenced by BOOST_AUTO_TEST_CASE().
void SetOutgoingCaptureFile | ( | const std::string & | basicString | ) |
Definition at line 381 of file JSONTimelineDecoder.cpp.