test: FileStorage format regression test

This commit is contained in:
Alexander Alekhin
2017-07-20 19:56:47 +03:00
parent 9313978f61
commit 5bc291937f
3 changed files with 67 additions and 0 deletions
+6
View File
@@ -6920,6 +6920,12 @@ FileNode FileStorage::root(int streamidx) const
return isOpened() ? FileNode(fs, cvGetRootFileNode(fs, streamidx)) : FileNode();
}
int FileStorage::getFormat() const
{
CV_Assert(!fs.empty());
return fs->fmt & FORMAT_MASK;
}
FileStorage& operator << (FileStorage& fs, const String& str)
{
CV_TRACE_REGION_VERBOSE();