|
|
| version 1.26, 2004/02/11 15:33:11 | version 1.35, 2015/10/26 01:21:53 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b Methoded class decl. | Parser: @b Methoded class decl. |
| Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2015 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) |
| */ | */ |
| #ifndef CLASSES_H | #ifndef CLASSES_H |
| #define CLASSES_H | #define CLASSES_H |
| static const char * const IDENT_CLASSES_H="$Date$"; | #define IDENT_CLASSES_H "$Id$" |
| // include | // include |
| Line 19 static const char * const IDENT_CLASSES_ | Line 19 static const char * const IDENT_CLASSES_ |
| @see Methoded_array | @see Methoded_array |
| */ | */ |
| class Methoded: public VStateless_class { | class Methoded: public VStateless_class { |
| public: // Value | |
| override bool put_element(const String& /*name*/, Value * /*value*/, bool /*replace*/) { | |
| return false; // fewer useless Exceptions | |
| } | |
| public: // Methoded | public: // Methoded |
| /** should Methoded_array::register_directly_used register this class in | /** should Methoded_array::register_directly_used register this class in |
| Line 32 public: // Methoded | Line 26 public: // Methoded |
| if not - global variable with Methoded descendant | if not - global variable with Methoded descendant |
| is used in VStateless_class parameter | is used in VStateless_class parameter |
| */ | */ |
| virtual bool used_directly() =0; | virtual bool used_directly() { return true; } |
| /// use this method to read parameters from root "auto.p"; access r.main_class | /// use this method to read parameters from root "auto.p"; access r.main_class |
| virtual void configure_admin(Request& ) {} | virtual void configure_admin(Request& ) {} |
| /// use this method to read parameters from 'MAIN' class; access r.main_class | /// use this method to read parameters from 'MAIN' class; access r.main_class |