Ref T241, Ref T243, ITimestampWithOffsetObjectList

* there was already ITimestampWithOffsetBased for objects
* this creates the container version
* functions to add objects (parts/situations) and guarantee the sort order
* moved push_frontMaxElements to CSequence (not specific for timestamp lists)
* added in-place reverse
This commit is contained in:
Klaus Basan
2018-02-02 20:41:41 +01:00
parent e9e0ae1ff4
commit 51ba6398bb
9 changed files with 170 additions and 17 deletions

View File

@@ -290,6 +290,11 @@ namespace BlackMisc
return (i >= static_cast<int>(IndexOffsetMs)) && (i <= static_cast<int>(IndexOffsetWithUnit));
}
bool ITimestampWithOffsetBased::hasOffsetTime() const
{
return m_timeOffsetMs != 0;
}
QString ITimestampWithOffsetBased::getTimeOffsetWithUnit() const
{
static const QString os("%1ms");