Annotation of parser3/src/types/pa_vcode_frame.h, revision 1.43
1.2 paf 1: /** @file
1.3 paf 2: Parser: @b code_frame write wrapper write context
1.2 paf 3:
1.43 ! moko 4: Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com)
! 5: Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
1.1 paf 6: */
7:
8: #ifndef PA_VCODE_FRAME_H
9: #define PA_VCODE_FRAME_H
1.15 paf 10:
1.43 ! moko 11: #define IDENT_PA_VCODE_FRAME_H "$Id: pa_vcode_frame.h,v 1.42 2020/12/15 17:10:39 moko Exp $"
1.1 paf 12:
1.9 parser 13: #include "pa_wcontext.h"
1.6 parser 14: #include "pa_vvoid.h"
1.1 paf 15:
1.34 misha 16: /// specialized write wrapper, completely transparent
1.25 paf 17: class VCodeFrame: public WContext {
1.1 paf 18: public: // Value
19:
1.25 paf 20: override const char* type() const { return "code_frame"; }
1.40 moko 21:
1.9 parser 22: /// VCodeFrame: twice transparent
1.40 moko 23: override const VJunction* put_element(const String& aname, Value* avalue) {
1.10 parser 24: // $hash[^if(1){$.field[]}]
25: // put goes to $hash
1.38 moko 26: return fparent->put_element(aname, avalue);
1.10 parser 27: }
1.1 paf 28:
29:
30: public: // usage
31:
1.40 moko 32: VCodeFrame(WContext& parent):
1.35 misha 33: WContext(&parent){
34: }
1.1 paf 35:
36: };
37:
38: #endif
E-mail: