EntitySnapshotBase.cpp
Go to the documentation of this file.
1 #include "EntitySnapshotBase.h"
2 
4 
5 
6 void armarx::armem::base::detail::throwIfNotEqual(const Time& ownTime, const Time& updateTime)
7 {
8  ARMARX_CHECK_EQUAL(ownTime, updateTime)
9  << "Cannot update a snapshot to an update with another timestamp. \n"
10  << "Note: A snapshot's timestamp must not be changed after construction.";
11 }
EntitySnapshotBase.h
armarx::armem::base::detail::throwIfNotEqual
void throwIfNotEqual(const Time &ownTime, const Time &updateTime)
Definition: EntitySnapshotBase.cpp:6
ExpressionException.h
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
ARMARX_CHECK_EQUAL
#define ARMARX_CHECK_EQUAL(lhs, rhs)
This macro evaluates whether lhs is equal (==) rhs and if it turns out to be false it will throw an E...
Definition: ExpressionException.h:130