X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FMainpage.dox;h=16e73761f9ab03d1f987adec02b8209adb1f5e92;hb=b64ffc44397d5853a677a1b4494105c4756af8d3;hp=eb39f764b9d3a86d5e6071b5ed2fe68712ede8fc;hpb=a726ae0cb14d0ce37e5aab3c4e07121bbbd3b31c;p=senf.git diff --git a/Utils/Console/Mainpage.dox b/Utils/Console/Mainpage.dox index eb39f76..16e7376 100644 --- a/Utils/Console/Mainpage.dox +++ b/Utils/Console/Mainpage.dox @@ -779,6 +779,20 @@ .add("over", static_cast(&over)); senf::console::root() .add("over", static_cast(&over)); + + class SomeModule { + senf::console::ScopedDirectory dir; + + unsigned int overlodedMethod() const {....}; + void overlodedMethod(unsigned int) {....}; + + void addConsoleCommands() { + dir.node().add("overlodedMethod", senf::membind( + static_cast(&SomeModule::overlodedMethod), this)); + dir.node().add("overlodedMethod", senf::membind( + static_cast(&SomeModule::overlodedMethod), this)); + } + } \endcode