 |
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!"
13 #include "../shared/shared.h"
19 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
25 #include "../shared/shared.h"
31 memcpy(
name,
"",(strlen(
"")+1)*
sizeof(
char));
35 memcpy(
snippet,
"",(strlen(
"")+1)*
sizeof(
char));
36 memcpy(
descript,
"",(strlen(
"")+1)*
sizeof(
char));
37 memcpy(
styleurl,
"",(strlen(
"")+1)*
sizeof(
char));
61 if(flag)
_printf0_(
" open: " << (
open ?
"true" :
"false") <<
"\n");
89 if(flag)
_printf0_(indent <<
" open: " << (
open ?
"true" :
"false") <<
"\n");
96 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
101 if(flag)
_printf0_(indent <<
" style: -------- begin [" << i <<
"] --------\n");
103 if(flag)
_printf0_(indent <<
" style: -------- end [" << i <<
"] --------\n");
106 if(flag)
_printf0_(indent <<
" style: [empty]\n");
119 fprintf(filout,
"%s <name>%s</name>\n",indent,
name);
120 fprintf(filout,
"%s <visibility>%d</visibility>\n",indent,(
visibility ? 1 : 0));
121 fprintf(filout,
"%s <open>%d</open>\n",indent,(
open ? 1 : 0));
123 fprintf(filout,
"%s <Snippet maxLines=\"2\">%s</Snippet>\n",indent,
snippet);
125 fprintf(filout,
"%s <description>%s</description>\n",indent,
descript);
127 fprintf(filout,
"%s <styleUrl>%s</styleUrl>\n",indent,
styleurl);
131 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
147 if (!strncmp(kstr,
"</Feature", 9))
149 else if (!strncmp(kstr,
"</",2))
150 {
_error_(
"KML_Feature::Read -- Unexpected closing tag " << kstr);}
151 else if (strncmp(kstr,
"<",1))
152 {
_error_(
"KML_Feature::Read -- Unexpected field \"" << kstr <<
"\"");}
154 else if (!strncmp(kstr,
"<Style", 6)) {
156 kobj->
Read(fid,kstr);
160 else if (!strcmp(kstr,
"<name>"))
162 else if (!strcmp(kstr,
"<visibility>"))
164 else if (!strcmp(kstr,
"<open>"))
166 else if (!strncmp(kstr,
"<snippet", 8))
168 else if (!strcmp(kstr,
"<description>"))
170 else if (!strcmp(kstr,
"<styleUrl>"))
173 else if (!strncmp(kstr,
"<",1))
char name[KML_FEATURE_NAME_LENGTH+1]
#define _printf0_(StreamArgs)
int AddObject(Object *object)
: header file for kml file reading utilities.
virtual void Read(FILE *fid, char *kstr)=0
char styleurl[KML_FEATURE_STYLEURL_LENGTH+1]
#define KML_FEATURE_STYLEURL_LENGTH
virtual void Write(FILE *fid, const char *indent)=0
char snippet[KML_FEATURE_SNIPPET_LENGTH+1]
int KMLFileTokenParse(int *pival, char *ktag, FILE *fid)
: header file for kml_style object
void Write(FILE *fid, const char *indent)
char descript[KML_FEATURE_DESCRIPT_LENGTH+1]
#define KML_FEATURE_NAME_LENGTH
#define _error_(StreamArgs)
#define KML_FEATURE_DESCRIPT_LENGTH
Object * GetObjectByOffset(int offset)
: header file for kml_feature abstract object
Declaration of DataSet class.
#define KML_FEATURE_SNIPPET_LENGTH
void Read(FILE *fid, char *kstr)