Annotation of parser3/src/classes/response.C, revision 1.23.2.5
1.6 paf 1: /** @file
2: Parser: @b response parser class.
3:
1.23.2.1 paf 4: Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
1.18 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.20 paf 6: */
1.6 paf 7:
1.23.2.5! paf 8: static const char* IDENT_RESPONSE_C="$Date: 2003/02/14 12:59:09 $";
1.1 paf 9:
1.10 paf 10: #include "classes.h"
1.23.2.3 paf 11: #include "pa_vmethod_frame.h"
12:
1.3 paf 13: #include "pa_request.h"
1.1 paf 14:
1.8 paf 15: // class
16:
1.23.2.5! paf 17: class MResponse: public Methoded {
1.8 paf 18: public:
1.23.2.4 paf 19: MResponse();
1.11 paf 20: public: // Methoded
1.8 paf 21: bool used_directly() { return false; }
22: };
1.1 paf 23:
1.23.2.4 paf 24: // global variable
25:
26: MethodedPtr response_class(new MResponse);
27:
1.1 paf 28: // methods
29:
1.23.2.2 paf 30: static void _clear(Request& r, StringPtr method_name, MethodParams& ) {
1.23.2.4 paf 31: GET_SELF(r, VResponse).fields().clear();
1.3 paf 32: }
33:
1.8 paf 34: // constructor
35:
1.23.2.4 paf 36: MResponse::MResponse(): Methoded("response") {
1.3 paf 37: // ^clear[]
1.8 paf 38: add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0);
1.1 paf 39: }
E-mail: