Annotation of parser3/src/classes/response.C, revision 1.23.2.8.2.2
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.8.2.2! paf 8: static const char* IDENT_RESPONSE_C="$Date: 2003/03/18 15:14:14 $";
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.23.2.8 paf 14: #include "pa_vresponse.h"
1.1 paf 15:
1.8 paf 16: // class
17:
1.23.2.5 paf 18: class MResponse: public Methoded {
1.8 paf 19: public:
1.23.2.4 paf 20: MResponse();
1.11 paf 21: public: // Methoded
1.8 paf 22: bool used_directly() { return false; }
23: };
1.1 paf 24:
1.23.2.4 paf 25: // global variable
26:
1.23.2.7 paf 27: DECLARE_CLASS_VAR(response, new MResponse, 0);
1.23.2.4 paf 28:
1.1 paf 29: // methods
30:
1.23.2.8.2.2! paf 31: static void _clear(Request& r, MethodParams* ) {
1.23.2.4 paf 32: GET_SELF(r, VResponse).fields().clear();
1.3 paf 33: }
34:
1.8 paf 35: // constructor
36:
1.23.2.4 paf 37: MResponse::MResponse(): Methoded("response") {
1.3 paf 38: // ^clear[]
1.8 paf 39: add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0);
1.1 paf 40: }
E-mail: