Annotation of parser3/src/types/pa_vcookie.h, revision 1.1
1.1 ! paf 1: /*
! 2: Parser
! 3: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
! 4: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
! 5:
! 6: $Id: pa_vcookie.h,v 1.6 2001/03/15 09:04:08 paf Exp $
! 7: */
! 8:
! 9: #ifndef PA_VCOOKIE_H
! 10: #define PA_VCOOKIE_H
! 11:
! 12: #include "pa_vstateless_class.h"
! 13: #include "_cookie.h"
! 14: #include "pa_common.h"
! 15:
! 16: class Request;
! 17:
! 18: class VCookie : public VStateless_class {
! 19: public: // Value
! 20:
! 21: // all: for error reporting after fail(), etc
! 22: const char *type() const { return "cookie"; }
! 23:
! 24: // vcookie: this
! 25: VStateless_class *get_class() { return this; }
! 26:
! 27: // cookie: CLASS,BASE,method,field
! 28: Value *get_element(const String& aname);
! 29: // cookie: field
! 30: void put_element(const String& aname, Value *avalue);
! 31:
! 32: public: // usage
! 33:
! 34: VCookie(Pool& apool) : VStateless_class(apool, cookie_base_class),
! 35: before(apool), after(apool), deleted(apool) {
! 36: }
! 37:
! 38: void fill_fields(Request& request);
! 39: void output_result();
! 40:
! 41: public:
! 42:
! 43: Hash before, deleted;
! 44:
! 45: private:
! 46:
! 47: Hash after;
! 48:
! 49: };
! 50:
! 51: #endif
E-mail: