Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ec8aec09
Commit
ec8aec09
authored
Mar 22, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Mar 22, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #691 from vpisarev:fix_2899
parents
2c9f6512
a4815cf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+3
-0
test_io.cpp
modules/core/test/test_io.cpp
+9
-0
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
ec8aec09
...
@@ -2917,6 +2917,9 @@ CV_EXPORTS FileStorage& operator << (FileStorage& fs, const string& str);
...
@@ -2917,6 +2917,9 @@ CV_EXPORTS FileStorage& operator << (FileStorage& fs, const string& str);
static
inline
FileStorage
&
operator
<<
(
FileStorage
&
fs
,
const
char
*
str
)
static
inline
FileStorage
&
operator
<<
(
FileStorage
&
fs
,
const
char
*
str
)
{
return
(
fs
<<
string
(
str
));
}
{
return
(
fs
<<
string
(
str
));
}
static
inline
FileStorage
&
operator
<<
(
FileStorage
&
fs
,
char
*
value
)
{
return
(
fs
<<
string
(
value
));
}
inline
FileNode
::
FileNode
()
:
fs
(
0
),
node
(
0
)
{}
inline
FileNode
::
FileNode
()
:
fs
(
0
),
node
(
0
)
{}
inline
FileNode
::
FileNode
(
const
CvFileStorage
*
_fs
,
const
CvFileNode
*
_node
)
inline
FileNode
::
FileNode
(
const
CvFileStorage
*
_fs
,
const
CvFileNode
*
_node
)
:
fs
(
_fs
),
node
(
_node
)
{}
:
fs
(
_fs
),
node
(
_node
)
{}
...
...
modules/core/test/test_io.cpp
View file @
ec8aec09
...
@@ -454,3 +454,12 @@ protected:
...
@@ -454,3 +454,12 @@ protected:
TEST(Core_InputOutput, huge) { CV_BigMatrixIOTest test; test.safe_run(); }
TEST(Core_InputOutput, huge) { CV_BigMatrixIOTest test; test.safe_run(); }
*/
*/
TEST
(
Core_InputOutput
,
FileStorage
)
{
std
::
string
file
=
cv
::
tempfile
(
".xml"
);
cv
::
FileStorage
f
(
file
,
cv
::
FileStorage
::
WRITE
);
char
arr
[
66
];
sprintf
(
arr
,
"sprintf is hell %d"
,
666
);
EXPECT_NO_THROW
(
f
<<
arr
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment