]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Mon, 17 Jul 2000 18:15:09 +0000 (18:15 +0000)
committercas <cas@opencascade.com>
Mon, 17 Jul 2000 18:15:09 +0000 (18:15 +0000)
src/WOKernel/WOKernel.cdl
src/WOKernel/WOKernel_Session.cxx
src/WOKernel/WOKernel_Station.cxx
src/WOKernel/WOKernel_Workshop.cxx

index cacaac43124039cd005437e47125d5862daaf708..f7d55cc065612d89fab3cd91015c8906d2b7a3c9 100755 (executable)
@@ -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;
index dab0b2cb08fbee5f5c757b4770525159ce5acbd6..d1dff6ad2f23ea6d3750828b7107412049cc7f0d 100755 (executable)
@@ -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");
index 0403b8f0aa1112add0f53b21bd8e49d3e9795e1e..92d6cb997822b3e789ec8210428ef198863a6801 100755 (executable)
@@ -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;
     }
index c4e5019f199c31dc188ebeb4455665f5657c3569..f00ae11f1c4317fcbca36da32f3170a764409a36 100755 (executable)
@@ -24,6 +24,9 @@
 #include <TColStd_HSequenceOfHAsciiString.hxx>
 #include <TColStd_HSequenceOfAsciiString.hxx>
 
+#include <OSD_File.hxx>
+#include <OSD_Protection.hxx>
+
 //=======================================================================
 //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