MCPcopy Index your code
hub / github.com/MapServer/MapServer / writeClass

Function writeClass

mapfile.c:3283–3307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3281}
3282
3283static void writeClass(FILE *stream, int indent, classObj *class)
3284{
3285 int i;
3286
3287 if(class->status == MS_DELETE) return;
3288
3289 indent++;
3290 writeBlockBegin(stream, indent, "CLASS");
3291 writeString(stream, indent, "NAME", NULL, class->name);
3292 writeString(stream, indent, "GROUP", NULL, class->group);
3293 writeNumber(stream, indent, "DEBUG", 0, class->debug);
3294 writeExpression(stream, indent, "EXPRESSION", &(class->expression));
3295 writeString(stream, indent, "KEYIMAGE", NULL, class->keyimage);
3296 writeLabel(stream, indent, &(class->label));
3297 writeNumber(stream, indent, "MAXSCALEDENOM", -1, class->maxscaledenom);
3298 writeHashTable(stream, indent, "METADATA", &(class->metadata));
3299 writeNumber(stream, indent, "MINSCALEDENOM", -1, class->minscaledenom);
3300 writeNumber(stream, indent, "MINFEATURESIZE", -1, class->minfeaturesize);
3301 writeKeyword(stream, indent, "STATUS", class->status, 1, MS_OFF, "OFF");
3302 for(i=0; i<class->numstyles; i++) writeStyle(stream, indent, class->styles[i]);
3303 writeString(stream, indent, "TEMPLATE", NULL, class->template);
3304 writeExpression(stream, indent, "TEXT", &(class->text));
3305 writeString(stream, indent, "TITLE", NULL, class->title);
3306 writeBlockEnd(stream, indent, "CLASS");
3307}
3308
3309/*
3310** Initialize, load and free a single layer structure

Callers 1

writeLayerFunction · 0.85

Calls 9

writeBlockBeginFunction · 0.85
writeStringFunction · 0.85
writeNumberFunction · 0.85
writeExpressionFunction · 0.85
writeLabelFunction · 0.85
writeHashTableFunction · 0.85
writeKeywordFunction · 0.85
writeStyleFunction · 0.85
writeBlockEndFunction · 0.85

Tested by

no test coverage detected