Annotation of parser3/src/classes/xnode.h, revision 1.18.2.6
1.1 parser 1: /** @file
2: Parser: @b dnode methods class - MDnode class decl.
3:
1.18.2.2 paf 4: Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
1.9 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 parser 6: */
7:
8: #ifndef XNODE_H
9: #define XNODE_H
10:
1.18.2.6! paf 11: static const char* IDENT_XNODE_H="$Date: 2003/03/06 16:15:25 $";
1.1 parser 12:
1.18.2.4 paf 13: class MXnode: public Methoded {
1.2 parser 14: public: // Value
15:
16: /// MXnode: +$const
1.18.2.5 paf 17: ValuePtr get_element(StringPtr aname, Value& aself, bool looking_up) {
1.14 paf 18: // $method
1.18.2.5 paf 19: if(ValuePtr result=Methoded::get_element(aname, aself, looking_up))
1.2 parser 20: return result;
21:
22: // $const
1.18.2.5 paf 23: if(ValuePtr result=consts.get(aname))
1.2 parser 24: return result;
25:
1.18.2.5 paf 26: return ValuePtr(0);
1.2 parser 27: }
28:
29:
1.1 parser 30: public: // VStateless_class
1.18.2.6! paf 31: ValuePtr create_new_value() { return ValuePtr(new VXnode(0, 0, 0)); }
1.1 parser 32:
33: public:
1.18.2.5 paf 34: MXnode(const char* aname=0, VStateless_class* abase=0);
1.1 parser 35:
36: public: // Methoded
37: bool used_directly() { return true; }
1.2 parser 38:
39: private:
40:
1.18.2.5 paf 41: HashStringValue consts;
1.1 parser 42: };
1.6 paf 43:
44: #define gdome_xml_doc_get_xmlDoc(dome_doc) ((_Gdome_xml_Document *)dome_doc)->n;
1.7 paf 45:
1.18.2.5 paf 46: GdomeNode *as_node(StringPtr method_name, MethodParams* params,
1.18.2.2 paf 47: int index, const char* msg);
1.1 parser 48:
49: #endif
E-mail: