 |
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"
72 if(flag)
_printf0_(indent <<
"KML_Icon:\n");
89 fprintf(filout,
"%s<Icon",indent);
91 fprintf(filout,
">\n");
97 fprintf(filout,
"%s <href>%s</href>\n",indent,
href);
99 fprintf(filout,
"%s <refreshMode>%s</refreshMode>\n",indent,
refmode);
100 fprintf(filout,
"%s <refreshInterval>%g</refreshInterval>\n",indent,
refint);
102 fprintf(filout,
"%s <viewRefreshMode>%s</viewRefreshMode>\n",indent,
vrefmode);
103 fprintf(filout,
"%s <viewRefreshTime>%g</viewRefreshTime>\n",indent,
vreftime);
104 fprintf(filout,
"%s <viewBoundScale>%g</viewBoundScale>\n",indent,
vboundsc);
106 fprintf(filout,
"%s <viewFormat>%s</viewFormat>\n",indent,
vformat);
108 fprintf(filout,
"%s <httpQuery>%s</httpQuery>\n",indent,
hquery);
110 fprintf(filout,
"%s</Icon>\n",indent);
130 if (!strncmp(kstri,
"</Icon", 6)) {
131 xDelete<char>(kstri);
134 else if (!strncmp(kstri,
"</",2))
135 {
_error_(
"KML_Icon::Read -- Unexpected closing tag " << kstri <<
".\n");}
136 else if (strncmp(kstri,
"<",1))
137 {
_error_(
"KML_Icon::Read -- Unexpected field \"" << kstri <<
"\".\n");}
139 else if (!strcmp(kstri,
"<href>"))
141 else if (!strcmp(kstri,
"<refreshMode>"))
143 else if (!strcmp(kstri,
"<refreshInterval>"))
145 else if (!strcmp(kstri,
"<viewRefreshMode>"))
147 else if (!strcmp(kstri,
"<viewRefreshTime>"))
149 else if (!strcmp(kstri,
"<viewBoundScale>"))
151 else if (!strcmp(kstri,
"<viewFormat>"))
153 else if (!strcmp(kstri,
"<httpQuery>"))
156 else if (!strncmp(kstri,
"<",1))
159 xDelete<char>(kstri);
164 for(ncom=ncom; ncom>0; ncom--)
165 xDelete<char>(pcom[ncom-1]);
166 xDelete<char*>(pcom);
#define KML_ICON_REFMODE_LENGTH
#define _printf0_(StreamArgs)
virtual void WriteAttrib(FILE *fid, const char *indent)
#define KML_ICON_VFORMAT_LENGTH
: header file for kml file reading utilities.
int KMLFileTagAttrib(KML_Object *kobj, char *ktag)
char hquery[KML_ICON_HQUERY_LENGTH+1]
char vrefmode[KML_ICON_VREFMODE_LENGTH+1]
#define KML_ICON_HREF_LENGTH
: header file for kml_icon object
virtual void Read(FILE *fid, char *kstr)=0
char * KMLFileToken(FILE *fid, int *pncom=NULL, char ***ppcom=NULL)
virtual void Write(FILE *fid, const char *indent)=0
void Read(FILE *fid, char *kstr)
#define KML_ICON_HQUERY_LENGTH
int KMLFileTokenParse(int *pival, char *ktag, FILE *fid)
#define KML_ICON_VREFMODE_LENGTH
#define _error_(StreamArgs)
char refmode[KML_ICON_REFMODE_LENGTH+1]
char href[KML_ICON_HREF_LENGTH+1]
void Write(FILE *fid, const char *indent)
virtual void AddCommnt(int ncom, char **pcom)
virtual void WriteCommnt(FILE *fid, const char *indent)
char vformat[KML_ICON_VFORMAT_LENGTH+1]