|
|
| version 1.5, 2001/07/23 11:19:25 | version 1.7, 2001/08/09 06:48:45 |
|---|---|
| Line 31 public: // Methoded | Line 31 public: // Methoded |
| static void _int(Request& r, const String&, MethodParams *) { | static void _int(Request& r, const String&, MethodParams *) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VInt *vunknown=static_cast<VInt *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.self); |
| Value& value=*new(pool) VInt(pool, vunknown->as_int()); | r.write_no_lang(*new(pool) VInt(pool, vvoid->as_int())); |
| r.write_no_lang(value); | |
| } | } |
| static void _double(Request& r, const String&, MethodParams *) { | static void _double(Request& r, const String&, MethodParams *) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VInt *vunknown=static_cast<VInt *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.self); |
| Value& value=*new(pool) VDouble(pool, vunknown->as_double()); | r.write_no_lang(*new(pool) VDouble(pool, vvoid->as_double())); |
| r.write_no_lang(value); | |
| } | } |
| #ifndef DOXYGEN | #ifndef DOXYGEN |