From: cas Date: Wed, 3 Nov 1999 18:05:01 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6398c66c604bf0b24ce29da5806ae576af3836bb;p=occt-wok.git No comments --- diff --git a/src/WOKernel/WOKernel.cdl b/src/WOKernel/WOKernel.cdl index 35b8ed4..cacaac4 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, UnknownStation; + enumeration StationID is SUN, DECOSF, SGI, HP, WNT, MAC, LIN, UnknownStation; ---Purpose: liste les stations supportees par WOK enumeration DBMSID is DFLT, OBJY, OBJS, UnknownDBMS; diff --git a/src/WOKernel/WOKernel_DevUnit.cxx b/src/WOKernel/WOKernel_DevUnit.cxx index 110c137..f86831a 100755 --- a/src/WOKernel/WOKernel_DevUnit.cxx +++ b/src/WOKernel/WOKernel_DevUnit.cxx @@ -41,6 +41,10 @@ #define WOK_DEPCOMPAT 1 #endif +#ifdef LIN +# include +#endif // LIN + //======================================================================= //function : WOKernel_DevUnit //purpose : diff --git a/src/WOKernel/WOKernel_Factory.cxx b/src/WOKernel/WOKernel_Factory.cxx index 6866fa1..351bae8 100755 --- a/src/WOKernel/WOKernel_Factory.cxx +++ b/src/WOKernel/WOKernel_Factory.cxx @@ -20,6 +20,10 @@ #include +#ifdef LIN +# include +#endif // LIN + //======================================================================= //function : WOKernel_Factory //purpose : Factory constructor diff --git a/src/WOKernel/WOKernel_Parcel.cxx b/src/WOKernel/WOKernel_Parcel.cxx index b725581..dba4a5c 100755 --- a/src/WOKernel/WOKernel_Parcel.cxx +++ b/src/WOKernel/WOKernel_Parcel.cxx @@ -24,6 +24,10 @@ #include +#ifdef LIN +# include +#endif // LIN + //======================================================================= //function : WOKernel_Parcel //purpose : instantiates a parcel diff --git a/src/WOKernel/WOKernel_Session.cxx b/src/WOKernel/WOKernel_Session.cxx index 47f8543..4da4a17 100755 --- a/src/WOKernel/WOKernel_Session.cxx +++ b/src/WOKernel/WOKernel_Session.cxx @@ -33,6 +33,10 @@ #include #include +#ifdef LIN +# include +#endif // LIN + //======================================================================= //function : WOKernel_Session //purpose : @@ -193,6 +197,9 @@ void WOKernel_Session::Open(const Handle(TCollection_HAsciiString)& aroot, const case OSD_PC: thestation = WOKernel_WNT; break; + case OSD_LIN: + thestation = WOKernel_LIN; + 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 c695513..0403b8f 100755 --- a/src/WOKernel/WOKernel_Station.cxx +++ b/src/WOKernel/WOKernel_Station.cxx @@ -20,6 +20,7 @@ WOKernel_StationID WOKernel_Station::GetID(const Handle(TCollection_HAsciiString if( !strcmp( astring->ToCString(), "hp" ) ) return WOKernel_HP; if( !strcmp( astring->ToCString(), "wnt" ) ) return WOKernel_WNT; if( !strcmp( astring->ToCString(), "mac" ) ) return WOKernel_MAC; + if( !strcmp( astring->ToCString(), "lin" ) ) return WOKernel_LIN; ErrorMsg << "WOKernel_Station::GetID" << "Station " << astring << " is unknown to WOK" << endm; Standard_ProgramError::Raise("WOKernel_Station::GetID"); @@ -38,6 +39,7 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt if( !strcmp( astring->ToCString(), "hp" ) ) return Standard_True; if( !strcmp( astring->ToCString(), "wnt" ) ) return Standard_True; if( !strcmp( astring->ToCString(), "mac" ) ) return Standard_True; + if( !strcmp( astring->ToCString(), "lin" ) ) return Standard_True; return Standard_False; } @@ -54,6 +56,7 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt static Handle(TCollection_HAsciiString) SHP = new TCollection_HAsciiString("hp"); 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) SUNKNOWN = new TCollection_HAsciiString("UnknownStation"); switch(anid) @@ -70,6 +73,8 @@ Standard_Boolean WOKernel_Station::IsNameKnown(const Handle(TCollection_HAsciiSt return SWNT; case WOKernel_MAC: return SMAC; + case WOKernel_LIN: + return SLIN; default: break; } diff --git a/src/WOKernel/WOKernel_Workbench.cxx b/src/WOKernel/WOKernel_Workbench.cxx index 7d25d6f..bdebabe 100755 --- a/src/WOKernel/WOKernel_Workbench.cxx +++ b/src/WOKernel/WOKernel_Workbench.cxx @@ -4,7 +4,7 @@ // #include - + #include #include @@ -23,6 +23,10 @@ #include #include +#ifdef LIN +# include +#endif // LIN + //======================================================================= //function : WOKernel_Workbench //purpose : instantiates a Workbench