Annotation of parser3/src/types/pa_vjunction.C, revision 1.1
1.1 ! paf 1: /** @file
! 2: Parser: @b junction class impl.
! 3:
! 4: Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
! 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
! 6: */
! 7:
! 8: #include "pa_vjunction.h"
! 9: #include "pa_wcontext.h"
! 10:
! 11: Value *VJunction::get_element(const String& aname, Value *aself, bool looking_up) {
! 12: if(Value *rcontext=fjunction.rcontext)
! 13: return rcontext->get_element(aname, aself, looking_up);
! 14: else
! 15: throw Exception("parser.runtime",
! 16: &aname,
! 17: "can not read from junction without context");
! 18: }
! 19:
! 20: bool VJunction::put_element(const String& aname, Value *avalue, bool replace) {
! 21: if(WContext *wcontext=fjunction.wcontext)
! 22: return wcontext->put_element(aname, avalue, replace);
! 23: else
! 24: throw Exception("parser.runtime",
! 25: &aname,
! 26: "can not write to junction without context");
! 27: }
E-mail: