File indexing completed on 2024-05-12 03:50:19

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2013 Mihail Ivchenko <ematirov@gmail.com>
0004 //
0005 
0006 #include "GeoDataWait.h"
0007 
0008 #include "GeoDataTypes.h"
0009 
0010 namespace Marble
0011 {
0012 
0013 GeoDataWait::GeoDataWait() :
0014     m_duration(0.0)
0015 {
0016 }
0017 
0018 GeoDataWait::~GeoDataWait()
0019 {
0020 }
0021 
0022 bool GeoDataWait::operator==(const GeoDataWait& other) const
0023 {
0024     return this->m_duration == other.m_duration;
0025 }
0026 
0027 bool GeoDataWait::operator!=(const GeoDataWait& other) const
0028 {
0029     return !this->operator==(other);
0030 }
0031 
0032 const char *GeoDataWait::nodeType() const
0033 {
0034     return GeoDataTypes::GeoDataWaitType;
0035 }
0036 
0037 double GeoDataWait::duration() const
0038 {
0039     return m_duration;
0040 }
0041 
0042 void GeoDataWait::setDuration(double duration)
0043 {
0044     m_duration = duration;
0045 }
0046 
0047 } // namespace Marble