#ifndef __CPPLUGINS__INTERFACE__OBJECT__H__
#define __CPPLUGINS__INTERFACE__OBJECT__H__
+#include <cpPlugins/Interface/Macros.h>
+
#include <string>
-#include <Pluma/Pluma.hpp>
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
+#include <itkObject.h>
+#include <itkObjectFactory.h>
namespace cpPlugins
{
/**
*/
class cpPlugins_Interface_EXPORT Object
+ : public itk::Object
{
public:
+ typedef Object Self;
+ typedef itk::Object Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
+
+ public:
+ itkNewMacro( Self );
+ itkTypeMacro( Object, itkObject );
+ cpPlugins_Id_Macro( Object, "BaseObject" );
+
+ itkGetStringMacro( Name );
+ itkSetStringMacro( Name );
+
+ protected:
Object( );
virtual ~Object( );
- virtual std::string GetClassName( ) const;
- };
+ private:
+ // Purposely not implemented
+ Object( const Self& );
+ Self& operator=( const Self& );
- // TODO: doc
- PLUMA_PROVIDER_HEADER( Object );
+ protected:
+ std::string m_Name;
+ };
} // ecapseman