Annotation of parser3/src/classes/xnode.h, revision 1.7
1.1 parser 1: /** @file
2: Parser: @b dnode methods class - MDnode class decl.
3:
4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.4 paf 5: Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)
1.1 parser 6:
1.7 ! paf 7: $Id: xnode.h,v 1.6 2002/01/24 15:11:59 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:
35: MXnode(Pool& pool);
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:
! 47: GdomeNode *as_node(Pool& pool, const String& method_name, MethodParams *params,
! 48: int index, const char *msg);
1.1 parser 49:
50: #endif
E-mail: