filestorage writing pod types (Bug #2989)
Description
Writing standard c types doesn't change the elem type when writing a single (non-sequence) value.
eg: cv::FileStorage file(pathName, cv::FileStorage::WRITE);
file << "testint"<< (int)123;
file << "testdouble" << (double)30.0;
file << "testbool" << false;
file << "teststring" << "hello";
file.release();
Generates the file
<opencv_storage>
<testint>123</testint>
<testint>testdouble</testint>
<testint>30.</testint>
<testbool>0</testbool>
<testbool>teststring</testbool>
</opencv_storage>
Associated revisions
Merge pull request #2989 from smvv:gstreamer_capture_init
History
Updated by Martin Beckett almost 12 years ago
%YAML:1.0
testint: 123
testint: testdouble
testint: 30.
testbool: 0
testbool: teststring
Updated by Luis Díaz Más almost 12 years ago
I just test your code with version 2.4.5 and I don't suffer this problem.
The result obtained with XML output:
<testint>123</testint> <testdouble>30.</testdouble> <testbool>0</testbool> <teststring>hello</teststring>
The result obtained with YAML output:
testint: 123 testdouble: 30. testbool: 0 teststring: hello
Updated by Vladislav Vinogradov almost 12 years ago
Closing, because this bug is not reproducible.
- Status changed from Open to Cancelled
- Priority changed from High to Normal