Annotation of parser3/src/types/pa_vjunction.C, revision 1.2

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: 
1.2     ! paf         8: static const char* IDENT_VJUNCTION_C="$Date: 2002/09/20 09:26:33 $";
        !             9: 
1.1       paf        10: #include "pa_vjunction.h"
                     11: #include "pa_wcontext.h"
                     12: 
                     13: Value *VJunction::get_element(const String& aname, Value *aself, bool looking_up) { 
                     14:        if(Value *rcontext=fjunction.rcontext)
                     15:                return rcontext->get_element(aname, aself, looking_up); 
                     16:        else
                     17:                throw Exception("parser.runtime",
                     18:                        &aname,
                     19:                        "can not read from junction without context");
                     20: }
                     21: 
                     22: bool VJunction::put_element(const String& aname, Value *avalue, bool replace) { 
                     23:        if(WContext *wcontext=fjunction.wcontext)
                     24:                return wcontext->put_element(aname, avalue, replace); 
                     25:        else
                     26:                throw Exception("parser.runtime",
                     27:                        &aname,
                     28:                        "can not write to junction without context");
                     29: }

E-mail: