dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
cacheitemqueue.cpp
Go to the documentation of this file.
1
13
/*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful, but
20
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
* for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with this program; if not, see <http://www.gnu.org/licenses/>
26
*/
27
#include "
cacheitemqueue.h
"
28
29
30
namespace
core {
31
CacheItemQueue::CacheItemQueue
(
const
MapType::Types &Type,
const
Point
&Pos,
const
QByteArray &Img,
const
int
&Zoom)
32
{
33
type=Type;
34
pos=Pos;
35
img=Img;
36
zoom=Zoom;
37
38
}
39
40
QByteArray
CacheItemQueue::GetImg
()
41
{
42
return
img;
43
}
44
45
MapType::Types
CacheItemQueue::GetMapType
()
46
{
47
return
type;
48
}
49
Point
CacheItemQueue::GetPosition
()
50
{
51
return
pos;
52
}
53
void
CacheItemQueue::SetImg
(
const
QByteArray &value)
54
{
55
img=value;
56
}
57
void
CacheItemQueue::SetMapType
(
const
MapType::Types &value)
58
{
59
type=value;
60
}
61
void
CacheItemQueue::SetPosition
(
const
Point
&value)
62
{
63
pos=value;
64
}
65
66
CacheItemQueue
&
CacheItemQueue::operator =
(
const
CacheItemQueue
&cSource)
67
{
68
img=cSource.img;
69
pos=cSource.pos;
70
type=cSource.type;
71
zoom=cSource.zoom;
72
return
*
this
;
73
}
74
bool
CacheItemQueue::operator ==
(
const
CacheItemQueue
&cSource)
75
{
76
bool
b=(img==cSource.img)&& (pos==cSource.pos) && (type==cSource.type) && (zoom==cSource.zoom);
77
return
b;
78
}
79
}
core::CacheItemQueue::SetImg
void SetImg(const QByteArray &value)
Definition:
cacheitemqueue.cpp:53
cacheitemqueue.h
core::CacheItemQueue::SetMapType
void SetMapType(const MapType::Types &value)
Definition:
cacheitemqueue.cpp:57
core::CacheItemQueue::GetImg
QByteArray GetImg()
Definition:
cacheitemqueue.cpp:40
core::CacheItemQueue::GetPosition
core::Point GetPosition()
Definition:
cacheitemqueue.cpp:49
core::CacheItemQueue::operator=
CacheItemQueue & operator=(const CacheItemQueue &cSource)
Definition:
cacheitemqueue.cpp:66
core::CacheItemQueue
Definition:
cacheitemqueue.h:37
core::CacheItemQueue::operator==
bool operator==(const CacheItemQueue &cSource)
Definition:
cacheitemqueue.cpp:74
core::CacheItemQueue::SetPosition
void SetPosition(const core::Point &value)
Definition:
cacheitemqueue.cpp:61
core::CacheItemQueue::GetMapType
MapType::Types GetMapType()
Definition:
cacheitemqueue.cpp:45
core::Point
Definition:
point.h:40
core::CacheItemQueue::CacheItemQueue
CacheItemQueue()
Definition:
cacheitemqueue.h:41
ground
gcs
src
libs
tlmapcontrol
core
cacheitemqueue.cpp
Generated by
1.8.6