aFileName += "_HOMARD.dat";
// initialize sequence of file names
- SALOMEDS::ListOfFileNames_var aFileSeq = new SALOMEDS::ListOfFileNames;
- aFileSeq->length(1);
- aFileSeq[0] = CORBA::string_dup(aFileName.c_str()) ;
+ SALOMEDS_Tool::ListOfFiles aFileSeq;
+ aFileSeq.reserve(1);
+ aFileSeq.push_back(CORBA::string_dup(aFileName.c_str())) ;
// get full path to the data file
aFileName = tmpDir + aFileName;
// put temporary files to the stream
MESSAGE ("put temporary files to the stream");
- aStreamFile = SALOMEDS_Tool::PutFilesToStream(tmpDir.c_str(), aFileSeq.in(), isMultiFile);
+ aStreamFile = SALOMEDS_Tool::PutFilesToStream(tmpDir.c_str(), aFileSeq, isMultiFile);
// remove temporary files
MESSAGE ("remove temporary files");
- if (!isMultiFile) SALOMEDS_Tool::RemoveTemporaryFiles(tmpDir.c_str(), aFileSeq.in(), true);
+ if (!isMultiFile) SALOMEDS_Tool::RemoveTemporaryFiles(tmpDir.c_str(), aFileSeq, true);
// return data stream
MESSAGE ("return data stream");
std::string tmpDir = isMultiFile ? std::string(theURL) : SALOMEDS_Tool::GetTmpDir();
// Convert the stream into sequence of files to process
- SALOMEDS::ListOfFileNames_var aFileSeq = SALOMEDS_Tool::PutStreamToFiles(theStream,
- tmpDir.c_str(),
- isMultiFile);
+ SALOMEDS_Tool::ListOfFiles aFileSeq = SALOMEDS_Tool::PutStreamToFiles(theStream,
+ tmpDir.c_str(),
+ isMultiFile);
// HOMARD data file name
std::string aFileName = "";
if (isMultiFile)
// Remove temporary files created from the stream
if (!isMultiFile)
- SALOMEDS_Tool::RemoveTemporaryFiles(tmpDir.c_str(), aFileSeq.in(), true);
+ SALOMEDS_Tool::RemoveTemporaryFiles(tmpDir.c_str(), aFileSeq, true);
return true;
};