cmProc2.h/c : Added cmVectArrayWriteDirFn().

This commit is contained in:
kevin 2015-07-16 19:01:37 -04:00
parent 7fd6ee2cc0
commit a59041336a
2 changed files with 10 additions and 1 deletions

View File

@ -3997,6 +3997,14 @@ cmRC_t cmVectArrayWrite( cmVectArray_t* p, const char* fn )
return rc;
}
cmRC_t cmVectArrayWriteDirFn(cmVectArray_t* p, const char* dir, const char* fn )
{
assert( dir!=NULL && fn!=NULL );
const cmChar_t* path = cmFsMakeFn( dir, fn, NULL, NULL );
cmRC_t rc = cmVectArrayWrite(p,path);
cmFsFreeFn(path);
return rc;
}
cmRC_t cmVectArrayPrint( cmVectArray_t* p, cmRpt_t* rpt )
{

View File

@ -853,7 +853,8 @@ extern "C" {
cmRC_t cmVectArrayAppendU( cmVectArray_t* p, const unsigned* v, unsigned vn );
// Write a vector array in a format that can be read by readVectArray.m.
cmRC_t cmVectArrayWrite( cmVectArray_t* p, const char* fn );
cmRC_t cmVectArrayWrite( cmVectArray_t* p, const char* fn );
cmRC_t cmVectArrayWriteDirFn(cmVectArray_t* p, const char* dir, const char* fn );
// Print the vector array to rpt.
cmRC_t cmVectArrayPrint( cmVectArray_t* p, cmRpt_t* rpt );