 |
Ice Sheet System Model
4.18
Code documentation
|
Go to the documentation of this file.
10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
20 #include "../shared/shared.h"
45 if(flag)
_printf0_(
"KML_Multigeometry:\n");
68 if(flag)
_printf0_(indent <<
"KML_Multigeometry:\n");
73 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
78 if(flag)
_printf0_(indent <<
" geometry: -------- begin [" << i <<
"] --------\n");
80 if(flag)
_printf0_(indent <<
" geometry: -------- end [" << i <<
"] --------\n");
83 if(flag)
_printf0_(indent <<
" geometry: [empty]\n");
93 fprintf(filout,
"%s<MultiGeometry",indent);
95 fprintf(filout,
">\n");
102 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
109 fprintf(filout,
"%s</MultiGeometry>\n",indent);
130 if (!strncmp(kstri,
"</MultiGeometry",15)) {
131 xDelete<char>(kstri);
134 else if (!strncmp(kstri,
"</",2))
135 {
_error_(
"KML_MultiGeometry::Read -- Unexpected closing tag " << kstri <<
".\n");}
136 else if (strncmp(kstri,
"<",1))
137 {
_error_(
"KML_MultiGeometry::Read -- Unexpected field \"" << kstri <<
"\".\n");}
139 else if (!strncmp(kstri,
"<Point", 6)) {
141 kobj->
Read(fid,kstri);
145 else if (!strncmp(kstri,
"<LineString",11)) {
147 kobj->
Read(fid,kstri);
151 else if (!strncmp(kstri,
"<LinearRing",11)) {
153 kobj->
Read(fid,kstri);
157 else if (!strncmp(kstri,
"<Polygon", 8)) {
159 kobj->
Read(fid,kstri);
163 else if (!strncmp(kstri,
"<MultiGeometry",14)) {
165 kobj->
Read(fid,kstri);
169 else if (!strncmp(kstri,
"<",1))
172 xDelete<char>(kstri);
177 for(ncom=ncom; ncom>0; ncom--)
178 xDelete<char>(pcom[ncom-1]);
179 xDelete<char*>(pcom);
: header file for kml_object abstract object
#define _printf0_(StreamArgs)
virtual void WriteAttrib(FILE *fid, const char *indent)
void Write(FILE *fid, const char *indent)
int AddObject(Object *object)
void Write(FILE *fid, const char *indent)
: header file for kml file reading utilities.
int KMLFileTagAttrib(KML_Object *kobj, char *ktag)
: header file for kml_linestring object
virtual void Read(FILE *fid, char *kstr)=0
char * KMLFileToken(FILE *fid, int *pncom=NULL, char ***ppcom=NULL)
: header file for kml_multigeometry object
void Read(FILE *fid, char *kstr)
#define _error_(StreamArgs)
: header file for kml_polygon object
Object * GetObjectByOffset(int offset)
: header file for kml_linearring object
: header file for kml_point object
Declaration of DataSet class.
virtual void AddCommnt(int ncom, char **pcom)
virtual void WriteCommnt(FILE *fid, const char *indent)
void WriteExp(FILE *fid, const char *nstr, int sgn, double cm, double sp)
void Read(FILE *fid, char *kstr)