]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/SourceObject.h
Garbage collector added
[cpPlugins.git] / lib / cpPlugins / Interface / SourceObject.h
index 22914b9904bbe7237d13c4aaa67f409608e11611..0c036ce68947de9106e2dcc2d2b8981f06fc76f8 100644 (file)
@@ -14,17 +14,29 @@ namespace cpPlugins
       : public ProcessObject
     {
     public:
-      typedef SourceObject  Self;
-      typedef ProcessObject Superclass;
+      typedef SourceObject                    Self;
+      typedef ProcessObject                   Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
 
       typedef Superclass::TParameter  TParameter;
       typedef Superclass::TParameters TParameters;
 
     public:
+      itkTypeMacro( SourceObject, ProcessObject );
+
+    public:
+      virtual std::string GetClassName( ) const;
+      virtual std::string GetClassType( ) const;
+
+    protected:
       SourceObject( );
       virtual ~SourceObject( );
 
-      virtual std::string GetClassName( ) const;
+    private:
+      // Purposely not implemented
+      SourceObject( const Self& );
+      Self& operator=( const Self& );
     };
 
   } // ecapseman