Skip to content
Snippets Groups Projects
Commit e404472d authored by Fabian Reister's avatar Fabian Reister
Browse files

query: beforeTime with default: nElements=1

parent a5015bf1
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ namespace armarx::armem::client::query_fns
inline
std::function<void(query::SnapshotSelector&)>
beforeTime(Time time, long nElements)
beforeTime(Time time, long nElements = 1)
{
return [ = ](query::SnapshotSelector & selector)
{
......
......@@ -28,7 +28,7 @@ namespace armarx::armem::client::query
SnapshotSelector& atTime(Time timestamp);
SnapshotSelector& atTimeApprox(Time timestamp, Duration eps);
SnapshotSelector& beforeTime(Time timestamp, long maxEntries);
SnapshotSelector& beforeTime(Time timestamp, long maxEntries = 1);
SnapshotSelector& beforeOrAtTime(Time timestamp);
SnapshotSelector& timeRange(Time min, Time max);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment