The Settings class defines a container of global Manufacturing Toolkit parameters. More...
Inherits global.SystemIDisposable.
Public Types | |
| enum | Id { ConcurrentMode , UserDefined = 10000 } |
| Describes values used to identify Manufacturing Toolkit settings. More... | |
Public Member Functions | |
| Settings (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
| void | SetValue (cadex.Utilities.Settings.Id theId, int theVal) |
| Sets integer parameter value. | |
| void | SetValue (cadex.Utilities.Settings.Id theId, double theVal) |
| Sets double parameter value. | |
| void | SetValue (cadex.Utilities.Settings.Id theId, bool theVal) |
| Sets double parameter value. | |
| void | SetValue (cadex.Utilities.Settings.Id theId, cadex.UTF16String theVal) |
| Sets double parameter value. | |
| int | IntValue (cadex.Utilities.Settings.Id theId, int theDefaultVal) |
| Returns integer parameter value. | |
| double | DoubleValue (cadex.Utilities.Settings.Id theId, double theDefaultVal) |
| Returns double parameter value. | |
| bool | BoolValue (cadex.Utilities.Settings.Id theId, bool theDefaultVal) |
| Returns boolean parameter value. | |
| cadex.UTF16String | StringValue (cadex.Utilities.Settings.Id theId, cadex.UTF16String theDefaultVal) |
| Returns a string value for the parameter with theId which has already been registered with SetValue(). | |
Static Public Member Functions | |
| static cadex.Utilities.Settings | Instance () |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
The Settings class defines a container of global Manufacturing Toolkit parameters.
The settings class is a singleton; there is only one object, which is returned by Instance().
Parameters can be set with SetValue() and retrieved with respective Value() methods.
Settings support several types of parameters:
Each parameter is given an id specified by the Settings.Id enumeration. To extend with your own id's make sure you use UserDefined value and greater.
Describes values used to identify Manufacturing Toolkit settings.
|
inline |
Returns boolean parameter value.
|
inline |
Returns double parameter value.
|
inline |
Returns integer parameter value.
|
inline |
Sets double parameter value.
Sets boolean parameter value. Sets string parameter value.
|
inline |
Sets double parameter value.
Sets boolean parameter value. Sets string parameter value.
|
inline |
Sets double parameter value.
Sets boolean parameter value. Sets string parameter value.
|
inline |
Sets integer parameter value.
|
inline |
Returns a string value for the parameter with theId which has already been registered with SetValue().
If such id has not been registered yet, returns theDefaultValue. Returns string parameter value.