From 5feeff6e7263d78d482b4c262ace851f370957d6 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 6 Mar 2014 10:59:54 +0100 Subject: changes to documentation, added support for const methods so that they can also be exported --- src/classbase.cpp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'src/classbase.cpp') diff --git a/src/classbase.cpp b/src/classbase.cpp index e813617..19ac6bc 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -306,6 +306,58 @@ void ClassBase::method(const char *name, method_callback_3 callback, int flags, _methods.push_back(std::make_shared(name, callback, flags, args)); } +/** + * Add a method to the class + * @param name Name of the method + * @param method The actual method + * @param flags Optional flags + * @param args Description of the supported arguments + */ +void ClassBase::method(const char *name, method_callback_4 callback, int flags, const Arguments &args) +{ + // add the method + _methods.push_back(std::make_shared(name, callback, flags, args)); +} + +/** + * Add a method to the class + * @param name Name of the method + * @param method The actual method + * @param flags Optional flags + * @param args Description of the supported arguments + */ +void ClassBase::method(const char *name, method_callback_5 callback, int flags, const Arguments &args) +{ + // add the method + _methods.push_back(std::make_shared(name, callback, flags, args)); +} + +/** + * Add a method to the class + * @param name Name of the method + * @param method The actual method + * @param flags Optional flags + * @param args Description of the supported arguments + */ +void ClassBase::method(const char *name, method_callback_6 callback, int flags, const Arguments &args) +{ + // add the method + _methods.push_back(std::make_shared(name, callback, flags, args)); +} + +/** + * Add a method to the class + * @param name Name of the method + * @param method The actual method + * @param flags Optional flags + * @param args Description of the supported arguments + */ +void ClassBase::method(const char *name, method_callback_7 callback, int flags, const Arguments &args) +{ + // add the method + _methods.push_back(std::make_shared(name, callback, flags, args)); +} + /** * Add an abstract method to the class * @param name Name of the method -- cgit v1.2.3