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