Ice Sheet System Model  4.18
Code documentation
KML_Geometry.cpp
Go to the documentation of this file.
1 
5 /*Headers:*/
6 /*{{{*/
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 "./KML_Geometry.h"
14 #include "./KML_Object.h"
15 #include "../shared/shared.h"
16 /*}}}*/
17 
18 /*Constructors/destructor/copy*/
20 
21  ;
22 
23 }
24 /*}}}*/
26 
27  ;
28 
29 }
30 /*}}}*/
31 
32 /*Other*/
33 void KML_Geometry::Echo(){/*{{{*/
34 
35  this->KML_Object::Echo();
36 
37  return;
38 }
39 /*}}}*/
40 void KML_Geometry::DeepEcho(){/*{{{*/
41 
42  char indent[81]="";
43 
44  KML_Geometry::DeepEcho(indent);
45 
46  return;
47 }
48 /*}}}*/
49 void KML_Geometry::DeepEcho(const char* indent){/*{{{*/
50 
51  this->KML_Object::DeepEcho(indent);
52 
53  return;
54 }
55 /*}}}*/
56 void KML_Geometry::Write(FILE* filout,const char* indent){/*{{{*/
57 
58  KML_Object::Write(filout,indent);
59 
60  return;
61 }
62 /*}}}*/
63 void KML_Geometry::Read(FILE* fid,char* kstr){/*{{{*/
64 
65 /* process field within opening and closing tags */
66 
67  if (!strncmp(kstr,"</Geometry",10))
68  return;
69  else if (!strncmp(kstr,"</",2))
70  {_error_("KML_Geometry::Read -- Unexpected closing tag " << kstr << ".\n");}
71  else if (strncmp(kstr,"<",1))
72  {_error_("KML_Geometry::Read -- Unexpected field \"" << kstr << "\".\n");}
73 
74  else if (!strncmp(kstr,"<",1))
75  KML_Object::Read(fid,kstr);
76 
77  return;
78 }
79 /*}}}*/
KML_Object.h
: header file for kml_object abstract object
KML_Geometry::Write
void Write(FILE *fid, const char *indent)
Definition: KML_Geometry.cpp:56
KML_Object::Read
virtual void Read(FILE *fid, char *kstr)=0
Definition: KML_Object.cpp:143
KML_Geometry::~KML_Geometry
~KML_Geometry()
Definition: KML_Geometry.cpp:25
KML_Object::Write
virtual void Write(FILE *fid, const char *indent)=0
Definition: KML_Object.cpp:122
KML_Geometry::DeepEcho
void DeepEcho()
Definition: KML_Geometry.cpp:40
KML_Object::DeepEcho
virtual void DeepEcho()
Definition: KML_Object.cpp:72
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49
KML_Object::Echo
virtual void Echo()
Definition: KML_Object.cpp:61
KML_Geometry::KML_Geometry
KML_Geometry()
Definition: KML_Geometry.cpp:19
KML_Geometry.h
: header file for kml_geometry abstract object
KML_Geometry::Echo
void Echo()
Definition: KML_Geometry.cpp:33
KML_Geometry::Read
void Read(FILE *fid, char *kstr)
Definition: KML_Geometry.cpp:63