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 : Jean Paul Digeon (Sep 2011) 00022 **=======================================================================*/ 00023 00024 #ifndef IVT_PROFILE_SETTING 00025 #define IVT_PROFILE_SETTING 00026 00028 // 00029 // Class: IvtPreference 00030 // 00032 00033 #include <IvTune/IvTuneExtender/IvtLibName.h> 00034 00035 #include <Inventor/SbString.h> 00036 00037 #include <Inventor/STL/map> 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 00066 class IvtProfileSetting 00067 { 00068 public: 00069 00075 SbString getParameter( const SbString& name ) const ; 00076 00080 const std::map<SbString, SbString>& getParameters() const; 00081 00088 void setParameter( const SbString& name, const SbString& value ); 00089 00096 void addControlledExtension( IvtExtension* ext, IvtProfileSetting* setting ); 00097 00101 const std::map<IvtExtension*, IvtProfileSetting* >& getControlledExtensions() const; 00102 00108 void setControlledBy( IvtExtension* controlledBy ); 00109 00114 IvtExtension* getControlledBy() const; 00115 00119 IvtProfileSetting(); 00120 00124 virtual ~IvtProfileSetting(); 00125 00126 private: 00127 00129 std::map<SbString, SbString> m_parameters; 00130 00132 std::map<IvtExtension*, IvtProfileSetting* > m_controlledExtensions; 00133 00135 IvtExtension* m_controlledBy; 00136 }; 00137 00138 #endif // IVT_PROFILE_SETTING 00139 00140 00141