help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assign class properties dynamical in constructor


From: deadball
Subject: Assign class properties dynamical in constructor
Date: Thu, 24 Sep 2015 12:38:00 +0200

Hi guys.

Is it possible  to assign propierties (public) of a classdef class (Octave 4) via varargs?

Imagine I've got a class with many settings controlled by public class properties. Each one has default settings, but I want to mass assign arbitrary settings using the constructor of the class via name-property pairs instead of either assign fixed parameters (no varargs) via constructor or call the set function for the properties a lot of times.

Matlab seems to have a "setProperties" function, see http://de.mathworks.com/help/vision/ug/set-property-values-at-construction-from-name-value-pairs-1.html

Thank you and best regards,
deadball

reply via email to

[Prev in Thread] Current Thread [Next in Thread]