Commit c17ce1a0 authored by lopespt's avatar lopespt

Solves issue #10506

parent 7bc980ed
...@@ -438,6 +438,8 @@ public: ...@@ -438,6 +438,8 @@ public:
* @param name Name of the written object * @param name Name of the written object
* @param val Value of the written object * @param val Value of the written object
*/ */
CV_WRAP void write(const String& name, int val);
/// @overload
CV_WRAP void write(const String& name, double val); CV_WRAP void write(const String& name, double val);
/// @overload /// @overload
CV_WRAP void write(const String& name, const String& val); CV_WRAP void write(const String& name, const String& val);
......
...@@ -178,6 +178,12 @@ void FileStorage::writeObj( const String& name, const void* obj ) ...@@ -178,6 +178,12 @@ void FileStorage::writeObj( const String& name, const void* obj )
cvWrite( fs, name.size() > 0 ? name.c_str() : 0, obj ); cvWrite( fs, name.size() > 0 ? name.c_str() : 0, obj );
} }
void FileStorage::write( const String& name, int val )
{
*this << name << val;
}
void FileStorage::write( const String& name, double val ) void FileStorage::write( const String& name, double val )
{ {
*this << name << val; *this << name << val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment