File:  [parser3project] / parser3 / src / classes / response.C
Revision 1.23.2.5: download - view: text, annotated - select for diffs - revision graph
Mon Feb 17 17:05:02 2003 UTC (23 years, 4 months ago) by paf
Diff to: branchpoint 1.23: preferred, unified
fixed all remained bugs of unitialized simple-typed field

/** @file
	Parser: @b response parser class.

	Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
	Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
*/

static const char* IDENT_RESPONSE_C="$Date: 2003/02/17 17:05:02 $";

#include "classes.h"
#include "pa_vmethod_frame.h"

#include "pa_request.h"

// class

class MResponse: public Methoded {
public:
	MResponse();
public: // Methoded
	bool used_directly() { return false; }
};

// global variable

MethodedPtr response_class(new MResponse);

// methods

static void _clear(Request& r, StringPtr method_name, MethodParams& ) {
	GET_SELF(r, VResponse).fields().clear();
}

// constructor

MResponse::MResponse(): Methoded("response") {
	// ^clear[]
	add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0);
}

E-mail: