--- parser3/src/include/Attic/pa_value.h 2001/02/24 08:28:35 1.23 +++ parser3/src/include/Attic/pa_value.h 2001/02/24 13:18:19 1.26 @@ -1,5 +1,5 @@ /* - $Id: pa_value.h,v 1.23 2001/02/24 08:28:35 paf Exp $ + $Id: pa_value.h,v 1.26 2001/02/24 13:18:19 paf Exp $ */ /* @@ -53,23 +53,26 @@ class Junction : public Pooled { public: Junction(Pool& apool, + Value& aself, Method *amethod, - Value *aself, Value *aroot, Value *arcontext, + WContext *awcontext, const Array *acode) : Pooled(apool), - method(amethod), self(aself), + method(amethod), root(aroot), rcontext(arcontext), + wcontext(awcontext), code(acode) { } + Value& self; Method *method; - Value *self; Value *root; Value *rcontext; + WContext *wcontext; const Array *code; }; @@ -86,7 +89,7 @@ public: // Value virtual String *get_string() { return 0; } // string: value - virtual void put_string(String *astring) { failed("storing string to %s:%s"); } + virtual void put_string(String *astring) { failed("storing string to '%s'"); } // junction: auto_calc,root,self,rcontext,wcontext, code virtual Junction *get_junction() { return 0; } @@ -97,23 +100,28 @@ public: // Value // operator_class: (field)=value - static values only // wcontext: transparent // frame: my or self_transparent - virtual Value *get_element(const String& name) { failed("getting element from %s:%s"); return 0; } + // codeframe: wcontext_transparent + virtual Value *get_element(const String& name) { failed("is '%s', can not get element from it"); return 0; } // hash: (key)=value // object_class, operator_class: (field)=value - static values only + // object_instance: (field)=value // wcontext: transparent // frame: my or self_transparent - virtual void put_element(const String& name, Value *value) { failed("putting element to %s:%s"); } + // codeframe: wcontext_transparent + virtual void put_element(const String& name, Value *value) { failed("is '%s', can not put element to it"); } // object_class, object_instance: object_class // frame: transparent // wcontext: transparent + // codeframe: wcontext_transparent virtual VClass *get_class() { return 0; } // object_class: true when this class is this or derived from 'ancestor' // frame: transparent // wcontext: transparent - virtual bool is_or_derived_from(VClass& ancestor) { failed("thoghts of ancestors of %s:%s"); return false; } + // codeframe: wcontext_transparent + virtual bool is_or_derived_from(VClass& ancestor) { failed("thoghts of ancestors of '%s'"); return false; } public: // usage @@ -124,7 +132,7 @@ public: // usage String& as_string() { String *result=get_string(); if(!result) - failed("getting string of %s:%s"); + failed("getting string of '%s'"); return *result; }