--- parser3/src/include/Attic/pa_context.h 2001/02/13 15:10:45 1.4 +++ parser3/src/include/Attic/pa_context.h 2001/02/14 13:40:54 1.6 @@ -1,5 +1,5 @@ /* - $Id: pa_context.h,v 1.4 2001/02/13 15:10:45 paf Exp $ + $Id: pa_context.h,v 1.6 2001/02/14 13:40:54 paf Exp $ */ /* @@ -22,6 +22,7 @@ public: // if value.string!=0 writes just string, not Value // raises an error if already void write(Value& avalue); + void write(String_iterator& from, String_iterator& to); // retrives the resulting value // that can be Text if value==0 or the Value object @@ -41,7 +42,8 @@ public: //implement by replicating to va virtual Method *get_method(const String& name) const { return check(value)->get_method(name); } - virtual Class *get_class() const { return check(value)->get_class(); } + virtual Class *get_class() const { return value?value->get_class():0; } + virtual bool has_parent(Class *aparent) { return value?value->has_parent(aparent):false; } private: String& string;