Annotation of parser3/src/types/pa_vcookie.h, revision 1.6
1.6 ! paf 1: /** @file
! 2: Parser: cookie class decls.
! 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.6 ! paf 8: $Id: pa_vcookie.h,v 1.5 2001/03/19 21:59:18 paf Exp $
1.1 paf 9: */
10:
11: #ifndef PA_VCOOKIE_H
12: #define PA_VCOOKIE_H
13:
1.3 paf 14: #include "pa_common.h"
1.5 paf 15: #include "pa_value.h"
1.1 paf 16:
17: class Request;
18:
1.6 ! paf 19: /// cookie class
1.5 paf 20: class VCookie : public Value {
1.1 paf 21: public: // Value
22:
23: // all: for error reporting after fail(), etc
24: const char *type() const { return "cookie"; }
25:
26: // cookie: CLASS,BASE,method,field
27: Value *get_element(const String& aname);
28: // cookie: field
29: void put_element(const String& aname, Value *avalue);
30:
31: public: // usage
32:
1.5 paf 33: VCookie(Pool& apool) : Value(apool),
1.1 paf 34: before(apool), after(apool), deleted(apool) {
35: }
36:
37: void fill_fields(Request& request);
38: void output_result();
39:
40: private:
41:
1.2 paf 42: Hash before, after, deleted;
1.1 paf 43:
44: };
45:
46: #endif
E-mail: