File:  [parser3project] / parser3 / src / classes / response.C
Revision 1.25: download - view: text, annotated - select for diffs - revision graph
Thu Nov 20 16:34:23 2003 UTC (23 years ago) by paf
Branches: MAIN
CVS tags: HEAD
static const char * const IDENT

/** @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 * const IDENT_RESPONSE_C="$Date: 2003/11/20 16:34:23 $";

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

#include "pa_request.h"
#include "pa_vresponse.h"

// class

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

// global variable

DECLARE_CLASS_VAR(response, new MResponse, 0);

// methods

static void _clear(Request& r, 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: