WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MapFileHeader.h
1#ifndef _WINC_MAPFILEHEADER
2#define _WINC_MAPFILEHEADER
3
4#include <WXP/StrLib.h>
5
6namespace 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
static int copy(char *s1, int len1, const char s2)
Definition StrLib.cc:506
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores map segment header information.
Definition MapFileHeader.h:7
float getMaxLat()
Definition MapFileHeader.h:27
int init()
Definition MapFileHeader.cc:18
float maxlon
Definition MapFileHeader.h:12
int setNum(int val)
Definition MapFileHeader.h:17
float maxlat
Definition MapFileHeader.h:10
int print()
Definition MapFileHeader.cc:32
int setMinLat(float val)
Definition MapFileHeader.h:21
int setMinLon(float val)
Definition MapFileHeader.h:29
int setIndex(int val)
Definition MapFileHeader.h:37
int setMaxLon(float val)
Definition MapFileHeader.h:33
int getIndex()
Definition MapFileHeader.h:39
int num
Definition MapFileHeader.h:8
float getMinLon()
Definition MapFileHeader.h:31
int setLabel(const char *lab)
Definition MapFileHeader.h:41
int index
Definition MapFileHeader.h:13
int getNum()
Definition MapFileHeader.h:19
int setMaxLat(float val)
Definition MapFileHeader.h:25
char label[50]
Definition MapFileHeader.h:14
float minlat
Definition MapFileHeader.h:9
float getMaxLon()
Definition MapFileHeader.h:35
float minlon
Definition MapFileHeader.h:11
float getMinLat()
Definition MapFileHeader.h:23