|
|
| version 1.53, 2002/10/15 15:12:57 | version 1.54.2.1, 2003/01/31 12:34:28 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b dom parser class. | Parser: @b dom parser class. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| Line 95 private: | Line 95 private: |
| // helpers | // helpers |
| GdomeNode *as_node(const String& method_name, MethodParams *params, | GdomeNode *as_node(const String& method_name, MethodParams *params, |
| int index, const char *msg) { | int index, const char* msg) { |
| Value& value=params->as_no_junction(index, msg); | Value& value=params->as_no_junction(index, msg); |
| if(Value *vxnode=value.as(VXNODE_TYPE, false)) | if(Value *vxnode=value.as(VXNODE_TYPE, false)) |
| return static_cast<VXnode *>(vxnode)->get_node(&method_name); | return static_cast<VXnode *>(vxnode)->get_node(&method_name); |
| Line 108 GdomeNode *as_node(const String& method_ | Line 108 GdomeNode *as_node(const String& method_ |
| // helpers | // helpers |
| GdomeAttr * as_attr(Pool& pool, const String& method_name, MethodParams *params, | GdomeAttr * as_attr(Pool& pool, const String& method_name, MethodParams *params, |
| int index, const char *msg) { | int index, const char* msg) { |
| GdomeNode *node=as_node(method_name, params, index, msg); | GdomeNode *node=as_node(method_name, params, index, msg); |
| GdomeException exc; | GdomeException exc; |
| if(gdome_n_nodeType(node, &exc)!=GDOME_ATTRIBUTE_NODE) | if(gdome_n_nodeType(node, &exc)!=GDOME_ATTRIBUTE_NODE) |
| Line 604 static void _selectString(Request& r, co | Line 604 static void _selectString(Request& r, co |
| // constructor | // constructor |
| MXnode::MXnode(Pool& apool, const char *aname, VStateless_class *abase) : | MXnode::MXnode(Pool& apool, const char* aname, VStateless_class *abase) : |
| Methoded(apool, aname?aname:"xnode", abase), | Methoded(apool, aname?aname:"xnode", abase), |
| consts(apool) | consts(apool) |