WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
KmlData.h
1#ifndef _WINC_KMLDATA
2#define _WINC_KMLDATA
3
4#include <WXP/EarthPoints.h>
5#include <WXP/StrLib.h>
6
7namespace WXP {
8 struct KmlData {
9 int type;
10 char name[100];
11 EarthPoints epts;
12
13 KmlData();
14 int init();
15 int print();
16 int printData();
17
19 inline int getType(){ return type; };
20 inline int setType( int rtype ){ type = rtype; return 1; };
22 inline const char *getName(){ return name; };
23 inline int setName( const char *rname ){ StrLib::copy( name, 100, rname ); return 1; };
24 inline int clearPoints(){ return epts.clear(); };
25 inline int addPoint( EarthPoint &ept ){ return epts.add( ept ); };
26 inline int getNum(){ return epts.getNum(); };
27 inline EarthPoint getPoint( int ind ){ return epts.get( ind ); };
28 inline EarthRange getRange(){ return epts.getRange(); };
29
30 enum Type {
31 UNK,
32 LINE,
33 PLACE
34 };
35
36 friend class KmlFile;
37 };
38}
39#endif
40
This class creates an array a earth points (lat, lon)
Definition EarthPoints.h:9
int getNum()
Definition EarthPoints.h:52
int add(float lat, float lon)
Definition EarthPoints.cc:141
int clear()
Definition EarthPoints.h:26
int get(int ind, EarthPoint &ept)
Definition EarthPoints.cc:200
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 KML data.
Definition KmlData.h:8
int print()
Definition KmlData.cc:32
char name[100]
Definition KmlData.h:10
int type
Definition KmlData.h:9
const char * getName()
Definition KmlData.h:22
int getType()
Definition KmlData.h:19
int init()
Definition KmlData.cc:22