 |
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!"
15 #include "../shared/shared.h"
60 _printf_(indent <<
"KML_LatLonBox:\n");
72 fprintf(filout,
"%s<LatLonBox",indent);
74 fprintf(filout,
">\n");
79 fprintf(filout,
"%s <north>%0.16g</north>\n",indent,
north);
80 fprintf(filout,
"%s <south>%0.16g</south>\n",indent,
south);
81 fprintf(filout,
"%s <east>%0.16g</east>\n",indent,
east);
82 fprintf(filout,
"%s <west>%0.16g</west>\n",indent,
west);
83 fprintf(filout,
"%s <rotation>%0.16g</rotation>\n",indent,
rotation);
85 fprintf(filout,
"%s</LatLonBox>\n",indent);
105 if (!strncmp(kstri,
"</LatLonBox",11)) {
106 xDelete<char>(kstri);
109 else if (!strncmp(kstri,
"</",2))
110 {
_error_(
"KML_LatLonBox::Read -- Unexpected closing tag " << kstri <<
".\n");}
111 else if (strncmp(kstri,
"<",1))
112 {
_error_(
"KML_LatLonBox::Read -- Unexpected field \"" << kstri <<
"\".\n");}
114 else if (!strcmp(kstri,
"<north>"))
118 else if (!strcmp(kstri,
"<south>"))
122 else if (!strcmp(kstri,
"<east>"))
126 else if (!strcmp(kstri,
"<west>"))
130 else if (!strcmp(kstri,
"<rotation>"))
135 else if (!strncmp(kstri,
"<",1))
138 xDelete<char>(kstri);
143 for (ncom=ncom; ncom>0; ncom--)
144 xDelete<char>(pcom[ncom-1]);
145 xDelete<char*>(pcom);
virtual void WriteAttrib(FILE *fid, const char *indent)
#define _printf_(StreamArgs)
: header file for kml file reading utilities.
int KMLFileTagAttrib(KML_Object *kobj, char *ktag)
: header file for kml_latlonbox object
void Read(FILE *fid, char *kstr)
virtual void Read(FILE *fid, char *kstr)=0
char * KMLFileToken(FILE *fid, int *pncom=NULL, char ***ppcom=NULL)
void Write(FILE *fid, const char *indent)
virtual void Write(FILE *fid, const char *indent)=0
int KMLFileTokenParse(int *pival, char *ktag, FILE *fid)
#define _error_(StreamArgs)
virtual void AddCommnt(int ncom, char **pcom)
virtual void WriteCommnt(FILE *fid, const char *indent)