40 std::ifstream* i =
new std::ifstream(path.string().c_str());
50 if (!filepath.empty())
60 if (!std::getline(*stream, line))
65 json->fromString(line);
66 auto payloadEncoded = json->getString(
"data");
67 data.topicName = json->getString(
"topic");
69 data.inParams.assign(payloadStr.begin(), payloadStr.end());
70 data.operationName = json->getString(
"op");
71 data.timestamp = IceUtil::Time::microSecondsDouble(json->getDouble(
"t"));
86 return IceUtil::Time::microSeconds(0);
89 std::vector<std::string>
92 return std::vector<std::string>();
bool seekTo(IceUtil::Time timestamp) override
std::vector< std::string > getReplayTopics() override
IceUtil::Time getReplayLength() override
bool read(TopicUtil::TopicData &data) override
FileTopicReader(std::istream *stream)
The JSONObject class is used to represent and (de)serialize JSON objects.
#define ARMARX_ERROR_S
The logging level for unexpected behaviour, that must be fixed.
std::string Decode64(const std::string &val)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< JSONObject > JSONObjectPtr