Annotation of parser3/src/classes/response.C, revision 1.26.14.1

1.6       paf         1: /** @file
                      2:        Parser: @b response parser class.
                      3: 
1.26.14.1! paf         4:        Copyright (c) 2001-2005 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.26.14.1! paf         8: static const char * const IDENT_RESPONSE_C="$Date: 2004/02/11 15:33:12 $";
1.1       paf         9: 
1.10      paf        10: #include "classes.h"
1.24      paf        11: #include "pa_vmethod_frame.h"
                     12: 
1.3       paf        13: #include "pa_request.h"
1.24      paf        14: #include "pa_vresponse.h"
1.1       paf        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: