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

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)
                      5:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      6: 
1.3     ! parser      7:        $Id: xnode.h,v 1.2 2001/09/26 15:43:59 parser Exp $
1.1       parser      8: */
                      9: 
                     10: #ifndef XNODE_H
                     11: #define XNODE_H
                     12: 
                     13: #include <util/XMLString.hpp>
                     14: 
                     15: class MXnode : public Methoded {
1.2       parser     16: public: // Value
                     17: 
                     18:        /// MXnode: +$const
                     19:        Value *get_element(const String& aname) {
                     20:                // $CLASS, $method
                     21:                if(Value *result=Methoded::get_element(aname))
                     22:                        return result;
                     23: 
                     24:                // $const
                     25:                if(Value *result=(Value *)consts.get(aname))
                     26:                        return result;
                     27:                
                     28:                return 0;
                     29:        }
                     30: 
                     31: 
1.1       parser     32: public: // VStateless_class
1.3     ! parser     33:        Value *create_new_value(Pool& pool) { return new(pool) VXnode(pool, 0, false); }
1.1       parser     34: 
                     35: public:
                     36:        MXnode(Pool& pool);
                     37: 
                     38: public: // Methoded
                     39:        bool used_directly() { return true; }
1.2       parser     40: 
                     41: private:
                     42: 
                     43:        Hash consts;
1.1       parser     44: };
                     45: 
                     46: #endif

E-mail: