-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setParentTimeConstraint should be part of the TimeProcess API #30
Comments
Actually, the simplest API would be to just have
|
ok I get it ! |
I just commited it, the change was simple to do. |
as i-score is building and I know understand well the change you I'm wondering to know if it is not a problem to allow to set the parent ourself. until now this was made into TimeConstraint::addProcess and so we were sure that no absurdity can happen. now it seems possible to add a process into a constraint and then to change its parent afterward (which is a non sens). is there a way to avoid this ? |
On Thu, Feb 18, 2016 at 12:32 PM, theod [email protected] wrote:
but this was already possible before because the "setParentConstraint" e.g.
and when a function / class shouldn't be able to modify a parent, it should [1]: http://www.drdobbs.com/a-view-to-a-string-part-i/184402064 and |
It is always required if one wants to do a remotely useful process.
TimeProcess interface should get the :
std::shared_ptr<TimeConstraint> mParent;
and
void setParentTimeConstraint(const shared_ptr<TimeConstraint>);
members since they are recreated in both
JamomaTimeProcess
and any other kind of process that one would like to make.This way it wouldn't be needed to do :
but just
and it would work with any kind of
TimeProcess
.The text was updated successfully, but these errors were encountered: