|
|
| version 1.1, 2001/04/27 16:48:19 | version 1.2, 2001/04/28 08:45:15 |
|---|---|
| Line 0 | Line 1 |
| /** @file | |
| Parser: @b Methoded class decl. | |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | |
| $Id$ | |
| */ | |
| #ifndef PA_METHODED_H | |
| #define PA_METHODED_H | |
| #include "pa_vstateless_class.h" | |
| #include "pa_array.h" | |
| /** Pure virtual base for configurable Methoded descendants | |
| */ | |
| class Methoded : public VStateless_class { | |
| public: // Value | |
| /// all: for error reporting after fail(), etc | |
| const char *type() const { return "m_base"; } | |
| public: // Methoded | |
| virtual bool used_directly() =0; | |
| virtual void configure(Request& r) {} | |
| public: // usage | |
| Methoded(Pool& pool) : VStateless_class(pool) { | |
| } | |
| void register_directly_used(Request& r); | |
| }; | |
| class Methoded_array : public Array { | |
| public: | |
| Methoded_array(Pool& pool); | |
| public: // Methoded for_each-es | |
| void configure(Request& r); | |
| void register_directly_used(Request& r); | |
| }; | |
| extern Methoded_array *methoded_array; | |
| void init_methoded_array(Pool& pool); | |
| #endif |