2023-02-10 00:37:09 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <PropertyList.h>
|
|
|
|
|
|
|
|
#include "vkfieldignore.h"
|
|
|
|
#include "vkfieldtype.h"
|
|
|
|
#include "vkstruct.h"
|
|
|
|
|
|
|
|
@implementation IgnoreField
|
|
|
|
|
|
|
|
-init:(PLItem *)item struct:(Struct *)strct field:(string)fname
|
|
|
|
{
|
2023-03-21 08:53:55 +00:00
|
|
|
self = [super init:item struct:strct field:fname];
|
2023-02-10 00:37:09 +00:00
|
|
|
if (!self) {
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
line = [item line];
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-fromField:(qfot_var_t *)field struct:(Struct *)strct
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-writeParseData
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-writeField
|
|
|
|
{
|
|
|
|
string parse_type = [FieldType anyType];
|
|
|
|
fprintf (output_file, "\t{\"%s\", 0, %s, parse_%s, 0},\n",
|
|
|
|
field_name, parse_type, "ignore");
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-writeSymbol
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-(string) name
|
|
|
|
{
|
|
|
|
return field_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
-(int) searchType
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|