Gazebo Transport

API Reference

14.0.0~pre1
TimeRangeOption Class Reference

Base class which manages the time range settings for the native QueryOptions classes. More...

#include <QueryOptions.hh>

Public Member Functions

 TimeRangeOption (const QualifiedTimeRange &_timeRange)
 Constructor that sets the initial time range option.
 
 TimeRangeOption (const TimeRangeOption &_other)
 Copy constructor.
 
 TimeRangeOption (TimeRangeOption &&_other)
 Move constructor.
 
 ~TimeRangeOption ()
 Destructor.
 
SqlStatement GenerateTimeConditions () const
 Generate a SQL string to represent the time conditions. This should be appended to a SQL statement after a WHERE keyword.
 
QualifiedTimeRangeTimeRange ()
 Chosen time range.
 
const QualifiedTimeRangeTimeRange () const
 Chosen time range.
 

Detailed Description

Base class which manages the time range settings for the native QueryOptions classes.

Constructor & Destructor Documentation

◆ TimeRangeOption() [1/3]

TimeRangeOption ( const QualifiedTimeRange _timeRange)
explicit

Constructor that sets the initial time range option.

Parameters
[in]_timeRangeThe time range.

◆ TimeRangeOption() [2/3]

TimeRangeOption ( const TimeRangeOption _other)

Copy constructor.

Parameters
[in]_otherAnother TimeRangeOption

◆ TimeRangeOption() [3/3]

Move constructor.

Parameters
[in]_otherAnother TimeRangeOption

◆ ~TimeRangeOption()

Destructor.

Member Function Documentation

◆ GenerateTimeConditions()

SqlStatement GenerateTimeConditions ( ) const

Generate a SQL string to represent the time conditions. This should be appended to a SQL statement after a WHERE keyword.

Returns
A partial SqlStatement that specifies the time conditions that this TimeRangeOption has been set with.

◆ TimeRange() [1/2]

QualifiedTimeRange & TimeRange ( )

Chosen time range.

Returns
A mutable reference to the time range that should be queried for.

◆ TimeRange() [2/2]

const QualifiedTimeRange & TimeRange ( ) const

Chosen time range.

Returns
A const reference to the time range that should be queried for.

The documentation for this class was generated from the following file: