| 3281 | } |
| 3282 | |
| 3283 | static 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 |
no test coverage detected