WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
MapFileHeader.h
1
#ifndef _WINC_MAPFILEHEADER
2
#define _WINC_MAPFILEHEADER
3
4
#include <WXP/StrLib.h>
5
6
namespace
WXP
{
7
struct
MapFileHeader
{
8
int
num
;
9
float
minlat
;
10
float
maxlat
;
11
float
minlon
;
12
float
maxlon
;
13
int
index
;
14
char
label
[50];
17
inline
int
setNum
(
int
val ){
num
= val;
return
1; };
19
inline
int
getNum
(){
return
num
; };
21
inline
int
setMinLat
(
float
val ){
minlat
= val;
return
1; };
23
inline
float
getMinLat
(){
return
minlat
; };
25
inline
int
setMaxLat
(
float
val ){
maxlat
= val;
return
1; };
27
inline
float
getMaxLat
(){
return
maxlat
; };
29
inline
int
setMinLon
(
float
val ){
minlon
= val;
return
1; };
31
inline
float
getMinLon
(){
return
minlon
; };
33
inline
int
setMaxLon
(
float
val ){
maxlon
= val;
return
1; };
35
inline
float
getMaxLon
(){
return
maxlon
; };
37
inline
int
setIndex
(
int
val ){
index
= val;
return
1; };
39
inline
int
getIndex
(){
return
index
; };
41
inline
int
setLabel
(
const
char
*lab ){
return
StrLib::copy
(
label
, 50, lab ); };
42
inline
bool
hasLabel(){
return
label
[0] != 0; };
43
inline
const
char
*getLabel(){
return
label
; };
44
45
int
init
();
46
int
print
();
47
48
friend
class
MapFile;
49
};
50
}
51
#endif
52
WXP::StrLib::copy
static int copy(char *s1, int len1, const char s2)
Definition
StrLib.cc:506
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::MapFileHeader
This struct stores map segment header information.
Definition
MapFileHeader.h:7
WXP::MapFileHeader::getMaxLat
float getMaxLat()
Definition
MapFileHeader.h:27
WXP::MapFileHeader::init
int init()
Definition
MapFileHeader.cc:18
WXP::MapFileHeader::maxlon
float maxlon
Definition
MapFileHeader.h:12
WXP::MapFileHeader::setNum
int setNum(int val)
Definition
MapFileHeader.h:17
WXP::MapFileHeader::maxlat
float maxlat
Definition
MapFileHeader.h:10
WXP::MapFileHeader::print
int print()
Definition
MapFileHeader.cc:32
WXP::MapFileHeader::setMinLat
int setMinLat(float val)
Definition
MapFileHeader.h:21
WXP::MapFileHeader::setMinLon
int setMinLon(float val)
Definition
MapFileHeader.h:29
WXP::MapFileHeader::setIndex
int setIndex(int val)
Definition
MapFileHeader.h:37
WXP::MapFileHeader::setMaxLon
int setMaxLon(float val)
Definition
MapFileHeader.h:33
WXP::MapFileHeader::getIndex
int getIndex()
Definition
MapFileHeader.h:39
WXP::MapFileHeader::num
int num
Definition
MapFileHeader.h:8
WXP::MapFileHeader::getMinLon
float getMinLon()
Definition
MapFileHeader.h:31
WXP::MapFileHeader::setLabel
int setLabel(const char *lab)
Definition
MapFileHeader.h:41
WXP::MapFileHeader::index
int index
Definition
MapFileHeader.h:13
WXP::MapFileHeader::getNum
int getNum()
Definition
MapFileHeader.h:19
WXP::MapFileHeader::setMaxLat
int setMaxLat(float val)
Definition
MapFileHeader.h:25
WXP::MapFileHeader::label
char label[50]
Definition
MapFileHeader.h:14
WXP::MapFileHeader::minlat
float minlat
Definition
MapFileHeader.h:9
WXP::MapFileHeader::getMaxLon
float getMaxLon()
Definition
MapFileHeader.h:35
WXP::MapFileHeader::minlon
float minlon
Definition
MapFileHeader.h:11
WXP::MapFileHeader::getMinLat
float getMinLat()
Definition
MapFileHeader.h:23
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7