//---------------------------------- speclist.h ------------------------------ class spec { public: enum { MAXNAME = 100, MAXFILENAME = 100, MAXFIELD = 500 }; char relation_to_previous; // either "a"=and, "o"=or, " "=the first one char fieldname[MAXNAME]; char comparison[3]; // either "=", "!=", "<", "<=", ">", ">=" char fieldvalueC[MAXFIELD]; }; class speclist { public: enum { MAXSPECS = 100 }; spec specs[MAXSPECS]; int numspecs; speclist() { numspecs = 0; } void print(); void addspec (char relationship, char *whichfield, char *newcomparison, char *newfieldvalue); };
Hosted by www.Geocities.ws

1