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

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.5     ! parser      8:        $Id: pa_vcode_frame.h,v 1.4 2001/05/07 14:00:53 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"
1.5     ! parser     15: #include "pa_vnothing.h"
1.1       paf        16: 
1.2       paf        17: /// specialized write wrapper, intercepting string writes
1.1       paf        18: class VCodeFrame : public WWrapper {
                     19: public: // Value
                     20: 
                     21:        const char *type() const { return "code_frame"; }
                     22: 
                     23: public: // WContext
                     24: 
1.2       paf        25:        /// VCodeFrame: intercepting string writes 
1.1       paf        26:        void write(const String& astring, String::Untaint_lang lang) {
                     27:                fstring.append(astring, lang);
                     28:        }
                     29: 
                     30: public: // usage
                     31: 
                     32:        VCodeFrame(Pool& apool, WContext& awcontext) : 
                     33:                WWrapper(apool, &awcontext, awcontext.constructing()) {
                     34:        }
                     35: 
                     36: };
                     37: 
                     38: #endif

E-mail: