diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-06 10:59:54 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-06 10:59:54 +0100 |
commit | 5feeff6e7263d78d482b4c262ace851f370957d6 (patch) | |
tree | 6b98aa47741eee89d2a14356707993ce5c7bfa19 /src/classbase.cpp | |
parent | 1a5573246367d457fe4fd961b7faf3b308a88d0c (diff) |
changes to documentation, added support for const methods so that they can also be exported
Diffstat (limited to 'src/classbase.cpp')
-rw-r--r-- | src/classbase.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/classbase.cpp b/src/classbase.cpp index e813617..19ac6bc 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -307,6 +307,58 @@ void ClassBase::method(const char *name, method_callback_3 callback, int flags, } /** + * 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<Method>(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<Method>(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<Method>(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<Method>(name, callback, flags, args)); +} + +/** * Add an abstract method to the class * @param name Name of the method * @param flags Optional flags (like public or protected) |