Annotation of parser3/src/types/pa_vcookie.h, revision 1.2

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.2     ! paf         6:        $Id: pa_vcookie.h,v 1.1 2001/03/18 20:31:30 paf Exp $
1.1       paf         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: private:
                     42: 
1.2     ! paf        43:        Hash before, after, deleted;
1.1       paf        44: 
                     45: };
                     46: 
                     47: #endif

E-mail: