Annotation of parser3/src/classes/response.C, revision 1.28
1.6 paf 1: /** @file
2: Parser: @b response parser class.
3:
1.28 ! moko 4: Copyright (c) 2001-2012 Art. Lebedev Studio (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.10 paf 8: #include "classes.h"
1.24 paf 9: #include "pa_vmethod_frame.h"
10:
1.3 paf 11: #include "pa_request.h"
1.24 paf 12: #include "pa_vresponse.h"
1.1 paf 13:
1.28 ! moko 14: volatile const char * IDENT_RESPONSE_C="$Id: 2005-08-09 08:14:48 $";
! 15:
1.8 paf 16: // class
17:
1.24 paf 18: class MResponse: public Methoded {
1.8 paf 19: public:
1.24 paf 20: MResponse();
1.11 paf 21: public: // Methoded
1.8 paf 22: bool used_directly() { return false; }
23: };
1.1 paf 24:
1.24 paf 25: // global variable
26:
27: DECLARE_CLASS_VAR(response, new MResponse, 0);
28:
1.1 paf 29: // methods
30:
1.24 paf 31: static void _clear(Request& r, MethodParams&) {
32: GET_SELF(r, VResponse).fields().clear();
1.3 paf 33: }
34:
1.8 paf 35: // constructor
36:
1.24 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: