Herunterladen als
root/src/entityinstancefactory.h @ bb5e9339
f4e3904b | Christian Ehringfeld | #ifndef ENTITYINSTANCEFACTORY_H
|
|
#define ENTITYINSTANCEFACTORY_H
|
|||
#include <QString>
|
|||
#include <QVariant>
|
|||
#include <QHash>
|
|||
namespace CuteEntityManager {
|
|||
class Entity;
|
|||
class EntityInstanceFactory {
|
|||
public:
|
|||
static Entity *createInstance(const char *className);
|
|||
d568923d | Christian Ehringfeld | static Entity *createInstance(const QString &className);
|
|
bb5e9339 | SebastianDiel | static Entity *createInstance(int metaTypeId);
|
|
f4e3904b | Christian Ehringfeld | static Entity *createInstance(const char *className, const QHash<QString, QVariant> &attributes);
|
|
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes, QHash<QString, QMetaProperty> metaprops);
|
|||
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes);
|
|||
protected:
|
|||
EntityInstanceFactory();
|
|||
};
|
|||
}
|
|||
#endif // ENTITYINSTANCEFACTORY_H
|