return false;
}
+// On verifie qu'un groupe n'est pas associe a deux frontieres differentes
if (CBBoundaryA->isChecked())
{
QStringList ListeGroup ;
}
}
+// Creation du cas
if (aCaseName != _aCaseName )
{
_aCaseName = aCaseName;
InitBoundarys();
}
+// Repertoire et type
aCase->SetDirName(aDirName.toStdString().c_str());
_aDirName=aDirName;
aCase->SetConfType(_ConfType);
+// Menage des eventuelles frontieres deja enregistrees
+ aCase->SupprBoundaryGroup() ;
+
// Enregistrement de la frontiere discrete
if (CBBoundaryD->isChecked())
{
return aResult._retn();
}
//=============================================================================
+void HOMARD_Cas_i::SupprBoundaryGroup()
+{
+ MESSAGE ("SupprBoundaryGroup");
+ ASSERT(myHomardCas );
+ myHomardCas->SupprBoundaryGroup();
+}
+//=============================================================================
void HOMARD_Cas_i::SetPyram( CORBA::Long Pyram )
{
MESSAGE ("SetPyram, Pyram = " << Pyram );
// A.1. Controle du repertoire de depart de l'iteration
#ifndef WIN32
codret = chdir(DirNameStart) ;
-#else
+#else
codret = _chdir(DirNameStart) ;
#endif
if ( codret != 0 )
}
}
closedir(dp);
-#else
+#else
HANDLE hFind = INVALID_HANDLE_VALUE;
WIN32_FIND_DATA ffd;
hFind = FindFirstFile(DirNameStart, &ffd);
}
}
FindClose(hFind);
- }
+ }
#endif
MESSAGE ( "==> file_configuration : " << file_configuration ) ;
MESSAGE ( "==> file_maillage_homard : " << file_maillage_homard ) ;
nomDirIterTotal = std::string(nomDirCase) + "/" + std::string(nomDirIter) ;
#ifndef WIN32
if (mkdir(nomDirIterTotal.c_str(), S_IRWXU|S_IRGRP|S_IXGRP) != 0)
-#else
+#else
if (_mkdir(nomDirIterTotal.c_str()) != 0)
#endif
{
HANDLE hFind1 = INVALID_HANDLE_VALUE;
WIN32_FIND_DATA ffd1;
hFind1 = FindFirstFile(DirName_1.c_str(), &ffd1);
- while (FindNextFile(hFind1, &ffd1) != 0)
+ while (FindNextFile(hFind1, &ffd1) != 0)
{
- if (ffd1.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) continue; //skip directories
+ if (ffd1.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) continue; //skip directories
std::string file_name_1(ffd1.cFileName);
-#endif
+#endif
int bilan = file_name_1.find("HOMARD.Configuration.") ;
if ( bilan != string::npos )
{
}
#ifndef WIN32
closedir(dp);
- chdir(nomDirWork.c_str());
+ chdir(nomDirWork.c_str());
#else
FindClose(hFind);
}
{
delete myDriver;
MESSAGE ( ". On retourne dans nomDirWork = " << nomDirWork );
-
+
#ifndef WIN32
chdir(nomDirWork.c_str());
#else
char* HOMARD_Gen_i::CreateDirNameIter(const char* nomrep, CORBA::Long num )
{
MESSAGE ( "CreateDirNameIter : nomrep ="<< nomrep << ", num = "<<num);
- // On verifie que le repertoire parent existe
+ // On verifie que le repertoire parent existe
#ifndef WIN32
int codret = chdir(nomrep) ;
#else
while ( a_chercher )
{
// On passe dans le repertoire parent
-
+
#ifndef WIN32
chdir(nomrep);
#else
while (FindNextFile(hFind, &ffd) != 0) {
if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) continue; //skip directories
std::string file_name(ffd.cFileName);
-#endif
+#endif
if ( file_name == DirNameA.str() ) { existe = true ; }
}
#ifndef WIN32
closedir(dp);
-#else
+#else
}
FindClose(hFind);
#endif
SALOMEDS::SObject_var aSubSO = aStudyBuilder->NewObject(aCaseSO);
aStudyBuilder->Addreference(aSubSO, aBoundarySO);
+// aStudyBuilder->RemoveReference(aSubSO);
aStudyBuilder->CommitCommand();