00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Tristan Mehamli (Sep 2011) 00022 **=======================================================================*/ 00023 00024 #ifndef IVT_PLUGIN 00025 #define IVT_PLUGIN 00026 00028 // 00029 // Class: IvtPlugin 00030 // 00032 00033 #include <IvTune/IvTuneExtender/IvtLibName.h> 00034 00035 #include <Inventor/SbString.h> 00036 00037 #include <Inventor/STL/vector> 00038 00039 #ifdef _WIN32 00040 # if !defined(IvTuneExtenderAPI_EXPORTS) 00041 # ifndef OIV_DISABLE_AUTOLINK 00042 # pragma comment(lib,__IVTUNEEXTENDERAPILIB) 00043 # endif 00044 # endif 00045 #endif //win 00046 00047 class IvtExtension; 00048 class IvtShell; 00049 00053 struct IvtPluginInfo 00054 { 00055 SbString name; 00056 SbString description; 00057 SbString author; 00058 SbString version; 00059 SbString path; 00060 SbString fileName; 00061 }; 00062 00079 class IvtPlugin 00080 { 00081 public: 00087 void addExtension( IvtExtension* ext ); 00088 00094 IvtExtension* getExtensionByName( const SbString& name ); 00095 00099 const std::vector<IvtExtension*>& getExtensions() const; 00100 00104 const IvtPluginInfo& getInfo() const; 00105 00110 virtual void load(); 00111 00116 virtual void unload(); 00117 00118 private: 00119 00123 IvtPluginInfo m_info; 00124 00126 virtual ~IvtPlugin() {} 00127 00128 private: 00129 00131 std::vector<IvtExtension*> m_extensions; 00132 }; 00133 00134 #endif // IVT_PLUGIN 00135 00136 00137