X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcpPlugins%2FInterface%2FInterface.h;h=a51f8be231409e38857b9b3a761b2c9dcebd818c;hb=1d735deae0ae5e8bff643a59370a03c961ef780c;hp=1db73b95dd54af33348eb3999668ba51f2711946;hpb=8c23766af88a29c3e830299dffc4b95d9fe61df9;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Interface.h b/lib/cpPlugins/Interface/Interface.h index 1db73b9..a51f8be 100644 --- a/lib/cpPlugins/Interface/Interface.h +++ b/lib/cpPlugins/Interface/Interface.h @@ -6,7 +6,9 @@ #include #include +#include #include +#include namespace cpPlugins { @@ -14,7 +16,7 @@ namespace cpPlugins { /** */ - class Interface + class cpPlugins_Interface_EXPORT Interface { public: typedef std::vector< ObjectProvider* > TProviders; @@ -27,12 +29,15 @@ namespace cpPlugins Interface( ); virtual ~Interface( ); - /// Plugin access + // Plugin access TClasses& GetClasses( ); const TClasses& GetClasses( ) const; - Object* CreateObject( const std::string& name ) const; + Object::Pointer CreateObject( const std::string& name ) const; + ProcessObject::Pointer CreateProcessObject( + const std::string& name + ) const; - /// Interface to PLUMA + // Interface to PLUMA bool Load( const std::string& path ); bool Load( const std::string& folder, const std::string& name ); int LoadFromFolder( const std::string& folder, bool r = false );