Annotation of parser3/src/include/pa_vcframe.h, revision 1.5

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

E-mail: