Changeset 509 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
1999-09-02T12:25:27+12:00 (25 years ago)
Author:
rjmcnab
Message:

changes to get compiling on AIX

Location:
trunk/gsdl/src/recpt
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiargs.cpp

    r364 r509  
    1212/*
    1313   $Log$
     14   Revision 1.7  1999/09/02 00:23:55  rjmcnab
     15   changes to get compiling on AIX
     16
    1417   Revision 1.6  1999/07/11 01:02:13  rjmcnab
    1518   Stored information relating to the cgi argument's origin with the cgi argument.
     
    5760  source=x.source;
    5861  return *this;
     62}
     63
     64
     65bool operator==(const cgiarg_t &x, const cgiarg_t &y) {
     66  return ((x.value == y.value) && (x.source == y.source));
     67}
     68
     69bool operator<(const cgiarg_t &x, const cgiarg_t &y) {
     70  return ((x.value < y.value) ||
     71      ((x.value == y.value) && (x.source == y.source)));
    5972}
    6073
     
    145158}
    146159
    147  
     160
     161bool 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
     170bool 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
    148185// constructor
    149186cgiargsinfoclass::cgiargsinfoclass () {
  • trunk/gsdl/src/recpt/cgiargs.h

    r364 r509  
    4949  source_t source;
    5050};
     51
     52bool operator==(const cgiarg_t &x, const cgiarg_t &y);
     53bool operator<(const cgiarg_t &x, const cgiarg_t &y);
    5154
    5255typedef map<text_t, cgiarg_t, lttext_t> cgiarg_tmap;
     
    156159};
    157160
     161bool operator==(const cgiarginfo &x, const cgiarginfo &y);
     162bool operator<(const cgiarginfo &x, const cgiarginfo &y);
    158163
    159164typedef map<text_t, cgiarginfo, lttext_t> argsinfomap;
  • trunk/gsdl/src/recpt/comtypes.cpp

    r459 r509  
    1212/*
    1313   $Log$
     14   Revision 1.17  1999/09/02 00:25:26  rjmcnab
     15   changes to get compiling on AIX
     16
    1417   Revision 1.16  1999/08/13 04:19:05  sjboddie
    1518   added name attribute to metadata
     
    151154
    152155
     156bool 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
     164bool 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
    153178void InfoFilterOptionsResponse_t::clear () {
    154179  filterOptions.erase(filterOptions.begin(), filterOptions.end());
  • trunk/gsdl/src/recpt/comtypes.h

    r472 r509  
    146146  text_tarray validValues;
    147147};
     148
     149bool operator==(const FilterOption_t &x, const FilterOption_t &y);
     150bool operator<(const FilterOption_t &x, const FilterOption_t &y);
     151
    148152
    149153typedef map<text_t, FilterOption_t, lttext_t> FilterOption_tmap;
  • trunk/gsdl/src/recpt/converter.cpp

    r164 r509  
    1212/*
    1313   $Log$
     14   Revision 1.3  1999/09/02 00:25:27  rjmcnab
     15   changes to get compiling on AIX
     16
    1417   Revision 1.2  1999/02/21 22:33:54  rjmcnab
    1518   Lots of stuff :-)
     
    4447}
    4548
     49
     50bool operator==(const converterinfo &x, const converterinfo &y) {
     51  return ((x.name == y.name) && (x.inconverter == y.inconverter) &&
     52      (x.outconverter == y.outconverter));
     53}
     54
     55bool 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
    4664// get_inconverter will return NULL if the convert could not be found
    4765inconvertclass *convertinfoclass::get_inconverter (const text_t &name) {
  • trunk/gsdl/src/recpt/converter.h

    r164 r509  
    4444};
    4545
     46bool operator==(const converterinfo &x, const converterinfo &y);
     47bool operator<(const converterinfo &x, const converterinfo &y);
    4648
    4749
Note: See TracChangeset for help on using the changeset viewer.