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

1.6       paf         1: /** @file
1.8       paf         2:        Parser: @b cookie class decls.
1.6       paf         3: 
1.26    ! paf         4:        Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)
1.15      paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf         6: */
                      7: 
                      8: #ifndef PA_VCOOKIE_H
                      9: #define PA_VCOOKIE_H
1.17      paf        10: 
1.26    ! paf        11: static const char * const IDENT_VCOOKIE_H="$Date: 2003/11/20 16:34:28 $";
1.1       paf        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.24      paf        16: #include "pa_request_info.h"
                     17: #include "pa_sapi.h"
1.9       paf        18: 
                     19: #define COOKIE_CLASS_NAME "cookie"
1.1       paf        20: 
1.6       paf        21: /// cookie class
1.24      paf        22: class VCookie: public Value {
                     23: 
                     24:        HashStringValue before, after, deleted;
                     25: 
1.1       paf        26: public: // Value
                     27:        
1.24      paf        28:        override const char* type() const { return "cookie"; }
1.16      paf        29:        /// VCookie: 0
1.24      paf        30:        override VStateless_class *get_class() { return 0; }
1.1       paf        31: 
1.11      parser     32:        // cookie: CLASS,method,field
1.24      paf        33:        override Value* get_element(const String& aname, Value& aself, bool /*looking_up*/);
1.1       paf        34:        // cookie: field
1.24      paf        35:        override bool put_element(const String& aname, Value* avalue, bool replace);
1.1       paf        36: 
                     37: public: // usage
                     38: 
1.24      paf        39:        void fill_fields(Request_info& request_info);
                     40:        void output_result(SAPI_Info& sapi_info);
1.1       paf        41: 
                     42: };
                     43: 
                     44: #endif

E-mail: