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

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

E-mail: