Go to the documentation of this file.
7 #include <SimoxUtility/algorithm/apply.hpp>
15 return os <<
"Entity update: "
25 return os <<
"Entity update result: "
26 <<
"\n- success: \t" << (rhs.
success ?
"true" :
"false")
36 os <<
"Commit with " << rhs.
updates.size() <<
" entity update";
42 for (
size_t i = 0; i < rhs.
updates.size(); ++i)
44 os <<
"[" << i <<
"] " << rhs.
updates[i];
50 os <<
"Commit results of " << rhs.
results.size() <<
" entity update";
56 for (
size_t i = 0; i < rhs.
results.size(); ++i)
58 os <<
"[" << i <<
"] " << rhs.
results[i];
std::vector< std::string > allErrorMessages() const
std::vector< aron::data::DictPtr > instancesData
The entity data.
A bundle of updates to be sent to the memory.
Result of an EntityUpdate.
void append(const Commit &c)
std::vector< EntityUpdate > updates
The entity updates.
std::ostream & operator<<(std::ostream &os, const EntityUpdate &rhs)
std::string toDateTimeMilliSeconds(const Time &time, int decimals=6)
Returns timeas e.g.
An update of an entity for a specific point in time.
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Time referencedTime
Time when this entity update was created (e.g.
std::vector< EntityUpdateResult > results
MemoryID entityID
The entity's ID.