try
{
multipr::Obj multiprObj;
- multiprObj.create((const char*)theResult->GetFileInfoMultipr().absoluteFileName().toLatin1());
+ multiprObj.create((const char*)theResult->GetFileInfoMultipr().filePath().toLatin1());
if (multiprObj.isValidDistributedMEDFile())
{
theResult->SetIsDistributedMEDMultipr(true);
}
else {
#ifdef ENABLE_MULTIPR
- if (strlen((const char*)GetFileInfoMultipr().absoluteFilePath().toLatin1()) == 0)
+ if (strlen((const char*)GetFileInfoMultipr().filePath().toLatin1()) == 0)
#endif
{
// sequential MED file
throw std::runtime_error("distributed MED file; bad format");
//cout << "MULTIPR: original med file=" << originalMEDFileName << endl;
- myFileInfoMultipr.setFile(myFileInfo.absoluteFilePath());
+ myFileInfoMultipr.setFile(myFileInfo.filePath());
myFileInfo.setFile(originalMEDFileName);
}
else
myFileInfo.setFile(aFileName.c_str());
}
if(MYDEBUG)
- MESSAGE("Result_i::Restore - aFileName = " << (const char*)myFileInfo.absoluteFilePath().toLatin1() << "; " << myFileInfo.isFile());
+ MESSAGE("Result_i::Restore - aFileName = " << (const char*)myFileInfo.filePath().toLatin1() << "; " << myFileInfo.isFile());
- const char* aPathLatin = (const char*)myFileInfo.absoluteFilePath().toLatin1();
+ const char* aPathLatin = (const char*)myFileInfo.filePath().toLatin1();
if (HDFascii::isASCII(aPathLatin)) {
MESSAGE("ConvertFromASCIIToHDF(" << aPathLatin << ")");
char* aResultPath = HDFascii::ConvertFromASCIIToHDF(aPathLatin);
myFileInfo.setFile(QString(aResultPath) + QString(myFileInfo.baseName().toLatin1()));
} else { // change current temporary file to the new: with hdf-format
static QString aCommand;
- aCommand.sprintf(" %s %s\0",aHDFFileName, (const char*)myFileInfo.absoluteFilePath().toLatin1());
+ aCommand.sprintf(" %s %s\0",aHDFFileName, (const char*)myFileInfo.filePath().toLatin1());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( MOVE_COMMAND );
mySourceId = eFile;
}
if(MYDEBUG) MESSAGE("VISU::Result_i::Restore - mySourceId = " << mySourceId);
- myInput = CreateConvertor((const char*)myFileInfo.absoluteFilePath().toLatin1());
+ myInput = CreateConvertor((const char*)myFileInfo.filePath().toLatin1());
myInput->BuildEntities();
if(myIsBuildFields){
QString aComment;
aComment.sprintf("myComment=%s;myType=%d;myFileName=%s;myInitFileName=%s",
- GetComment(), VISU::TRESULT, (const char*)myFileInfo.absoluteFilePath().toLatin1(),
+ GetComment(), VISU::TRESULT, (const char*)myFileInfo.filePath().toLatin1(),
myInitFileName.c_str()); // Restoring of Python dump
SALOMEDS::GenericAttribute_var anAttr;
if (!theSObject->FindAttribute(anAttr, "AttributeString"))
if (mySourceId == eRestoredFile) {
static QString aCommand;
#ifndef WNT
- aCommand.sprintf("rm %s",(const char*)myFileInfo.absoluteFilePath().toLatin1());
+ aCommand.sprintf("rm %s",(const char*)myFileInfo.filePath().toLatin1());
#else
- aCommand.sprintf("del /F %s",(const char*)myFileInfo.absoluteFilePath().toLatin1());
+ aCommand.sprintf("del /F %s",(const char*)myFileInfo.filePath().toLatin1());
#endif
int res = system((const char*)aCommand.toLatin1());
MESSAGE("Result_i::~Result_i - system("<<(const char*)aCommand.toLatin1()<<") = "<<res);
#ifndef WNT
- aCommand.sprintf("rmdir --ignore-fail-on-non-empty %s",(const char*)myFileInfo.absolutePath().toLatin1());
+ aCommand.sprintf("rmdir --ignore-fail-on-non-empty %s",(const char*)myFileInfo.path().toLatin1());
#else
- aCommand.sprintf("del /F %s",(const char*)myFileInfo.absolutePath().toLatin1());
+ aCommand.sprintf("del /F %s",(const char*)myFileInfo.path().toLatin1());
#endif
res = system((const char*)aCommand.toLatin1());