Annotation of parser3/src/types/pa_vcookie.h, revision 1.4
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:
1.4 ! paf 6: $Id: pa_vcookie.h,v 1.3 2001/03/19 16:06:16 paf Exp $
1.1 paf 7: */
8:
9: #ifndef PA_VCOOKIE_H
10: #define PA_VCOOKIE_H
11:
1.3 paf 12: #include "pa_common.h"
1.1 paf 13: #include "pa_vstateless_class.h"
14: #include "_cookie.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: // cookie: CLASS,BASE,method,field
25: Value *get_element(const String& aname);
26: // cookie: field
27: void put_element(const String& aname, Value *avalue);
28:
29: public: // usage
30:
31: VCookie(Pool& apool) : VStateless_class(apool, cookie_base_class),
32: before(apool), after(apool), deleted(apool) {
33: }
34:
35: void fill_fields(Request& request);
36: void output_result();
37:
38: private:
39:
1.2 paf 40: Hash before, after, deleted;
1.1 paf 41:
42: };
43:
44: #endif
E-mail: