]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkVirtualExec.h
Fixed :
[bbtk.git] / kernel / src / bbtkVirtualExec.h
index 1bb48a94fab0729263345db374c2202d34eee9a8..cb980627b859bc6687c61344d6ef456a76eb3254 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkVirtualExec.h,v $ $
   Language:  C++
-  Date:      $Date: 2008/03/07 08:40:14 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/03/26 08:27:19 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -76,6 +76,13 @@ namespace bbtk
     /// Sets the mode of dialog of the executer for Root inputs 
     virtual void SetDialogMode(DialogModeType t) = 0;
 
+    //=================================================================
+   /// Loads a package
+    virtual void LoadPackage(const std::string &name ) = 0;
+
+    /// Unloads a package
+    virtual void UnLoadPackage(const std::string &name ) = 0;
+
     /// Starts a package block 
     virtual void BeginPackage (const std::string &name ) = 0;
 
@@ -100,7 +107,7 @@ namespace bbtk
     boxName) = 0;
 
     /// Destroys a black box
-    //virtual void Destroy (const std::string &boxName) = 0;
+    virtual void Destroy (const std::string &boxName) = 0;
 
     /// Connects the output boxOutput to the input boxInput
     virtual void Connect (const std::string &boxfrom,
@@ -108,9 +115,8 @@ namespace bbtk
                  const std::string &boxto,
                  const std::string &input) = 0;
 
-    /// Updates the box 
-    /// would 'Execute' be more meaningfull ?
-    virtual void Update (const std::string &box) = 0;
+    /// Executes the box 
+    virtual void Execute (const std::string &box) = 0;
 
     /// Defines an input of the current complex box
     virtual void DefineInput (const std::string &name,
@@ -160,12 +166,21 @@ namespace bbtk
    /// Generate a HTML with a gif file with the actual pipeline (Graphviz-dot needed). Returns the file path
     virtual std::string ShowGraphInstances(const std::string &nameblackbox, int detail, int level, bool system_display=true) = 0;
 
-   /// Description of the actual pipeline
-       virtual void ShowRelations(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr) = 0;
-
-       virtual void Reset() = 0;
+    /// Description of the actual pipeline
+    virtual void ShowRelations(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr) = 0;
+    
+    virtual void Reset() = 0;
+    
+    /// Sets the level of message for kind
+    virtual void SetMessageLevel(const std::string &kind, int level) = 0,;
+    
+    /// Prints help on the messages
+    virtual void HelpMessages() = 0;
 
+    /// Prints the string ... MORE : TO EXPLAIN 
+    virtual void Print(const std::string & message) = 0;
 
+    
   //  static const std::string& GetObjectDescription() = 0;
   //  { static std::string s("VirtualExec"); return s; }
   protected: