C++ Web Framework  3.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MetaClassParser Class Reference

This class extracts all information from a QObject. More...

#include <metaclassparser.h>

Public Member Functions

 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...
 

Static Public Member Functions

static void * instantiateClassByName (const QByteArray &name)
 Instantiate a class by name. More...
 

Public Attributes

QMap< std::tuple< QString, QString >, QMetaMethod > methods
 
QMap< QString, QMetaProperty > properties
 

Detailed Description

This class extracts all information from a QObject.

Constructor & Destructor Documentation

◆ MetaClassParser()

CWF_BEGIN_NAMESPACE MetaClassParser::MetaClassParser ( QObject *  object)
explicit

Extracts all properties and methods names from a QObject.

Parameters
QObject*object : Object.

Member Function Documentation

◆ getParameterType()

QString MetaClassParser::getParameterType ( const QString &  methodName)

Returns the method parameter type given a method name.

Parameters
constQString &methodName : Method name.
Returns
QString : Parameter type.

◆ getReturnType()

QString MetaClassParser::getReturnType ( const QString &  methodName)

Returns the method return type given a method name.

Parameters
constQString &methodName : Method name.
Returns
QString : Return type.

◆ instantiateClassByName()

void * MetaClassParser::instantiateClassByName ( const QByteArray &  name)
static

Instantiate a class by name.

Parameters
constQByteArray &name : Class name.
Returns
void * : Returns nullptr if fails.

The documentation for this class was generated from the following files: