Annotation of parser3/src/types/pa_vcookie.h, revision 1.11
1.6 paf 1: /** @file
1.8 paf 2: Parser: @b cookie class decls.
1.6 paf 3:
1.1 paf 4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.6 paf 5:
1.1 paf 6: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
7:
1.11 ! parser 8: $Id: pa_vcookie.h,v 1.10 2001/05/07 14:00:53 paf Exp $
1.1 paf 9: */
10:
11: #ifndef PA_VCOOKIE_H
12: #define PA_VCOOKIE_H
13:
1.7 paf 14: #include "pa_hash.h"
1.3 paf 15: #include "pa_common.h"
1.5 paf 16: #include "pa_value.h"
1.1 paf 17:
18: class Request;
1.9 paf 19:
20: #define COOKIE_CLASS_NAME "cookie"
1.1 paf 21:
1.6 paf 22: /// cookie class
1.5 paf 23: class VCookie : public Value {
1.1 paf 24: public: // Value
25:
26: const char *type() const { return "cookie"; }
27:
1.11 ! parser 28: // cookie: CLASS,method,field
1.1 paf 29: Value *get_element(const String& aname);
30: // cookie: field
31: void put_element(const String& aname, Value *avalue);
32:
33: public: // usage
34:
1.5 paf 35: VCookie(Pool& apool) : Value(apool),
1.1 paf 36: before(apool), after(apool), deleted(apool) {
37: }
38:
39: void fill_fields(Request& request);
40: void output_result();
41:
42: private:
43:
1.2 paf 44: Hash before, after, deleted;
1.1 paf 45:
46: };
47:
48: #endif
E-mail: