Proxy class for time series. Stores an ordered list of times, for example, for time- dependent properties, geometries, or representations. It is used in conjunction with the time index to specify times for RESQML.
More...
#include <TimeSeries.h>
|
static constexpr char const * | XML_TAG = "TimeSeries" |
|
Proxy class for time series. Stores an ordered list of times, for example, for time- dependent properties, geometries, or representations. It is used in conjunction with the time index to specify times for RESQML.
◆ ~TimeSeries()
virtual eml2::TimeSeries::~TimeSeries |
( |
| ) |
|
|
virtualdefault |
Destructor does nothing since the memory is managed by the gSOAP context.
◆ getPropertySet()
std::vector< resqml2 ::AbstractProperty * > eml2::TimeSeries::getPropertySet |
( |
| ) |
const |
Get all the properties which use this time series
- Returns
- A vector of pointers to all the properties which use this time series.
◆ getTimestamp()
time_t eml2::TimeSeries::getTimestamp |
( |
uint64_t | index | ) |
const |
Gets a timestamp at a particular index of this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
std::out_of_range | If index is out of range. |
- Parameters
-
index | Zero-based index of the timestamp we look for. |
- Returns
- The timestamp at position
index
.
◆ getTimestampAsTimeStructure()
virtual tm eml2::TimeSeries::getTimestampAsTimeStructure |
( |
uint64_t | index | ) |
const |
|
pure virtual |
Gets a timestamp as a time structure at a particular index of this time series. It allows to read dates from 1900-01-01T00:00:00.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
std::out_of_range | If index is out of range. |
- Parameters
-
index | Zero-based index of the timestamp we look for. |
- Returns
- The timestamp at position
index
.
◆ getTimestampCount()
virtual uint64_t eml2::TimeSeries::getTimestampCount |
( |
| ) |
const |
|
pure virtual |
Get the count of timestamps in this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
- Returns
- The timestamp count.
◆ getTimestampIndex() [1/2]
virtual uint64_t eml2::TimeSeries::getTimestampIndex |
( |
const tm & | timestamp, |
|
|
LONG64 | yearOffset = 0 ) const |
|
pure virtual |
Gets the index of a given timestamp in this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
std::out_of_range | If timestamp has not been found in this time series. |
- Parameters
-
timestamp | The timestamp we look for. |
yearOffset | Indicates that the dateTime attribute must be translated according to this value. |
- Returns
- The index of
timestamp
in this time series.
◆ getTimestampIndex() [2/2]
virtual uint64_t eml2::TimeSeries::getTimestampIndex |
( |
time_t | timestamp, |
|
|
LONG64 | yearOffset = 0 ) const |
|
pure virtual |
Gets the index of a given timestamp in this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
std::out_of_range | If timestamp has not been found in this time series. |
- Parameters
-
timestamp | The timestamp we look for. |
yearOffset | Indicates that the dateTime attribute must be translated according to this value. |
- Returns
- The index of
timestamp
in this time series.
◆ pushBackTimestamp() [1/2]
virtual void eml2::TimeSeries::pushBackTimestamp |
( |
const tm & | timestamp | ) |
|
|
pure virtual |
Pushes back an timestamp into this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
- Parameters
-
timestamp | The timestamp to push back. |
◆ pushBackTimestamp() [2/2]
void eml2::TimeSeries::pushBackTimestamp |
( |
time_t | timestamp | ) |
|
Pushes back an timestamp into this time series.
- Exceptions
-
std::logic_error | If the underlying gSOAP instance is not a RESQML2.0 one. |
- Parameters
-
timestamp | The timestamp to push back. |
◆ XML_TAG
constexpr char const* eml2::TimeSeries::XML_TAG = "TimeSeries" |
|
staticconstexpr |
The standard XML tag without XML namespace for serializing this data object.
The documentation for this class was generated from the following file:
- C:/Users/philippe/dev/fesapiEnv/fesapi-2.9.0.1/src/eml2/TimeSeries.h