Annotation of parser3/src/types/pa_vcode_frame.h, revision 1.8
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)
5: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
6:
1.8 ! parser 7: $Id: pa_vcode_frame.h,v 1.7 2001/07/26 12:25:37 parser Exp $
1.1 paf 8: */
9:
10: #ifndef PA_VCODE_FRAME_H
11: #define PA_VCODE_FRAME_H
12:
13: #include "pa_wwrapper.h"
1.6 parser 14: #include "pa_vvoid.h"
1.1 paf 15:
1.2 paf 16: /// specialized write wrapper, intercepting string writes
1.1 paf 17: class VCodeFrame : public WWrapper {
18: public: // Value
19:
20: const char *type() const { return "code_frame"; }
21:
22: public: // WContext
23:
1.2 paf 24: /// VCodeFrame: intercepting string writes
1.1 paf 25: void write(const String& astring, String::Untaint_lang lang) {
26: fstring.append(astring, lang);
27: }
28:
29: public: // usage
30:
31: VCodeFrame(Pool& apool, WContext& awcontext) :
1.7 parser 32: WWrapper(apool, &awcontext) {
1.1 paf 33: }
34:
35: };
36:
37: #endif
E-mail: