Go to the source code of this file.
Defines |
#define | pl_module_application(ModuleName, ApplicationClass) |
| Defines a default frontend for a module inside a plugin library.
|
#define | pl_module_application_frontend(ModuleName, ApplicationClass, FrontendClass) |
| Defines a frontend for a module inside a plugin library.
|
Define Documentation
Value:
Defines a default frontend for a module inside a plugin library.
- Parameters:
-
[in] | ModuleName | Module name |
[in] | ApplicationClass | Name of the application RTTI class to use (must be derived from "PLCore::FrontendApplication") |
Value:int PLMain(const PLCore::String &sExecutableFilename, const PLCore::Array<PLCore::String> &lstArguments) \
{ \
\
if (PLCore::Runtime::ScanDirectoryPluginsAndData()) { \
\
PLCore::FrontendContext cFrontendContext; \
cFrontendContext.SetExecutableFilename(sExecutableFilename); \
cFrontendContext.SetArguments(lstArguments); \
cFrontendContext.SetName(ModuleName); \
cFrontendContext.SetFrontendParameters(PLCore::String("ApplicationClass=\"") + ApplicationClass + '\"'); \
cFrontendContext.SetFrontendImplementation(FrontendClass); \
\
\
return PLCore::Frontend::Run(cFrontendContext); \
} else { \
\
return -1; \
} \
} \
\
pl_module_plugin(ModuleName)
Defines a frontend for a module inside a plugin library.
- Parameters:
-
[in] | ModuleName | Module name |
[in] | ApplicationClass | Name of the application RTTI class to use (must be derived from "PLCore::FrontendApplication") |
[in] | FrontendClass | Name of the frontend implementation RTTI class to use (e.g. "PLFrontendOS::Frontend") |