1 | /*!\file KML_Geometry.cpp
|
---|
2 | * \brief: implementation of the kml_geometry abstract object
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*Headers:*/
|
---|
6 | /*{{{1*/
|
---|
7 | #ifdef HAVE_CONFIG_H
|
---|
8 | #include <config.h>
|
---|
9 | #else
|
---|
10 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #include <stdio.h>
|
---|
14 | #include <string.h>
|
---|
15 | #include "../objects.h"
|
---|
16 | #include "../../shared/shared.h"
|
---|
17 | #include "../../Container/Container.h"
|
---|
18 | #include "../../include/include.h"
|
---|
19 | /*}}}*/
|
---|
20 |
|
---|
21 | /*Constructors/destructor/copy*/
|
---|
22 | /*FUNCTION KML_Geometry::KML_Geometry(){{{1*/
|
---|
23 | KML_Geometry::KML_Geometry(){
|
---|
24 |
|
---|
25 | ;
|
---|
26 |
|
---|
27 | }
|
---|
28 | /*}}}*/
|
---|
29 | /*FUNCTION KML_Geometry::~KML_Geometry(){{{1*/
|
---|
30 | KML_Geometry::~KML_Geometry(){
|
---|
31 |
|
---|
32 | ;
|
---|
33 |
|
---|
34 | }
|
---|
35 | /*}}}*/
|
---|
36 |
|
---|
37 | /*Other*/
|
---|
38 | /*FUNCTION KML_Geometry::Echo {{{1*/
|
---|
39 | void KML_Geometry::Echo(){
|
---|
40 |
|
---|
41 | this->KML_Object::Echo();
|
---|
42 |
|
---|
43 | return;
|
---|
44 | }
|
---|
45 | /*}}}*/
|
---|
46 |
|
---|
47 | /*FUNCTION KML_Geometry::DeepEcho {{{1*/
|
---|
48 | void KML_Geometry::DeepEcho(){
|
---|
49 |
|
---|
50 | char indent[81]="";
|
---|
51 |
|
---|
52 | KML_Geometry::DeepEcho(indent);
|
---|
53 |
|
---|
54 | return;
|
---|
55 | }
|
---|
56 | /*}}}*/
|
---|
57 |
|
---|
58 | /*FUNCTION KML_Geometry::DeepEcho {{{1*/
|
---|
59 | void KML_Geometry::DeepEcho(char* indent){
|
---|
60 |
|
---|
61 | this->KML_Object::DeepEcho(indent);
|
---|
62 |
|
---|
63 | return;
|
---|
64 | }
|
---|
65 | /*}}}*/
|
---|
66 |
|
---|
67 | /*FUNCTION KML_Geometry::Write {{{1*/
|
---|
68 | void KML_Geometry::Write(FILE* filout,char* indent){
|
---|
69 |
|
---|
70 | KML_Object::Write(filout,indent);
|
---|
71 |
|
---|
72 | return;
|
---|
73 | }
|
---|
74 | /*}}}*/
|
---|
75 |
|
---|
76 | /*FUNCTION KML_Geometry::Read {{{1*/
|
---|
77 | void KML_Geometry::Read(FILE* fid,char* kstr){
|
---|
78 |
|
---|
79 | /* process field within opening and closing tags */
|
---|
80 |
|
---|
81 | if (!strncmp(kstr,"</Geometry",10))
|
---|
82 | return;
|
---|
83 | else if (!strncmp(kstr,"</",2))
|
---|
84 | _error_("KML_Geometry::Read -- Unexpected closing tag %s.\n",kstr);
|
---|
85 | else if (strncmp(kstr,"<",1))
|
---|
86 | _error_("KML_Geometry::Read -- Unexpected field \"%s\".\n",kstr);
|
---|
87 |
|
---|
88 | else if (!strncmp(kstr,"<",1))
|
---|
89 | KML_Object::Read(fid,kstr);
|
---|
90 |
|
---|
91 | return;
|
---|
92 | }
|
---|
93 | /*}}}*/
|
---|
94 |
|
---|