]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Macros.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / Macros.h
index 85a9d089a81ff50a47b2f43e296e52b5bfef92e8..790a99765c64d508ebfe0d0c32b97a0965e5d7c7 100644 (file)
@@ -6,10 +6,10 @@
 #include <cpPlugins/Interface/Config.h>
 
 // -------------------------------------------------------------------------
-#define cpPlugins_Id_Macro( name, category )                            \
+#define cpPlugins_Id_Macro( N, C )                                      \
   public:                                                               \
-  virtual std::string GetClassName( ) { return( #name ); }              \
-  virtual std::string GetClassCategory( ) { return( category ); }
+  virtual const char* GetClassName( ) const     { return( #N ); }       \
+  virtual const char* GetClassCategory( ) const { return( #C ); }
 
 // -------------------------------------------------------------------------
 #define CPPLUGINS_PROVIDER_HEADER_BEGIN( TYPE )                 \
@@ -46,10 +46,10 @@ public:                                                         \
     : public cpPlugins::Interface::ProcessObjectProvider                \
   {                                                                     \
   public:                                                               \
-    cpPlugins::Interface::Object::Pointer create( ) const               \
+    cpPlugins::Interface::ProcessObject::Pointer create( ) const        \
     {                                                                   \
       TYPE::Pointer a = TYPE::New( );                                   \
-      cpPlugins::Interface::Object::Pointer b = a.GetPointer( );        \
+      cpPlugins::Interface::ProcessObject::Pointer b = a.GetPointer( ); \
       return( b );                                                      \
     }                                                                   \
   };