Annotation of parser3/src/classes/xnode.h, revision 1.15

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: */
                      7: 
                      8: #ifndef XNODE_H
                      9: #define XNODE_H
                     10: 
1.15    ! paf        11: static const char* IDENT_XNODE_H="$Date: 2002/08/13 13:02:39 $";
1.1       parser     12: 
                     13: class MXnode : public Methoded {
1.2       parser     14: public: // Value
                     15: 
                     16:        /// MXnode: +$const
1.15    ! paf        17:        Value *get_element(const String& aname, Value *aself, bool looking_down) {
1.14      paf        18:                // $method
1.15    ! paf        19:                if(Value *result=Methoded::get_element(aname, aself, looking_down))
1.2       parser     20:                        return result;
                     21: 
                     22:                // $const
                     23:                if(Value *result=(Value *)consts.get(aname))
                     24:                        return result;
                     25:                
                     26:                return 0;
                     27:        }
                     28: 
                     29: 
1.1       parser     30: public: // VStateless_class
1.5       paf        31:        Value *create_new_value(Pool& pool) { return new(pool) VXnode(pool, 0); }
1.1       parser     32: 
                     33: public:
1.11      paf        34:        MXnode(Pool& pool, 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: 
                     41:        Hash 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.10      paf        46: GdomeNode *as_node(const String& method_name, MethodParams *params, 
1.7       paf        47:                                                int index, const char *msg);
1.1       parser     48: 
                     49: #endif

E-mail: