Xcos MVC: use var2vec and vec2var to encode and decode 'opar' and 'odstate' fields 33/15933/13
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Tue, 10 Feb 2015 15:40:42 +0000 (16:40 +0100)
committerPaul Bignier <paul.bignier@scilab-enterprises.com>
Mon, 16 Feb 2015 16:40:36 +0000 (17:40 +0100)
commitffcd8e2e65060b78de75e05ac555fd5483f2da8c
tree03c17df4948aea774090a09c9c7416f79b655852
parent32ad667e3294335ec16e38c07ea8f748e87ff75f
Xcos MVC: use var2vec and vec2var to encode and decode 'opar' and 'odstate' fields

 * Moved var2vec and vec2var code to Scicos sources
   In the process, they now take an std::vector<double>, to reduce copies
 * Fixed vec2var for complex data
 * Fixed their default values to match var2vec's empty list

Change-Id: I714210ad87e27bcddf045bb3ff0bb5ff4d08a93d
21 files changed:
scilab/modules/scicos/Makefile.am
scilab/modules/scicos/Makefile.in
scilab/modules/scicos/sci_gateway/cpp/sci_var2vec.cpp
scilab/modules/scicos/sci_gateway/cpp/sci_vec2var.cpp
scilab/modules/scicos/src/c/scicos.vcxproj
scilab/modules/scicos/src/c/scicos.vcxproj.filters
scilab/modules/scicos/src/cpp/Model_getObjectProperties.cpp
scilab/modules/scicos/src/cpp/Model_setObjectProperties.cpp
scilab/modules/scicos/src/cpp/model/Block.hxx
scilab/modules/scicos/src/cpp/var2vec.cpp [new file with mode: 0644]
scilab/modules/scicos/src/cpp/var2vec.hxx [new file with mode: 0644]
scilab/modules/scicos/src/cpp/vec2var.cpp [new file with mode: 0644]
scilab/modules/scicos/src/cpp/vec2var.hxx [new file with mode: 0644]
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp
scilab/modules/scicos/tests/unit_tests/model/Block.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Consecutive_init.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Deep_cloning.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Delete_objects.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Diagram.dia.ref
scilab/modules/scicos/tests/unit_tests/model/SuperBlock.dia.ref
scilab/modules/scicos/tests/unit_tests/model/SuperBlock_in_SuperBlock.dia.ref