Skip to content
Snippets Groups Projects

armem/dev => master

Merged Fabian Reister requested to merge armem/dev into master
2 files
+ 58
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -75,15 +75,31 @@ module armarx
};
/**
* @brief Get the last snapshot before the timestamp.
* @brief Get the last snapshot before or at the timestamp.
*
* This query is kind of similar to latest() but with a reference timestamp.
*
*/
class BeforeOrAtTime extends EntityQuery
{
long timestamp;
}
/**
* @brief Get the last snapshot before the timestamp or a sequence of
* n last elements before the timestamp depending on #maxEntries
*
* Depending on #maxEntries, the behavior is as follows:
* - #maxEntries == 1 => last element before timestamp
* - #maxEntries > 1 => n last elements before timestamp
* - #maxEntries < 0 => all elements before timestamp
*/
class BeforeTime extends EntityQuery
{
long timestamp;
long maxEntries = 1;
}
}
Loading