MCPcopy Create free account
hub / github.com/creatale/node-dv / icvXMLStartNextStream

Function icvXMLStartNextStream

deps/opencv/modules/core/src/persistence.cpp:2452–2470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2450
2451
2452static void
2453icvXMLStartNextStream( CvFileStorage* fs )
2454{
2455 if( !fs->is_first )
2456 {
2457 while( fs->write_stack->total > 0 )
2458 icvXMLEndWriteStruct(fs);
2459
2460 fs->struct_indent = 0;
2461 icvXMLFlush(fs);
2462 /* XML does not allow multiple top-level elements,
2463 so we just put a comment and continue
2464 the current (and the only) "stream" */
2465 icvPuts( fs, "\n<!-- next stream -->\n" );
2466 /*fputs( "</opencv_storage>\n", fs->file );
2467 fputs( "<opencv_storage>\n", fs->file );*/
2468 fs->buffer = fs->buffer_start;
2469 }
2470}
2471
2472
2473static void

Callers

nothing calls this directly

Calls 2

icvXMLEndWriteStructFunction · 0.85
icvPutsFunction · 0.85

Tested by

no test coverage detected