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