]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBoxDescriptor.h
Bug #1754
[bbtk.git] / kernel / src / bbtkBlackBoxDescriptor.h
index 1de5b8cea94c1aaaa8a15655963b4a9ed6d25a9b..97c57b88aea39df86e2b3d812deaec14dc062abc 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:12 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2012/11/14 07:12:00 $
+  Version:   $Revision: 1.12 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -79,6 +79,13 @@ namespace bbtk
     }
     Kind;
 
+       typedef enum
+       {
+               TS_BINARY=0,
+               TS_SCRIPT_COMPLEXBOX=1,
+               TS_SCRIPT_APPLICATION=2
+       } TypeOfScript;
+         
     /// Releases a descriptor
     //    static void Release(BlackBoxDescriptor::WeakPointer);
 
@@ -158,6 +165,35 @@ namespace bbtk
     ///
     virtual void Check(bool recursive=true) const;
 
+         
+         
+         /// Sets the name of the script file from which it is defined
+         void SetScriptFileName(const std::string& n) { mScriptFileName = n; }
+         /// Gets the name of the script file from which it is defined
+         std::string GetScriptFileName() const { return mScriptFileName; }
+         
+         
+         
+         
+         /// Gets the type of script  BINARY, SCRIPT_COMPLEXBOX, SCRIPT_APPLICATION 
+         TypeOfScript GetTypeOfScript()                        {       return mTypeOfScript;   };
+         void SetTypeOfScript(TypeOfScript type)       {       mTypeOfScript=type;             };        
+         bool IsTypeOfScript_Application();
+         bool IsTypeOfScript_ComplexBox();
+         void SetTypeOfScript_Application();
+         
+         
+         
+         
+  private:
+         
+         TypeOfScript mTypeOfScript;
+         
+         /// The name of the script file from which it was created
+         std::string mScriptFileName;
+         
+         
+         
   protected:
     /// Adds an input descriptor
     void AddInputDescriptor( BlackBoxInputDescriptor *d )