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

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2010 Harshit Jain <hjain.itbhu@gmail.com>
0004 //
0005 
0006 // Own
0007 #include "GeoDataTimePrimitive.h"
0008 
0009 // Private
0010 #include "GeoDataTimePrimitive_p.h"
0011 
0012 // Qt
0013 #include <QDataStream>
0014 
0015 // GeoData
0016 #include "GeoDataTypes.h"
0017 
0018 namespace Marble
0019 {
0020 
0021 GeoDataTimePrimitive::GeoDataTimePrimitive()
0022     : GeoDataObject(), d( new GeoDataTimePrimitivePrivate )
0023 {
0024 }
0025 
0026 GeoDataTimePrimitive::GeoDataTimePrimitive( const GeoDataTimePrimitive& other )
0027     : GeoDataObject( other ), d( new GeoDataTimePrimitivePrivate( *other.d ) )
0028 {
0029 }
0030 
0031 GeoDataTimePrimitive::~GeoDataTimePrimitive()
0032 {
0033     delete d;
0034 }
0035 
0036 GeoDataTimePrimitive& GeoDataTimePrimitive::operator=( const GeoDataTimePrimitive& other )
0037 {
0038     GeoDataObject::operator=( other );
0039     *d = *other.d;
0040     return *this;
0041 }
0042 
0043 const char* GeoDataTimePrimitive::nodeType() const
0044 {
0045     return GeoDataTypes::GeoDataTimePrimitiveType;
0046 }
0047 
0048 void GeoDataTimePrimitive::pack( QDataStream& stream ) const
0049 {
0050     GeoDataObject::pack( stream );
0051 }
0052 
0053 void GeoDataTimePrimitive::unpack( QDataStream& stream )
0054 {
0055     GeoDataObject::unpack( stream );
0056 }
0057 
0058 }