Changeset 509 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-09-02T12:25:27+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/cgiargs.cpp
r364 r509 12 12 /* 13 13 $Log$ 14 Revision 1.7 1999/09/02 00:23:55 rjmcnab 15 changes to get compiling on AIX 16 14 17 Revision 1.6 1999/07/11 01:02:13 rjmcnab 15 18 Stored information relating to the cgi argument's origin with the cgi argument. … … 57 60 source=x.source; 58 61 return *this; 62 } 63 64 65 bool operator==(const cgiarg_t &x, const cgiarg_t &y) { 66 return ((x.value == y.value) && (x.source == y.source)); 67 } 68 69 bool operator<(const cgiarg_t &x, const cgiarg_t &y) { 70 return ((x.value < y.value) || 71 ((x.value == y.value) && (x.source == y.source))); 59 72 } 60 73 … … 145 158 } 146 159 147 160 161 bool operator==(const cgiarginfo &x, const cgiarginfo &y) { 162 return ((x.shortname == y.shortname) && 163 (x.longname == y.longname) && 164 (x.multiplechar == y.multiplechar) && 165 (x.defaultstatus == y.defaultstatus) && 166 (x.argdefault == y.argdefault) && 167 (x.savedarginfo == y.savedarginfo)); 168 } 169 170 bool operator<(const cgiarginfo &x, const cgiarginfo &y) { 171 return ((x.shortname < y.shortname) || 172 ((x.shortname == y.shortname) && 173 ((x.longname < y.longname) || 174 ((x.longname == y.longname) && 175 ((x.multiplechar < y.multiplechar) || 176 ((x.multiplechar == y.multiplechar) && 177 ((x.defaultstatus < y.defaultstatus) || 178 ((x.defaultstatus == y.defaultstatus) && 179 ((x.argdefault < y.argdefault) || 180 ((x.argdefault == y.argdefault) && 181 ((x.savedarginfo < y.savedarginfo)))))))))))); 182 } 183 184 148 185 // constructor 149 186 cgiargsinfoclass::cgiargsinfoclass () { -
trunk/gsdl/src/recpt/cgiargs.h
r364 r509 49 49 source_t source; 50 50 }; 51 52 bool operator==(const cgiarg_t &x, const cgiarg_t &y); 53 bool operator<(const cgiarg_t &x, const cgiarg_t &y); 51 54 52 55 typedef map<text_t, cgiarg_t, lttext_t> cgiarg_tmap; … … 156 159 }; 157 160 161 bool operator==(const cgiarginfo &x, const cgiarginfo &y); 162 bool operator<(const cgiarginfo &x, const cgiarginfo &y); 158 163 159 164 typedef map<text_t, cgiarginfo, lttext_t> argsinfomap; -
trunk/gsdl/src/recpt/comtypes.cpp
r459 r509 12 12 /* 13 13 $Log$ 14 Revision 1.17 1999/09/02 00:25:26 rjmcnab 15 changes to get compiling on AIX 16 14 17 Revision 1.16 1999/08/13 04:19:05 sjboddie 15 18 added name attribute to metadata … … 151 154 152 155 156 bool operator==(const FilterOption_t &x, const FilterOption_t &y) { 157 return ((x.name == y.name) && 158 (x.type == y.type) && 159 (x.repeatable == y.repeatable) && 160 (x.defaultValue == y.defaultValue) && 161 (x.validValues == y.validValues)); 162 } 163 164 bool operator<(const FilterOption_t &x, const FilterOption_t &y) { 165 return ((x.name < y.name) || 166 ((x.name == y.name) && 167 ((x.type < y.type) || 168 ((x.type == y.type) && 169 ((x.repeatable < y.repeatable) || 170 ((x.repeatable == y.repeatable) && 171 ((x.defaultValue < y.defaultValue) || 172 ((x.defaultValue == y.defaultValue) && 173 (x.validValues < y.validValues))))))))); 174 } 175 176 177 153 178 void InfoFilterOptionsResponse_t::clear () { 154 179 filterOptions.erase(filterOptions.begin(), filterOptions.end()); -
trunk/gsdl/src/recpt/comtypes.h
r472 r509 146 146 text_tarray validValues; 147 147 }; 148 149 bool operator==(const FilterOption_t &x, const FilterOption_t &y); 150 bool operator<(const FilterOption_t &x, const FilterOption_t &y); 151 148 152 149 153 typedef map<text_t, FilterOption_t, lttext_t> FilterOption_tmap; -
trunk/gsdl/src/recpt/converter.cpp
r164 r509 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/09/02 00:25:27 rjmcnab 15 changes to get compiling on AIX 16 14 17 Revision 1.2 1999/02/21 22:33:54 rjmcnab 15 18 Lots of stuff :-) … … 44 47 } 45 48 49 50 bool operator==(const converterinfo &x, const converterinfo &y) { 51 return ((x.name == y.name) && (x.inconverter == y.inconverter) && 52 (x.outconverter == y.outconverter)); 53 } 54 55 bool operator<(const converterinfo &x, const converterinfo &y) { 56 return ((x.name < y.name) || 57 ((x.name == y.name) && 58 ((x.inconverter < y.inconverter) || 59 ((x.inconverter == y.inconverter) && 60 ((x.outconverter < y.outconverter)))))); 61 } 62 63 46 64 // get_inconverter will return NULL if the convert could not be found 47 65 inconvertclass *convertinfoclass::get_inconverter (const text_t &name) { -
trunk/gsdl/src/recpt/converter.h
r164 r509 44 44 }; 45 45 46 bool operator==(const converterinfo &x, const converterinfo &y); 47 bool operator<(const converterinfo &x, const converterinfo &y); 46 48 47 49
Note:
See TracChangeset
for help on using the changeset viewer.