Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
IvtProfileSetting.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Jean Paul Digeon (Sep 2011)
22**=======================================================================*/
23
24#ifndef IVT_PROFILE_SETTING
25#define IVT_PROFILE_SETTING
26
28//
29// Class: IvtPreference
30//
32
33#include <IvTune/IvTuneExtender/IvtLibName.h>
34
35#include <Inventor/SbString.h>
36
37#include <Inventor/STL/map>
38
39#ifdef _WIN32
40# if !defined(IvTuneExtenderAPI_EXPORTS)
41# ifndef OIV_DISABLE_AUTOLINK
42# pragma comment(lib,__IVTUNEEXTENDERAPILIB)
43# endif
44# endif
45#endif //win
46
47class IvtExtension;
48
67{
68public:
69
75 SbString getParameter( const SbString& name ) const ;
76
80 const std::map<SbString, SbString>& getParameters() const;
81
88 void setParameter( const SbString& name, const SbString& value );
89
97
101 const std::map<IvtExtension*, IvtProfileSetting* >& getControlledExtensions() const;
102
108 void setControlledBy( IvtExtension* controlledBy );
109
115
120
125
126private:
127
129 std::map<SbString, SbString> m_parameters;
130
132 std::map<IvtExtension*, IvtProfileSetting* > m_controlledExtensions;
133
135 IvtExtension* m_controlledBy;
136};
137
138#endif // IVT_PROFILE_SETTING
139
140
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class to im...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> IvTune extension...
const std::map< SbString, SbString > & getParameters() const
Returns the list of parameters and associated values for this preference.
void setParameter(const SbString &name, const SbString &value)
Set the specified parameter in this preference.
IvtExtension * getControlledBy() const
Returns null if it is an active extension (top level), otherwise the extension which is embedded and ...
SbString getParameter(const SbString &name) const
Returns the value of the parameter from its name.
IvtProfileSetting()
Constructor.
void setControlledBy(IvtExtension *controlledBy)
Set an extension which is embedded and controlled by current extension.
const std::map< IvtExtension *, IvtProfileSetting * > & getControlledExtensions() const
Returns the list of controlled extensions and associated settings for the current profile.
void addControlledExtension(IvtExtension *ext, IvtProfileSetting *setting)
Add a controlled extension to the current extension (active or controlled).
virtual ~IvtProfileSetting()
Destructor.
Class for smart character strings.
Definition SbString.h:202