|
|
| version 1.38, 2016/04/06 16:08:19 | version 1.45, 2024/11/10 21:00:00 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b Methoded class decl. | Parser: @b Methoded class decl. |
| Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| #ifndef CLASSES_H | #ifndef CLASSES_H |
| Line 35 public: // Methoded | Line 35 public: // Methoded |
| 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 |
| virtual void configure_user(Request& ) {} | virtual void configure_user(Request& ) {} |
| /// use it to construct static variables. check some static so that would be only ONCE! | |
| virtual void construct_statics() {} | |
| private: | private: |
| Line 71 Methoded_array& methoded_array(); | Line 69 Methoded_array& methoded_array(); |
| // defines | // defines |
| #define DECLARE_CLASS_VAR(name, self) \ | #define DECLARE_CLASS_VAR(name, self) \ |
| Methoded* name##_class=self | Methoded* name##_class=self; \ |
| Methoded* name##_init(){ if(!name##_class){ name##_class=self; } return name##_class; } | |
| #endif | #endif |