]> Creatis software - clitk.git/blobdiff - common/clitkFilterBase.h
Merge branch 'master' of https://github.com/open-vv/vv
[clitk.git] / common / clitkFilterBase.h
index 29caaf08d94fccb6fbe5d6c46410f7c6fb231d9c..1019b7b76aa49f9b28e8796151a2e60c7c89672b 100644 (file)
@@ -31,7 +31,7 @@ namespace clitk {
   
   //--------------------------------------------------------------------
   /*
-    Convenient class to manage options from GGO (gengetopt) to filter
+    Convenient class to manage frequent options
   */
   //--------------------------------------------------------------------
   class FilterBase
@@ -42,7 +42,10 @@ namespace clitk {
     typedef FilterBase  Self;
     
     // Run-time type information (and related methods)
-    itkTypeMacro(FilterBase, Object);
+    virtual const char *GetNameOfClass() const
+      {
+      return "FilterBase";
+      }
 
     // Needed by itkSetMacro (cannot inherit from itkObject because of
     // multiple inheritance)
@@ -118,7 +121,7 @@ namespace clitk {
   protected:
     FilterBase();
     virtual ~FilterBase() {}    
-    void StartNewStep(std::string s);
+    void StartNewStep(std::string s, bool endl=true);
     template<class TInternalImageType>
     void StopCurrentStep(typename TInternalImageType::Pointer p, std::string txt="");
     void StopCurrentStep();