Diff for /parser3/src/classes/classes.h between versions 1.41 and 1.47

version 1.41, 2020/12/15 17:10:27 version 1.47, 2026/03/01 00:51:19
Line 1 Line 1
 /** @file  /** @file
         Parser: @b Methoded class decl.          Parser: @b Methoded class decl.
   
         Copyright (c) 2001-2020 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 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 69  Methoded_array& methoded_array(); Line 67  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=NULL;  \
           Methoded* name##_instance(){ if(!name##_class){ name##_class=self; } return name##_class; }
   
   #define ADD_CLASS_VAR(name) \
           Methoded* name##_instance();  \
           *this+=name##_instance();
   
 #endif  #endif

Removed from v.1.41  
changed lines
  Added in v.1.47


E-mail: