|
|
| version 1.1, 2007/02/03 18:08:38 | version 1.3, 2010/10/21 15:06:27 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b int parser class. | Parser: @b int parser class. |
| Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2009 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) |
| */ | */ |
| Line 24 void _string_format(Request& r, MethodPa | Line 24 void _string_format(Request& r, MethodPa |
| class MBool: public Methoded { | class MBool: public Methoded { |
| public: | public: |
| MBool(); | MBool(); |
| public: // Methoded | |
| bool used_directly() { return true; } | |
| }; | }; |
| // global variable | // global variable |
| Line 57 static void _bool(Request& r, MethodPara | Line 55 static void _bool(Request& r, MethodPara |
| if(params.count()>0) | if(params.count()>0) |
| params.as_bool(0, "default must be bool", r); | params.as_bool(0, "default must be bool", r); |
| VBool& vbool=GET_SELF(r, VBool); | r.write_no_lang(GET_SELF(r, VBool)); |
| r.write_no_lang(*new VBool(vbool)); | |
| } | } |
| //typedef void (*vbool_op_func_ptr)(VBool& vbool, double param); | //typedef void (*vbool_op_func_ptr)(VBool& vbool, double param); |