Adapt Export/Import functions for plugins

This commit is contained in:
abd 2006-04-04 08:29:25 +00:00
parent b3b8bbad36
commit 184e55bf08
2 changed files with 12 additions and 7 deletions

View File

@ -1,14 +1,14 @@
Import: BREP|IGES|STEP Import: BREP|IGES|STEP
Export: BREP|IGES|STEP Export: BREP|IGES|STEP
BREP.Import: libBREPImport.so BREP.Import: libBREPImport
BREP.Export: libBREPExport.so BREP.Export: libBREPExport
BREP.Pattern: BREP Files ( *.brep ) BREP.Pattern: BREP Files ( *.brep )
IGES.Import: libIGESImport.so IGES.Import: libIGESImport
IGES.Export: libIGESExport.so IGES.Export: libIGESExport
IGES.Pattern: IGES Files ( *.iges *.igs ) IGES.Pattern: IGES Files ( *.iges *.igs )
STEP.Import: libSTEPImport.so STEP.Import: libSTEPImport
STEP.Export: libSTEPExport.so STEP.Export: libSTEPExport
STEP.Pattern: STEP Files ( *.step *.stp ) STEP.Pattern: STEP Files ( *.step *.stp )

View File

@ -352,7 +352,12 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
aKey += "."; aKey += ".";
aKey += aMode; aKey += aMode;
if (myResMgr->Find(aKey.ToCString())) { if (myResMgr->Find(aKey.ToCString())) {
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString())); TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
#ifndef WNT
aLibName += ".so";
#else
aLibName += ".dll";
#endif
theLibName = new TCollection_HAsciiString (aLibName); theLibName = new TCollection_HAsciiString (aLibName);
return Standard_True; return Standard_True;
} }