]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Thu, 13 Jan 2000 17:59:02 +0000 (17:59 +0000)
committercas <cas@opencascade.com>
Thu, 13 Jan 2000 17:59:02 +0000 (17:59 +0000)
src/WOKStep/WOKStep_ClientExtract.cdl
src/WOKStep/WOKStep_ClientExtract.cxx
src/WOKStep/WOKStep_DynamicLibrary.cxx
src/WOKStep/WOKStep_JiniExtract.cdl
src/WOKStep/WOKStep_JiniExtract.cxx
src/WOKStep/WOKStep_MSStep.cdl
src/WOKStep/WOKStep_MSStep.cxx

index 2bac9a1bc29a634e2dc5c154b460c73597eb1901..eacc22b345002c9956d5f3af09270e109beda0e2 100755 (executable)
@@ -28,7 +28,7 @@ is
           checked, hidden : Boolean  from Standard) 
        returns mutable ClientExtract from WOKStep;
 
-    HandleInputFile(me; infile : InputFile from WOKMake)
+    HandleInputFile(me:mutable; infile : InputFile from WOKMake)
        returns Boolean from Standard;
 
     Init(me:mutable)
index 9d9e226b77298c9d4c7f13d4b6e63df1f980a5ea..dd9b1f19364f3c70b689ec947680b9e50f830326 100755 (executable)
@@ -3,6 +3,7 @@
 // Author:     Jean GAUTIER
 //             <jga@cobrax>
 
+#include <Standard_NotImplemented.hxx>
 
 #include <Standard_ProgramError.hxx>
 
@@ -53,7 +54,7 @@ WOKStep_ClientExtract::WOKStep_ClientExtract(const Handle(WOKMake_BuildProcess)&
 //function : HandleInputFile
 //purpose  : 
 //=======================================================================
-Standard_Boolean WOKStep_ClientExtract::HandleInputFile(const Handle(WOKMake_InputFile)& infile) const
+Standard_Boolean WOKStep_ClientExtract::HandleInputFile(const Handle(WOKMake_InputFile)& infile)
 {
    if(!infile->IsPhysic())
     {
index 5520314e9215cff80f5df3190a5a9bbb12e58ea5..2d2d253981560fdba4e51675beccde99e672111c 100755 (executable)
@@ -138,7 +138,27 @@ void WOKStep_DynamicLibrary::Execute(const Handle(WOKMake_HSequenceOfInputFile)&
 
   Handle(WOKUtils_Shell) ashell = Shell();
 
+//--> EUG4YAN
+  bidname = new TCollection_HAsciiString (  Unit () -> Name ()  );
+  bidname -> AssignCat ( ".lnk" );
+  
+  Handle( WOKernel_File ) lnkfile = new WOKernel_File (  bidname, Unit (), stadmtype  );
+  lnkfile -> GetPath ();
+
+  if (  lnkfile -> Path () -> Exists ()  ) lnkfile -> Path () -> RemoveFile ();
+
+  if (  !lnkfile -> Path () -> CreateFile ()  )
+
+   ErrorMsg << "WOKStep_Link::ExecuteLink" 
+            << "Unable to create link file '"
+            << lnkfile -> Path () -> Name () -> ToCString ()
+            << "'" << endm;
+//<-- EUG4YAN
+
   ashell->Lock();
+//--> EUG4YAN
+  ashell -> LogInFile (  lnkfile -> Path ()  );
+//<-- EUG4YAN
   ldshr->SetShell(ashell);
   
   ldshr->SetOutputDir(OutputDir());
index ffd9c907a9ea8a7af272a83ef43bf1a8c7e68d17..c1123eb553ade4d2ca1ca1dfa67064e174a1be4d 100755 (executable)
@@ -28,8 +28,12 @@ is
           checked, hidden : Boolean  from Standard) 
        returns mutable JiniExtract from WOKStep;
 
-    HandleInputFile(me; infile : InputFile from WOKMake)
-       returns Boolean from Standard;
+    HandleInputFile(me:mutable; item : InputFile from WOKMake) 
+       returns Boolean from Standard
+       is redefined protected;
+
+    --HandleInputFile(me; infile : InputFile from WOKMake)
+    -- returns Boolean from Standard;
 
     Init(me:mutable)
        is redefined protected;
index 0271ef193d34d28af9fe9588370699bc1b6e8433..2c43e01e47c0414a10c15f7fc35df5cb717e4b74 100755 (executable)
@@ -4,6 +4,8 @@
 // Author:     Arnaud BOUZY
 //             <adn>
 
+#include <Standard_NotImplemented.hxx>
+
 #include <Standard_ProgramError.hxx>
 
 #include <WOKTools_Messages.hxx>
@@ -53,7 +55,7 @@ WOKStep_JiniExtract::WOKStep_JiniExtract(const Handle(WOKMake_BuildProcess)& abp
 //function : HandleInputFile
 //purpose  : 
 //=======================================================================
-Standard_Boolean WOKStep_JiniExtract::HandleInputFile(const Handle(WOKMake_InputFile)& infile) const
+Standard_Boolean WOKStep_JiniExtract::HandleInputFile(const Handle(WOKMake_InputFile)& infile)
 {
    if(!infile->IsPhysic())
     {
@@ -392,3 +394,4 @@ void WOKStep_JiniExtract::Execute(const Handle(WOKMake_HSequenceOfInputFile)& to
   if(Status() == WOKMake_Unprocessed) SetSucceeded();
   return;
 }
+
index c8dae14094aa01dcb717deb759381f7224a74223..de4820ad2bfff4bcdbd87fa17e135d287707f028 100755 (executable)
@@ -14,6 +14,7 @@ uses
     DevUnit      from WOKernel,
     File         from WOKernel,
     Entity       from WOKBuilder,
+    Path         from WOKUtils,
     HAsciiString from TCollection
 
 is
@@ -29,4 +30,8 @@ is
     ---Purpose: Adds an entity to the known entity list
     --          (one more time)
 
+    BuilderEntity(me; apath : Path from WOKUtils)
+       returns mutable Entity from WOKBuilder
+       is redefined protected;
+
 end MSStep;
index 857fe8a0d33f5440f0e6a1f43c13e2ea285cc573..a0421803bbdbc258468b57a519872498738e1c76 100755 (executable)
@@ -3,7 +3,7 @@
 // Author:     Jean GAUTIER
 //             <jga@cobrax>
 
-
+#include <Standard_NotImplemented.hxx>
 
 #include <WOKTools_Messages.hxx>
 
@@ -51,3 +51,9 @@ Handle(WOKBuilder_Entity) WOKStep_MSStep::BuilderEntity(const Handle(WOKernel_Fi
   return entity;
 }
 
+Handle_WOKBuilder_Entity WOKStep_MSStep::BuilderEntity(const Handle_WOKUtils_Path&) const
+{
+ Handle_WOKBuilder_Entity aHandle_WOKBuilder_Entity ;
+ Standard_NotImplemented::Raise("WOKStep_MSStep::BuilderEntity(const Handle_WOKUtils_Path&) not implemented") ;
+ return aHandle_WOKBuilder_Entity ;
+}