]> OCCT Git - occt-wok.git/commitdiff
Initial revision
authorcascade <cascade@opencascade.com>
Fri, 9 Feb 2007 20:13:22 +0000 (20:13 +0000)
committercascade <cascade@opencascade.com>
Fri, 9 Feb 2007 20:13:22 +0000 (20:13 +0000)
src/WOKBuilder/WOKBuilder_ManifestLibrary.cdl [new file with mode: 0755]
src/WOKBuilder/WOKBuilder_ManifestLibrary.cxx [new file with mode: 0755]

diff --git a/src/WOKBuilder/WOKBuilder_ManifestLibrary.cdl b/src/WOKBuilder/WOKBuilder_ManifestLibrary.cdl
new file mode 100755 (executable)
index 0000000..2255924
--- /dev/null
@@ -0,0 +1,32 @@
+-- File:       WOKBuilder_ManifestLibrary.cdl
+-- Created:    Wed Oct 26 09:29:38 2006
+-- Author:     MATVEYEV Ilya
+--             <imv@cascadex>
+---Copyright:   Open CASCADE S.A. 2006
+
+class ManifestLibrary from WOKBuilder inherits Library from WOKBuilder
+
+ uses
+    
+    Path             from WOKUtils, 
+    Param            from WOKUtils,
+    LibReferenceType from WOKBuilder,
+    HAsciiString     from TCollection
+
+ is
+
+    Create (apth  : Path from WOKUtils ) 
+     returns mutable ManifestLibrary from WOKBuilder;
+
+    Create (
+     aname    : HAsciiString     from TCollection; 
+     adir     : Path             from WOKUtils; 
+     areftype : LibReferenceType from WOKBuilder
+    ) returns mutable ManifestLibrary from WOKBuilder;
+
+    GetLibFileName (
+     me     : mutable;
+     params : Param  from  WOKUtils
+    ) returns HAsciiString from TCollection is redefined static;
+  
+end ManifestLibrary;
diff --git a/src/WOKBuilder/WOKBuilder_ManifestLibrary.cxx b/src/WOKBuilder/WOKBuilder_ManifestLibrary.cxx
new file mode 100755 (executable)
index 0000000..38d0155
--- /dev/null
@@ -0,0 +1,23 @@
+#include <WOKBuilder_ManifestLibrary.ixx>
+
+WOKBuilder_ManifestLibrary :: WOKBuilder_ManifestLibrary (
+                             const Handle( WOKUtils_Path )& apath
+                            ) : WOKBuilder_Library ( apath ) {
+}  // end constructor ( 1 )
+
+WOKBuilder_ManifestLibrary :: WOKBuilder_ManifestLibrary (
+                             const Handle( TCollection_HAsciiString )& aname, 
+                                                    const Handle( WOKUtils_Path )&            adir, 
+                                                    const WOKBuilder_LibReferenceType         areftype
+                            ) : WOKBuilder_Library ( aname, adir, areftype ) {
+}  // end constructor ( 2 )
+
+Handle( TCollection_HAsciiString ) WOKBuilder_ManifestLibrary :: GetLibFileName (
+                                                                const WOKUtils_Param& params
+                                                               ) {
+
+ params.Set (  "%LIB_ManifestName", Name () -> ToCString ()  );
+
+ return params.Eval ( "LIB_ManifestFileName", Standard_True );
+
+}  // end WOKBuilder_ManifestLibrary :: GetLibFileName