--- parser3/src/classes/xnode.h 2003/01/31 12:34:28 1.18.2.2 +++ parser3/src/classes/xnode.h 2003/11/20 16:34:24 1.20 @@ -8,19 +8,19 @@ #ifndef XNODE_H #define XNODE_H -static const char* IDENT_XNODE_H="$Date: 2003/01/31 12:34:28 $"; +static const char * const IDENT_XNODE_H="$Date: 2003/11/20 16:34:24 $"; -class MXnode : public Methoded { +class MXnode: public Methoded { public: // Value /// MXnode: +$const - Value *get_element(const String& aname, Value& aself, bool looking_up) { + Value* get_element(const String& aname, Value& aself, bool looking_up) { // $method - if(Value *result=Methoded::get_element(aname, aself, looking_up)) + if(Value* result=Methoded::get_element(aname, aself, looking_up)) return result; // $const - if(Value *result=(Value *)consts.get(aname)) + if(Value* result=consts.get(aname)) return result; return 0; @@ -28,22 +28,19 @@ public: // Value public: // VStateless_class - ValuePtr create_new_value() { return ValuePtr(new VXnode(0); } + Value* create_new_value() { return new VXnode(0, 0); } public: - MXnode(Pool& pool, const char* aname=0, VStateless_class *abase=0); + MXnode(const char* aname=0, VStateless_class* abase=0); public: // Methoded bool used_directly() { return true; } private: - Hash consts; + HashStringValue consts; }; -#define gdome_xml_doc_get_xmlDoc(dome_doc) ((_Gdome_xml_Document *)dome_doc)->n; - -GdomeNode *as_node(const String& method_name, MethodParams *params, - int index, const char* msg); +GdomeNode* as_node(MethodParams& params, int index, const char* msg); #endif