|
|
| version 1.4, 2001/03/19 22:48:35 | version 1.7, 2001/04/15 13:12:18 |
|---|---|
| Line 1 | Line 1 |
| /* | /** @file |
| Parser | Parser: @b response parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) |
| $Id$ | $Id$ |
| Line 15 VStateless_class *response_class; | Line 17 VStateless_class *response_class; |
| // methods | // methods |
| static void _clear(Request& r, const String& method_name, Array *params) { | static void _clear(Request& r, const String&, MethodParams *) { |
| r.self/*VResponse*/->get_hash()/*sure not 0*/->clear(); | r.self/*VResponse*/->get_hash()/*sure not 0*/->clear(); |
| } | } |
| Line 23 static void _clear(Request& r, const Str | Line 25 static void _clear(Request& r, const Str |
| void initialize_response_class(Pool& pool, VStateless_class& vclass) { | void initialize_response_class(Pool& pool, VStateless_class& vclass) { |
| // ^clear[] | // ^clear[] |
| vclass.add_native_method("clear", _clear, 0, 0); | vclass.add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); |
| } | } |