Diff for /parser3/src/classes/response.C between versions 1.8 and 1.26

version 1.8, 2001/04/28 08:43:48 version 1.26, 2004/02/11 15:33:12
Line 1 Line 1
 /** @file  /** @file
         Parser: @b response parser class.          Parser: @b response parser class.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)
           Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
         Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)  
   
         $Id$  
 */  */
   
 #include "classes.h"  static const char * const IDENT_RESPONSE_C="$Date$";
 #include "pa_request.h"  
   
 // defines  #include "classes.h"
   #include "pa_vmethod_frame.h"
   
 #define RESPONSE_CLASS_NAME "response"  #include "pa_request.h"
   #include "pa_vresponse.h"
   
 // class  // class
   
 class MResponse : public Methoded {  class MResponse: public Methoded {
 public:  public:
         MResponse(Pool& pool);          MResponse();
   public: // Methoded
         bool used_directly() { return false; }          bool used_directly() { return false; }
 };  };
   
   // global variable
   
   DECLARE_CLASS_VAR(response, new MResponse, 0);
   
 // methods  // methods
   
 static void _clear(Request& r, const String&, MethodParams *) {  static void _clear(Request& r, MethodParams&) {
         r.self/*VResponse*/->get_hash()/*sure not 0*/->clear();          GET_SELF(r, VResponse).fields().clear();
 }  }
   
 // constructor  // constructor
   
 MResponse::MResponse(Pool& apool) : Methoded(apool) {  MResponse::MResponse(): Methoded("response") {
         set_name(*NEW String(pool(), RESPONSE_CLASS_NAME));  
   
   
         // ^clear[]          // ^clear[]
         add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0);          add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0);
 }  }
 // global variable  
   
 Methoded *response_class;  
   
 // creator  
   
 Methoded *MResponse_create(Pool& pool) {  
         return response_class=new(pool) MResponse(pool);  
 }  

Removed from v.1.8  
changed lines
  Added in v.1.26


E-mail: