Changeset 12512 for trunk/gsdl/src/recpt/cgiargs.h
- Timestamp:
- 2006-08-24T11:06:42+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/cgiargs.h
r7594 r12512 53 53 enum response_t {location, content, fullcontent, undecided_location}; 54 54 55 struct fileupload_t { 56 void clear(); 57 fileupload_t() {clear();} 58 59 text_t name; 60 text_t type; 61 int size; 62 text_t tmp_name; 63 }; 64 65 typedef map<text_t, fileupload_t, lttext_t> fileupload_tmap; 55 66 56 67 struct cgiarg_t { … … 63 74 text_t value; 64 75 source_t source; 65 }; 76 fileupload_t fileupload; 77 }; 78 79 ostream &operator<<(ostream &outs, const fileupload_t &fu); 66 80 67 81 bool operator==(const cgiarg_t &x, const cgiarg_t &y); … … 126 140 void setdefaultcarg (const text_t &key, unsigned short c, 127 141 cgiarg_t::source_t source=cgiarg_t::default_arg); 142 void setargfile (const text_t &key, const fileupload_t &fileupload); 128 143 text_t *getarg (const text_t &key); 129 144 int getintarg (const text_t &key); 145 fileupload_t *getargfile (const text_t &key); 130 146 text_t &operator[] (const text_t &key) {return args[key].value;} 131 147 cgiarg_t &lookupcgiarg (const text_t &key) {return args[key];} … … 157 173 // use the same name) 158 174 bool multiplevalue; 175 176 // fileupload should be set if the argument is to be used to upload files 177 bool fileupload; 159 178 160 179 // defaultstatus_t indicates how good the default is when different … … 224 243 // processing with the arguments should be done if this happens 225 244 // as the results will be meaningless. 226 bool addarginfo (ostream *logout, c onst cgiarginfo &info);227 bool addarginfo (ostream *logout, c onst cgiargsinfoclass &info);245 bool addarginfo (ostream *logout, cgiarginfo &info); 246 bool addarginfo (ostream *logout, cgiargsinfoclass &info); 228 247 229 248 // addarginfo will override args info with info loaded from config files 230 249 // if the args do not exists will be created 231 250 bool addarginfo (ostream *logout, const text_t& argshortname, const text_tmap& mapinfo); 232 bool addarginfo (ostream *logout, con st confcgiarg_tmap& info);251 bool addarginfo (ostream *logout, confcgiarg_tmap& info); 233 252 234 253 cgiarginfo *getarginfo (const text_t &key); … … 237 256 }; 238 257 258 ostream &operator<<(ostream &outs, const cgiargsinfoclass &argsinfo); 239 259 240 260 #endif
Note:
See TracChangeset
for help on using the changeset viewer.