|
|
| version 1.18.2.6, 2003/03/07 10:17:12 | version 1.20, 2003/11/20 16:34:23 |
|---|---|
| Line 5 | Line 5 |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| static const char* IDENT_CLASSES_C="$Date$"; | static const char * const IDENT_CLASSES_C="$Date$"; |
| #include "classes.h" | #include "classes.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| Line 14 static const char* IDENT_CLASSES_C="$Dat | Line 14 static const char* IDENT_CLASSES_C="$Dat |
| void Methoded::register_directly_used(Request& r) { | void Methoded::register_directly_used(Request& r) { |
| if(used_directly()) { | if(used_directly()) { |
| r.classes().put(name(), MethodedPtr(this)); | r.classes().put(name(), this); |
| } | } |
| // prevent system classes from modification [calling add_method] | // prevent system classes from modification [calling add_method] |
| Line 27 void Methoded::register_directly_used(Re | Line 27 void Methoded::register_directly_used(Re |
| // global variable | // global variable |
| Methoded_array& methoded_array() { | Methoded_array& methoded_array() { |
| static Methoded_arrayPtr result(0); | static Methoded_array* result=0; |
| if(!result) | if(!result) |
| result=Methoded_arrayPtr(new Methoded_array); | result=new Methoded_array; |
| return *result; | return *result; |
| } | } |