-- 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;
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");
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");
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;
}
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)
return SMAC;
case WOKernel_LIN:
return SLIN;
+ case WOKernel_AIX:
+ return SAIX;
+ break;
default:
break;
}
#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
} // 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