|
|
| version 1.20, 2002/08/01 11:26:43 | version 1.23.2.5, 2003/01/30 11:19:29 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b Methoded class decl. | Parser: @b Methoded class decl. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2003 ArtLebedev Group (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* IDENT_CLASSES_H="$Id$"; | static const char* IDENT_CLASSES_H="$Date$"; |
| // include | |
| #include "pa_vstateless_class.h" | #include "pa_vstateless_class.h" |
| #include "pa_array.h" | #include "pa_array.h" |
| Line 15 static const char* IDENT_CLASSES_H="$Id$ | Line 18 static const char* IDENT_CLASSES_H="$Id$ |
| /** Pure virtual base for configurable Methoded descendants | /** Pure virtual base for configurable Methoded descendants |
| @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 33 public: // Methoded | Line 42 public: // Methoded |
| public: // usage | public: // usage |
| Methoded(Pool& apool, const char *aname, VStateless_class *abase=0) : | Methoded(const char *aname, VStateless_classPtr abase=VStateless_classPtr(0)): |
| VStateless_class(apool, new(apool) String(apool, aname), abase) { | VStateless_class(ConstStringPtr(new String(aname)), abase) { |
| } | } |
| void register_directly_used(Request& r); | void register_directly_used(Request& r); |
| }; | }; |
| DECLARE_OBJECT_PTR(Methoded); | |
| /// all Methoded registered here in autogenerated classes.C | /// all Methoded registered here in autogenerated classes.C |
| class Methoded_array : public Array { | class Methoded_array: public Array<MethodedPtr> { |
| public: | public: |
| Methoded_array(Pool& pool); | Methoded_array(); |
| public: // Methoded for_each-es | public: // Methoded for_each-es |
| /// @see Methoded::configure_admin | /// @see Methoded::configure_admin |
| Line 55 public: // Methoded for_each-es | Line 65 public: // Methoded for_each-es |
| void register_directly_used(Request& r); | void register_directly_used(Request& r); |
| }; | }; |
| extern Methoded_array *methoded_array; | extern Methoded_array methoded_array; |
| void init_methoded_array(Pool& pool); | |
| #endif | #endif |