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

1.1       paf         1: /*
                      2:        Parser
                      3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
                      4:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      5: 
1.3     ! paf         6:        $Id: response.C,v 1.2 2001/03/18 14:45:25 paf Exp $
1.1       paf         7: */
                      8: 
1.3     ! paf         9: #include "pa_request.h"
1.1       paf        10: #include "_response.h"
                     11: 
                     12: // global var
                     13: 
                     14: VStateless_class *response_base_class;
                     15: 
                     16: // methods
                     17: 
1.3     ! paf        18: static void _clear(Request& r, const String& method_name, Array *params) {
        !            19:        r.self/*VResponse*/->get_hash()/*sure not 0*/->clear();
        !            20: }
        !            21: 
1.1       paf        22: // initialize
                     23: 
                     24: void initialize_response_base_class(Pool& pool, VStateless_class& vclass) {
1.3     ! paf        25:        // ^clear[]
        !            26:        vclass.add_native_method("clear", _clear, 0, 0);
1.1       paf        27: }

E-mail: