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

1.1       paf         1: /*
1.3     ! paf         2:   $Id: pa_vcframe.h,v 1.2 2001/02/25 14:23:31 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
                     18:        String *get_string() { return string_wcontext.get_string(); };
                     19: 
                     20: public: // WContext
                     21: 
                     22:        // codeframe: intercepting string writes 
                     23:        void write(String *astring);
                     24: 
                     25: public: // usage
                     26: 
1.2       paf        27:        VCodeFrame(Pool& apool, WContext& awcontext) : 
                     28:                WWrapper(apool, &awcontext, awcontext.constructing()),
                     29: 
                     30:                string_wcontext(apool, 
                     31:                        0 /* value not used, only write(string) */,
                     32:                        false /* value not used, only write(string) */) {
1.1       paf        33:        }
                     34: 
                     35: public:
                     36:        
                     37:        WContext string_wcontext;
                     38: 
                     39: };
                     40: 
                     41: #endif

E-mail: