|
|
| version 1.9, 2001/09/06 14:55:06 | version 1.11, 2001/10/08 16:42:06 |
|---|---|
| Line 2 | Line 2 |
| Parser: @b VOID parser class. | Parser: @b VOID parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) |
| $Id$ | |
| */ | */ |
| static const char *RCSId="$Id$"; | |
| #include "classes.h" | #include "classes.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| Line 33 static void _int(Request& r, const Strin | Line 33 static void _int(Request& r, const Strin |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VVoid *vvoid=static_cast<VVoid *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.self); |
| r.write_no_lang(*new(pool) VInt(pool, | r.write_no_lang(*new(pool) VInt(pool, |
| params->size()==0?vvoid->as_int():params->as_int(0, r)/*default*/)); | params->size()==0?vvoid->as_int():params->as_int(0, "default must be int", r))); |
| } | } |
| static void _double(Request& r, const String&, MethodParams *params) { | static void _double(Request& r, const String&, MethodParams *params) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VVoid *vvoid=static_cast<VVoid *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.self); |
| r.write_no_lang(*new(pool) VDouble(pool, | r.write_no_lang(*new(pool) VDouble(pool, |
| params->size()==0?vvoid->as_double():params->as_double(0, r)/*default*/)); | params->size()==0?vvoid->as_double():params->as_double(0, "default must be double", r))); |
| } | } |
| #ifndef DOXYGEN | #ifndef DOXYGEN |