Ajish Babu
2014-09-04 18:19:56 UTC
Hi all,
I have a complex property with std::vector (sub-configs) inside
std:vector (configs). I am trying to modify the property from ruby script.
Changing any already existing value works fine. But once I try to push a
new element to the sub-configs and then write it back like
configs = task.configs.to_a
configs.each do | config |
sub_configs = config.sub_configs.to_a
sub_configs.push( Types::SubConfig.new )
config.sub_configs = sub_configs
end
task.configs = configs
it crashes. Does anybody know how this can be achieved?
Best
Ajish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140904/93425efe/attachment.htm
I have a complex property with std::vector (sub-configs) inside
std:vector (configs). I am trying to modify the property from ruby script.
Changing any already existing value works fine. But once I try to push a
new element to the sub-configs and then write it back like
configs = task.configs.to_a
configs.each do | config |
sub_configs = config.sub_configs.to_a
sub_configs.push( Types::SubConfig.new )
config.sub_configs = sub_configs
end
task.configs = configs
it crashes. Does anybody know how this can be achieved?
Best
Ajish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140904/93425efe/attachment.htm