| 3470 | |
| 3471 | |
| 3472 | CV_IMPL void |
| 3473 | cvWriteFileNode( CvFileStorage* fs, const char* new_node_name, |
| 3474 | const CvFileNode* node, int embed ) |
| 3475 | { |
| 3476 | CvFileStorage* dst = 0; |
| 3477 | CV_CHECK_OUTPUT_FILE_STORAGE(fs); |
| 3478 | |
| 3479 | if( !node ) |
| 3480 | return; |
| 3481 | |
| 3482 | if( CV_NODE_IS_COLLECTION(node->tag) && embed ) |
| 3483 | { |
| 3484 | icvWriteCollection( fs, node ); |
| 3485 | } |
| 3486 | else |
| 3487 | { |
| 3488 | icvWriteFileNode( fs, new_node_name, node ); |
| 3489 | } |
| 3490 | /* |
| 3491 | int i, stream_count; |
| 3492 | stream_count = fs->roots->total; |
| 3493 | for( i = 0; i < stream_count; i++ ) |
| 3494 | { |
| 3495 | CvFileNode* node = (CvFileNode*)cvGetSeqElem( fs->roots, i, 0 ); |
| 3496 | icvDumpCollection( dst, node ); |
| 3497 | if( i < stream_count - 1 ) |
| 3498 | dst->start_next_stream( dst ); |
| 3499 | }*/ |
| 3500 | cvReleaseFileStorage( &dst ); |
| 3501 | } |
| 3502 | |
| 3503 | |
| 3504 | CV_IMPL const char* |
nothing calls this directly
no test coverage detected