--- parser3/src/classes/classes.h 2016/03/31 21:46:19 1.36 +++ parser3/src/classes/classes.h 2016/04/06 16:08:19 1.38 @@ -8,7 +8,7 @@ #ifndef CLASSES_H #define CLASSES_H -#define IDENT_CLASSES_H "$Id: classes.h,v 1.36 2016/03/31 21:46:19 moko Exp $" +#define IDENT_CLASSES_H "$Id: classes.h,v 1.38 2016/04/06 16:08:19 moko Exp $" // include @@ -19,6 +19,10 @@ @see Methoded_array */ class Methoded: public VStateless_class { +public: // Value + + override const char* type() const { return ftype; } + public: // Methoded /** should Methoded_array::register_directly_used register this class in @@ -34,11 +38,13 @@ public: // Methoded /// use it to construct static variables. check some static so that would be only ONCE! virtual void construct_statics() {} +private: + + const char* ftype; + public: // usage - Methoded(const char* aname, VStateless_class* abase=0): - VStateless_class(new String(aname), abase) { - } + Methoded(const char* atype): ftype(atype){} void register_directly_used(Request& r);