27 auto referencedTime = aron::data::Long::DynamicCastAndCheck(
29 m.
referencedTime =
Time(Duration::MicroSeconds(referencedTime->toAronLongDTO()->value));
33 m.
sentTime =
Time(Duration::MicroSeconds(timeSent->toAronLongDTO()->value));
35 auto timeArrived = aron::data::Long::DynamicCastAndCheck(
37 m.
arrivedTime =
Time(Duration::MicroSeconds(timeArrived->toAronLongDTO()->value));
39 auto confidence = aron::data::Double::DynamicCastAndCheck(
41 m.
confidence =
static_cast<float>(confidence->toAronDoubleDTO()->value);
43 std::vector<std::string> keys = metadata->getAllKeys();
47 auto origin = aron::data::String::DynamicCastAndCheck(
49 m.
origin = origin->toAronStringDTO()->value;
65 metadata = std::make_shared<aron::data::Dict>();
67 auto timeWrapped = std::make_shared<aron::data::Long>(
69 timeWrapped->setValue(Time::Now().toMicroSecondsSinceEpoch());
73 auto referencedTime = std::make_shared<aron::data::Long>(
78 auto timeSent = std::make_shared<aron::data::Long>(
83 auto timeArrived = std::make_shared<aron::data::Long>(
88 auto confidence = std::make_shared<aron::data::Double>(
90 confidence->setValue(
static_cast<double>(m.
confidence));
93 auto origin = std::make_shared<aron::data::String>(
95 origin->setValue(m.
origin);