Annotation of parser3/src/types/pa_vcode_frame.h, revision 1.3

1.2       paf         1: /**    @file
1.3     ! paf         2:        Parser: @b code_frame write wrapper write context
1.2       paf         3: 
1.1       paf         4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.2       paf         5: 
1.1       paf         6:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      7: 
1.3     ! paf         8:        $Id: pa_vcode_frame.h,v 1.2 2001/04/26 14:55:34 paf Exp $
1.1       paf         9: */
                     10: 
                     11: #ifndef PA_VCODE_FRAME_H
                     12: #define PA_VCODE_FRAME_H
                     13: 
                     14: #include "pa_wwrapper.h"
                     15: #include "pa_vunknown.h"
                     16: 
1.2       paf        17: /// specialized write wrapper, intercepting string writes
1.1       paf        18: class VCodeFrame : public WWrapper {
                     19: public: // Value
                     20: 
1.2       paf        21:        /// all: for error reporting after fail(), etc
1.1       paf        22:        const char *type() const { return "code_frame"; }
                     23: 
                     24: public: // WContext
                     25: 
1.2       paf        26:        /// VCodeFrame: intercepting string writes 
1.1       paf        27:        void write(const String& astring, String::Untaint_lang lang) {
                     28:                fstring.append(astring, lang);
                     29:        }
                     30: 
                     31: public: // usage
                     32: 
                     33:        VCodeFrame(Pool& apool, WContext& awcontext) : 
                     34:                WWrapper(apool, &awcontext, awcontext.constructing()) {
                     35:        }
                     36: 
                     37: };
                     38: 
                     39: #endif

E-mail: