|
|
| version 1.1, 2007/02/03 18:08:38 | version 1.4, 2012/03/16 09:24:06 |
|---|---|
| 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-2012 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| static const char * const IDENT_INT_C="$Date$"; | |
| #include "classes.h" | #include "classes.h" |
| #include "pa_vmethod_frame.h" | #include "pa_vmethod_frame.h" |
| Line 15 static const char * const IDENT_INT_C="$ | Line 13 static const char * const IDENT_INT_C="$ |
| #include "pa_vint.h" | #include "pa_vint.h" |
| #include "pa_vbool.h" | #include "pa_vbool.h" |
| volatile const char * IDENT_BOOL_C="$Id$" IDENT_PA_VBOOL_H; | |
| // externs | // externs |
| void _string_format(Request& r, MethodParams&); | void _string_format(Request& r, MethodParams&); |
| 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); |