Diff for /parser3/src/classes/classes.h between versions 1.46 and 1.49

version 1.46, 2024/11/11 05:28:00 version 1.49, 2026/05/28 14:33:49
Line 1 Line 1
 /** @file  /** @file
         Parser: @b Methoded class decl.          Parser: @b Methoded class decl.
   
         Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
         Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>          Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
 */  */
   
Line 33  public: // Methoded Line 33  public: // Methoded
         virtual bool used_directly() { return true; }          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  
         virtual void configure_user(Request& ) {}  
   
 private:  private:
   
Line 73  Methoded_array& methoded_array(); Line 71  Methoded_array& methoded_array();
         Methoded* name##_instance(){ if(!name##_class){ name##_class=self; } return name##_class; }          Methoded* name##_instance(){ if(!name##_class){ name##_class=self; } return name##_class; }
   
 #define ADD_CLASS_VAR(name) \  #define ADD_CLASS_VAR(name) \
         Methoded* name##_instance();  \          extern Methoded* name##_instance();  \
         *this+=name##_instance();          *this+=name##_instance();
   
 #endif  #endif

Removed from v.1.46  
changed lines
  Added in v.1.49


E-mail: