aboutsummaryrefslogtreecommitdiff
path: root/src/timelineDecoder/JSONTimelineDecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timelineDecoder/JSONTimelineDecoder.cpp')
-rw-r--r--src/timelineDecoder/JSONTimelineDecoder.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/timelineDecoder/JSONTimelineDecoder.cpp b/src/timelineDecoder/JSONTimelineDecoder.cpp
index a0392149ed..c0e81370ed 100644
--- a/src/timelineDecoder/JSONTimelineDecoder.cpp
+++ b/src/timelineDecoder/JSONTimelineDecoder.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2020 Arm Ltd. All rights reserved.
+// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -242,12 +242,10 @@ void JSONTimelineDecoder::JSONEntity::SetParent(JSONEntity& parent)
parent.childEntities.push_back(GetGuid());
}
-void JSONTimelineDecoder::PrintJSON(JSONTimelineDecoder::JSONEntity& rootEntity)
+void JSONTimelineDecoder::PrintJSON(JSONTimelineDecoder::JSONEntity& rootEntity, std::ostream& os)
{
std::string jsonString = GetJSONString(rootEntity);
- std::ofstream ofs{this->outputJSONFile};
- ofs << jsonString;
- ofs.close();
+ os << jsonString;
}
std::string JSONTimelineDecoder::GetJSONString(JSONTimelineDecoder::JSONEntity& rootEntity)
@@ -377,11 +375,6 @@ const JSONTimelineDecoder::Model &JSONTimelineDecoder::GetModel()
return m_Model;
}
-void JSONTimelineDecoder::SetOutgoingCaptureFile(const std::string& outgoingCaptureFile)
-{
- this->outputJSONFile = outgoingCaptureFile;
-}
-
void JSONTimelineDecoder::JSONEntity::SetName(std::string entityName)
{
this->name = entityName;