]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkTranscriptor.cxx
Feature #1774
[bbtk.git] / kernel / src / bbtkTranscriptor.cxx
index fb047d94b5f2d741b00a7a6bd12d9430c8174fcd..f425a0eb07be0e22eaebdaa1307fd29fbcec167f 100644 (file)
@@ -1,32 +1,39 @@
-/*=========================================================================                                                                               
+/*
+ # ---------------------------------------------------------------------
+ #
+ # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+ #                        pour la SantÈ)
+ # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+ # Previous Authors : Laurent Guigues, Jean-Pierre Roux
+ # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+ #
+ #  This software is governed by the CeCILL-B license under French law and
+ #  abiding by the rules of distribution of free software. You can  use,
+ #  modify and/ or redistribute the software under the terms of the CeCILL-B
+ #  license as circulated by CEA, CNRS and INRIA at the following URL
+ #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+ #  or in the file LICENSE.txt.
+ #
+ #  As a counterpart to the access to the source code and  rights to copy,
+ #  modify and redistribute granted by the license, users are provided only
+ #  with a limited warranty  and the software's author,  the holder of the
+ #  economic rights,  and the successive licensors  have only  limited
+ #  liability.
+ #
+ #  The fact that you are presently reading this means that you have had
+ #  knowledge of the CeCILL-B license and that you accept its terms.
+ # ------------------------------------------------------------------------ */
+
+
+/*=========================================================================
   Program:   bbtk
   Module:    $RCSfile: bbtkTranscriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:14 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2012/11/16 08:49:01 $
+  Version:   $Revision: 1.19 $
 =========================================================================*/
 
-/* ---------------------------------------------------------------------
-
-* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
-* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
-*
-*  This software is governed by the CeCILL-B license under French law and 
-*  abiding by the rules of distribution of free software. You can  use, 
-*  modify and/ or redistribute the software under the terms of the CeCILL-B 
-*  license as circulated by CEA, CNRS and INRIA at the following URL 
-*  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
-*  or in the file LICENSE.txt.
-*
-*  As a counterpart to the access to the source code and  rights to copy,
-*  modify and redistribute granted by the license, users are provided only
-*  with a limited warranty  and the software's author,  the holder of the
-*  economic rights,  and the successive licensors  have only  limited
-*  liability. 
-*
-*  The fact that you are presently reading this means that you have had
-*  knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */                                                                         
+
 
 /**
  *  \file 
@@ -62,7 +69,7 @@ namespace bbtk
       mDialogMode(NoDialog)
   {
     //VirtualExec();    
-    bbtkDebugMessageInc("Kernel",9,"Transcriptor::Transcriptor()" <<std::endl);
+    bbtkDebugMessageInc("kernel",9,"Transcriptor()" <<std::endl);
  
      //std::ofstream *m_Fp = new std::ofstream();
     m_Fp.open (filename.c_str(), std::ios::out );
@@ -102,7 +109,7 @@ namespace bbtk
     m_Fp << "  bbtk::Executer *e = new bbtk::Executer();"   << std::endl;
 #endif 
     */
-    bbtkDebugDecTab("Kernel",9);
+    bbtkDebugDecTab("kernel",9);
  }
 
 /**
@@ -111,7 +118,7 @@ namespace bbtk
   Transcriptor::~Transcriptor()
   {
   
-    bbtkDebugMessageInc("Kernel",9,"Transcriptor::~Transcriptor()" <<std::endl);
+    bbtkDebugMessageInc("kernel",9,"~Transcriptor()" <<std::endl);
     /*
 #ifdef _USE_WXWIDGETS_
     m_Fp << "  }"<<std::endl;
@@ -129,7 +136,7 @@ namespace bbtk
     m_Fp << "}"   << std::endl;
     m_Fp.close();
 
-    bbtkDebugDecTab("Kernel",9);
+    bbtkDebugDecTab("kernel",9);
   }
   
 
@@ -138,6 +145,11 @@ namespace bbtk
      m_Fp << "  e->Reset( );" << std::endl;
   }
 
+  void Transcriptor::Clear()
+  {
+     m_Fp << "  e->Clear( );" << std::endl;
+  }
+
   void Transcriptor::SetWorkspaceName( const std::string& name )
   {
   
@@ -264,7 +276,7 @@ namespace bbtk
   }
 
   /// prints the list of the boxes of the current descriptor
-  void Transcriptor::PrintBoxes()
+  void Transcriptor::PrintHelpListBoxes()
   {
      m_Fp << "  e->PrintBoxes( );" << std::endl;
  }
@@ -296,7 +308,7 @@ namespace bbtk
   
   }
 
-void Transcriptor::ShowRelations(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr)
+void Transcriptor::PrintHelpBlackBox(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr)
   {
      
   }
@@ -370,5 +382,12 @@ size_t  Transcriptor::GetObjectInternalSize() const
   }
   //==========================================================================
 
+       
+  //==========================================================================
+       void Transcriptor::SetTypeOfScript_Application()
+       {
+       }
+  //==========================================================================
+
 
 }//namespace