--- parser3/src/include/Attic/pa_wwrapper.h 2001/02/24 11:46:03 1.4 +++ parser3/src/include/Attic/pa_wwrapper.h 2001/03/08 13:42:31 1.12 @@ -1,5 +1,5 @@ /* - $Id: pa_wwrapper.h,v 1.4 2001/02/24 11:46:03 paf Exp $ + $Id: pa_wwrapper.h,v 1.12 2001/03/08 13:42:31 paf Exp $ */ #ifndef PA_WWRAPPER_H @@ -12,24 +12,21 @@ class WWrapper : public WContext { public: // Value // all: for error reporting after fail(), etc - const char *type() const { return "WWrapper"; } + const char *type() const { return "wwrapper"; } // wwrapper: transparent Value *get_element(const String& name) { return check_value()->get_element(name); } // wwrapper: transparent void put_element(const String& name, Value *avalue){ if(!fvalue) fvalue=NEW VHash(pool()); + fvalue->put_element(name, avalue); } - // wwrapper: none yet | transparent - VClass *get_class() const { return fvalue?fvalue->get_class():0; } - // wwrapper: none yet | transparent - bool is_or_derived_from(VClass& ancestor) { return fvalue?fvalue->is_or_derived_from(ancestor):false; } - public: // usage - WWrapper(Pool& apool, Value *avalue) : WContext(apool, avalue) { + WWrapper(Pool& apool, Value *avalue, bool aconstructed) : + WContext(apool, avalue, aconstructed) { } private: