This class extracts all information from a QObject.
More...
#include <metaclassparser.h>
|
| | MetaClassParser (QObject *object) |
| | Extracts all properties and methods names from a QObject. More...
|
| |
| QString | getReturnType (const QString &methodName) |
| | Returns the method return type given a method name. More...
|
| |
| QString | getParameterType (const QString &methodName) |
| | Returns the method parameter type given a method name. More...
|
| |
|
|
QMap< std::tuple< QString, QString >, QMetaMethod > | methods |
| |
|
QMap< QString, QMetaProperty > | properties |
| |
This class extracts all information from a QObject.
◆ MetaClassParser()
| CWF_BEGIN_NAMESPACE MetaClassParser::MetaClassParser |
( |
QObject * |
object | ) |
|
|
explicit |
Extracts all properties and methods names from a QObject.
- Parameters
-
◆ getParameterType()
| QString MetaClassParser::getParameterType |
( |
const QString & |
methodName | ) |
|
Returns the method parameter type given a method name.
- Parameters
-
| const | QString &methodName : Method name. |
- Returns
- QString : Parameter type.
◆ getReturnType()
| QString MetaClassParser::getReturnType |
( |
const QString & |
methodName | ) |
|
Returns the method return type given a method name.
- Parameters
-
| const | QString &methodName : Method name. |
- Returns
- QString : Return type.
◆ instantiateClassByName()
| void * MetaClassParser::instantiateClassByName |
( |
const QByteArray & |
name | ) |
|
|
static |
Instantiate a class by name.
- Parameters
-
| const | QByteArray &name : Class name. |
- Returns
- void * : Returns nullptr if fails.
The documentation for this class was generated from the following files:
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/metaclassparser.h
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/metaclassparser.cpp