|
|
| version 1.1, 2001/09/26 11:24:07 | version 1.3, 2001/10/19 14:56:16 |
|---|---|
| Line 13 | Line 13 |
| #include <util/XMLString.hpp> | #include <util/XMLString.hpp> |
| class MXnode : public Methoded { | class MXnode : public Methoded { |
| public: // Value | |
| /// MXnode: +$const | |
| Value *get_element(const String& aname) { | |
| // $CLASS, $method | |
| if(Value *result=Methoded::get_element(aname)) | |
| return result; | |
| // $const | |
| if(Value *result=(Value *)consts.get(aname)) | |
| return result; | |
| return 0; | |
| } | |
| public: // VStateless_class | public: // VStateless_class |
| Value *create_new_value(Pool& pool) { return new(pool) VXnode(pool); } | Value *create_new_value(Pool& pool) { return new(pool) VXnode(pool, 0, false); } |
| public: | public: |
| MXnode(Pool& pool); | MXnode(Pool& pool); |
| public: // Methoded | public: // Methoded |
| bool used_directly() { return true; } | bool used_directly() { return true; } |
| private: | |
| Hash consts; | |
| }; | }; |
| #endif | #endif |