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

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

E-mail: