The configuration of the command handler module example is defined in a descriptive way. If you want to learn more about how to define a configuration by declaring first the data members and then the description for introspection, you will find an example at Descriptive configuration declaration example
#include "cmdbind/commandHandlerUnit.hpp"
#include <vector>
class MyCommandHandlerConfig
{
public:
{
}
MyCommandHandlerConfig( const char* classname, const char* title, const char* logprefix, const char* subsection)
:_Wolframe::serialize::DescriptiveConfiguration( title, "authentication", logprefix, getStructDescription())
{
}
};
class MyCommandHandlerUnit
{
public:
MyCommandHandlerUnit( const MyCommandHandlerConfig* cfg)
{
}
{
}
virtual std::vector<std::string>
commands()
const
{
}
{
}
};
WF_MODULE_BEGIN(
"MyCommandHandler",
"my command handler short description")
WF_COMMAND_HANDLER( "MyCommandHandler", "cmdhandler", "mycmd", MyCommandHandlerUnit, MyCommandHandlerConfig)