Method | Description | |
---|---|---|
Clear ( ) : void |
Resets the options.
|
|
ContainsAllOptions ( uint optionBits ) : bool | ||
ContainsOneOf ( uint optionBits ) : bool | ||
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
IsExactly ( uint optionBits ) : bool | ||
SetOption ( uint optionBits, bool value ) : void | ||
ToString ( ) : string | ||
XmpOptions ( uint options ) : System.Collections |
Constructor with the options bit mask.
|
Method | Description | |
---|---|---|
AssertConsistency ( uint options ) : void |
The inheriting option class can do additional checks on the options. Note: For performance reasons this method is only called when setting bitmasks directly. When get- and set-methods are used, this method must be called manually, normally only when the Options-object has been created from a client (it has to be made public therefore).
|
|
DefineOptionName ( uint option ) : string |
To be implemeted by inheritants.
|
|
GetOption ( uint optionBit ) : bool | ||
XmpOptions ( ) : System.Collections |
The default constructor.
|
Method | Description | |
---|---|---|
AssertOptionsValid ( uint options ) : void |
Checks options before they are set. First it is checked if only defined options are used, second the additional AssertConsistency(uint)-method is called.
|
|
GetOptionName ( uint option ) : string |
Looks up or asks the inherited class for the name of an option bit. Its save that there is only one valid option handed into the method.
|
|
ProcureOptionNames ( ) : IDictionary |
protected AssertConsistency ( uint options ) : void | ||
options | uint | the bitmask to check. |
return | void |
public ContainsAllOptions ( uint optionBits ) : bool | ||
optionBits | uint | an option bitmask |
return | bool |
public ContainsOneOf ( uint optionBits ) : bool | ||
optionBits | uint | an option bitmask |
return | bool |
protected abstract DefineOptionName ( uint option ) : string | ||
option | uint | a single, valid option bit. |
return | string |
protected GetOption ( uint optionBit ) : bool | ||
optionBit | uint | the binary bit or bits that are requested |
return | bool |
public IsExactly ( uint optionBits ) : bool | ||
optionBits | uint | an option bitmask |
return | bool |
public SetOption ( uint optionBits, bool value ) : void | ||
optionBits | uint | the binary bit or bits that shall be set to the given value |
value | bool | the boolean value to set |
return | void |
protected XmpOptions ( ) : System.Collections | ||
return | System.Collections |
public XmpOptions ( uint options ) : System.Collections | ||
options | uint | the options bit mask |
return | System.Collections |