|
|
| version 1.45, 2002/04/18 15:54:39 | version 1.48, 2002/08/15 09:07:49 |
|---|---|
| Line 3 | Line 3 |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 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) |
| $Id$ | |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| #ifdef XML | #ifdef XML |
| static const char* IDENT_XNODE_C="$Date$"; | |
| #include "pa_charset.h" | #include "pa_charset.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| #include "pa_vxnode.h" | #include "pa_vxnode.h" |
| Line 97 private: | Line 97 private: |
| 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(!(strcmp(value.type(), VXNODE_TYPE)==0 | if(Value *vxnode=value.as(VXNODE_TYPE, false)) |
| || strcmp(value.type(), VXDOC_TYPE)==0)) | return static_cast<VXnode *>(vxnode)->get_node(&method_name); |
| else | |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| &method_name, | &method_name, |
| msg); | msg); |
| VXnode& vnode=*static_cast<VXnode *>(&value); | |
| return vnode.get_node(&method_name); | |
| } | } |
| // helpers | // helpers |