--- parser3/src/include/pa_request.h 2023/09/26 20:49:07 1.262 +++ parser3/src/include/pa_request.h 2024/09/17 18:09:59 1.265 @@ -8,7 +8,7 @@ #ifndef PA_REQUEST_H #define PA_REQUEST_H -#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.262 2023/09/26 20:49:07 moko Exp $" +#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.265 2024/09/17 18:09:59 moko Exp $" #include "pa_pool.h" #include "pa_hash.h" @@ -125,11 +125,11 @@ private: element_type bottom_value() { return get(bottom_index()); } void clear() { - fused=fbottom=0; + fsize=fbottom=0; } bool is_empty() { - return fused==fbottom; + return fsize==fbottom; } Table &table(Request &r); @@ -210,6 +210,7 @@ public: VStateless_class* get_class(const String& name); VStateless_class& get_class_ref(const String& name); void put_class(VStateless_class *aclass){ classes().put(aclass->type(), aclass); } + bool add_class(const char* atype, VStateless_class *aclass); /** core request processing @@ -369,6 +370,7 @@ public: // status read methods //{ for @conf[filespec] and @auto[filespec] bool execute_method_if_exists(VStateless_class& aclass, const String& method_name, Value* optional_param); + bool execute_auto_method_if_exists(VStateless_class& aclass, const String& method_name, Value* optional_param); //}