--- parser3/src/classes/response.C 2001/04/27 16:48:21 1.7.4.2 +++ parser3/src/classes/response.C 2002/02/08 08:30:10 1.18 @@ -1,11 +1,10 @@ /** @file Parser: @b response parser class. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: response.C,v 1.7.4.2 2001/04/27 16:48:21 paf Exp $ + $Id: response.C,v 1.18 2002/02/08 08:30:10 paf Exp $ */ #include "classes.h" @@ -20,23 +19,24 @@ class MResponse : public Methoded { public: MResponse(Pool& pool); +public: // Methoded bool used_directly() { return false; } }; // methods -static void _clear(Request& r, const String&, MethodParams *) { - r.self/*VResponse*/->get_hash()/*sure not 0*/->clear(); +static void _clear(Request& r, const String& method_name, MethodParams *) { + r.self/*VResponse*/->get_hash(&method_name)/*sure not 0*/->clear(); } // constructor -MResponse::MResponse(Pool& pool) : Methoded(pool) { - set_name(new(pool) String(pool, RESPONSE_CLASS_NAME)); +MResponse::MResponse(Pool& apool) : Methoded(apool) { + set_name(*NEW String(pool(), RESPONSE_CLASS_NAME)); // ^clear[] - vclass.add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); + add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); } // global variable