Representation *make(QString str, QObject *parent)
Make a Representation from a string. The string is passed to Factory::make to be turned into a representation.
-
function definition:
static Representation *make(QString str, QObject *parent)
-
parameters:
Parameter Type Description str QString String describing the representation parent QObject * Parent of the object to be created -
output: (Representation *) Returns a pointer to the Representation described by the string
- see: Factory::make
- example:
Representation *rep = Representation::make("Representation(property1=value1)"); rep->description(); // Returns "Representation(property1=value1)"