From: cas Date: Mon, 17 Jul 2000 18:15:09 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=87166b84a8283d00d42f9bf74c2b3c04e3b1dcd2;p=occt-wok.git No comments --- diff --git a/src/WOKernel/WOKernel.cdl b/src/WOKernel/WOKernel.cdl index cacaac4..f7d55cc 100755 --- a/src/WOKernel/WOKernel.cdl +++ b/src/WOKernel/WOKernel.cdl @@ -31,7 +31,7 @@ is -- ENUMERATIONS - enumeration StationID is SUN, DECOSF, SGI, HP, WNT, MAC, LIN, UnknownStation; + enumeration StationID is SUN, DECOSF, SGI, HP, WNT, MAC, LIN, AIX, UnknownStation; ---Purpose: liste les stations supportees par WOK enumeration DBMSID is DFLT, OBJY, OBJS, UnknownDBMS; diff --git a/src/WOKernel/WOKernel_Session.cxx b/src/WOKernel/WOKernel_Session.cxx index dab0b2c..d1dff6a 100755 --- a/src/WOKernel/WOKernel_Session.cxx +++ b/src/WOKernel/WOKernel_Session.cxx @@ -199,6 +199,9 @@ void WOKernel_Session::Open(const Handle(TCollection_HAsciiString)& aroot, const case OSD_LIN: thestation = WOKernel_LIN; break; + case OSD_AIX: + thestation = WOKernel_AIX; + break; default: ErrorMsg << "WOKernel_Session::Open" << "Unrecognized Type of host " << ahost.HostName().ToCString() << endm; Standard_Failure::Raise("WOKernel_Session::Open"); diff --git a/src/WOKernel/WOKernel_Station.cxx b/src/WOKernel/WOKernel_Station.cxx index 0403b8f..92d6cb9 100755 --- a/src/WOKernel/WOKernel_Station.cxx +++ b/src/WOKernel/WOKernel_Station.cxx @@ -21,6 +21,7 @@ WOKernel_StationID WOKernel_Station::GetID(const Handle(TCollection_HAsciiString if( !strcmp( astring->ToCString(), "wnt" ) ) return WOKernel_WNT; if( !strcmp( astring->ToCString(), "mac" ) ) return WOKernel_MAC; if( !strcmp( astring->ToCString(), "lin" ) ) return WOKernel_LIN; + if( !strcmp( astring->ToCString(), "aix" ) ) return WOKernel_AIX; ErrorMsg << "WOKernel_Station::GetID" << "Station " << astring << " is unknown to WOK" << endm; Standard_ProgramError::Raise("WOKernel_Station::GetID"); @@ -40,6 +41,7 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt if( !strcmp( astring->ToCString(), "wnt" ) ) return Standard_True; if( !strcmp( astring->ToCString(), "mac" ) ) return Standard_True; if( !strcmp( astring->ToCString(), "lin" ) ) return Standard_True; + if( !strcmp( astring->ToCString(), "aix" ) ) return Standard_True; return Standard_False; } @@ -57,6 +59,7 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt static Handle(TCollection_HAsciiString) SWNT = new TCollection_HAsciiString("wnt"); static Handle(TCollection_HAsciiString) SMAC = new TCollection_HAsciiString("mac"); static Handle(TCollection_HAsciiString) SLIN = new TCollection_HAsciiString("lin"); + static Handle(TCollection_HAsciiString) SAIX = new TCollection_HAsciiString("aix"); static Handle(TCollection_HAsciiString) SUNKNOWN = new TCollection_HAsciiString("UnknownStation"); switch(anid) @@ -75,6 +78,9 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt return SMAC; case WOKernel_LIN: return SLIN; + case WOKernel_AIX: + return SAIX; + break; default: break; } diff --git a/src/WOKernel/WOKernel_Workshop.cxx b/src/WOKernel/WOKernel_Workshop.cxx index c4e5019..f00ae11 100755 --- a/src/WOKernel/WOKernel_Workshop.cxx +++ b/src/WOKernel/WOKernel_Workshop.cxx @@ -24,6 +24,9 @@ #include #include +#include +#include + //======================================================================= //function : WOKernel_Workshop //purpose : instantiates a Workshop (does not open It @@ -432,6 +435,12 @@ void WOKernel_Workshop :: DumpWorkbenchList () const { } // end for + astream.close (); + OSD_File aFile ( OSD_Path ( anOldPath -> ToCString () ) ); + + aFile.SetProtection ( OSD_Protection ( OSD_RW, OSD_RW, OSD_RW, OSD_RW ) ); + + } // end WOKernel_Workshop :: DumpWorkbenchList //======================================================================= //function : AddWorkbench