12 #include <boost/filesystem/path.hpp> 13 #include <boost/filesystem.hpp> 17 namespace timelinedecoder
32 void SetName(std::string entityName);
33 void SetType(std::string entityType);
68 boost::filesystem::path fileDir = boost::filesystem::temp_directory_path();
69 boost::filesystem::path p{fileDir / boost::filesystem::unique_path(
"output.json")};
71 std::string outputJSONFile = p.string();
73 void HandleRetentionLink(
const Relationship& relationship);
75 void HandleExecutionLink(
const Relationship& relationship);
76 void HandleConnectionLabel(
const Relationship& relationship);
77 void HandleBackendIdLabel(
const Relationship& relationship);
81 std::string GetLayerJSONString(
JSONEntity& entity,
int& counter, std::string& jsonEntityString);
82 std::string GetWorkloadJSONString(
const JSONEntity& entity,
int& counter, std::string& jsonEntityString);
83 std::string GetWorkloadExecutionJSONString(
const JSONEntity& entity, std::string& jsonEntityString)
const;
std::map< uint64_t, EventClass > eventClasses
std::vector< uint64_t > connected_entities
void SetType(std::string entityType)
void AddConnection(JSONEntity &headEntity, JSONEntity &connectedEntity)
Copyright (c) 2020 ARM Limited.
std::map< uint64_t, JSONEntity > jsonEntities
void SetParent(JSONEntity &parent)
std::map< uint64_t, Event > events
std::vector< uint64_t > childEntities
void SetName(std::string entityName)
void SetOutgoingCaptureFile(const std::string &basicString)
std::string GetJSONEntityString(JSONEntity &entity, int &counter)
virtual TimelineStatus CreateEntity(const Entity &) override
virtual TimelineStatus CreateEventClass(const EventClass &) override
std::string GetJSONString(JSONEntity &rootEntity)
JSONEntity(uint64_t guid)
std::map< uint64_t, Label > labels
void PrintJSON(JSONEntity &entity)
std::map< uint64_t, Relationship > relationships
virtual TimelineStatus CreateLabel(const Label &) override
virtual TimelineStatus CreateEvent(const Event &) override
std::map< std::string, std::string > extendedData
virtual TimelineStatus CreateRelationship(const Relationship &) override