![]() |
IOFormat C# 1.12.0
|
Public Member Functions | |
| OptionMap (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
| long[] | GetIntArray (string key) |
| Return an option value as an array of integers. | |
| double[] | GetFloatArray (string key) |
| Return an option value as an array of floats. | |
| void | SetInt (string key, long[] values) |
| Associate an integer array with a specific key. | |
| void | SetFloat (string key, double[] values) |
| Associate a float array with a specific key. | |
| OptionMap (OptionMap other) | |
| uint | Size () |
| Get the number of element in the option map. | |
| bool | Empty () |
| Check if the option map is empty. | |
| bool | Has (string key) |
| Check if a key is present. | |
| DataType | Dtype (string key) |
| Get the option data type. | |
| uint | Count (string key) |
| Get the number of values associated with a key. | |
| void | Remove (string key) |
| Remove a key from the option map. | |
| string | ToString () |
| Get a string representation of the option map. | |
| bool | GetBool (string key) |
| Get a boolean value. | |
| string | GetString (string key) |
| Get a string value. | |
| long | GetInt (string key, uint index) |
| Get the integer value at a given index. | |
| long | GetInt (string key) |
| Get an integer value. | |
| double | GetFloat (string key, uint index) |
| Get the float value at the given index. | |
| double | GetFloat (string key) |
| Get a float value. | |
| void | SetBool (string key, bool value) |
| Associate a boolean value with a specific key. | |
| void | SetString (string key, string value) |
| Associate a string value with a specific key. | |
| void | SetInt (string key, long value) |
| Associate an integer value with a specific key. | |
| void | SetFloat (string key, double value) |
| Associate a float value with a specific key. | |
Static Public Member Functions | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (OptionMap obj) |
| static global::System.Runtime.InteropServices.HandleRef | swigRelease (OptionMap obj) |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
Protected Attributes | |
| bool | swigCMemOwn |
|
inline |
Get the number of values associated with a key.
Boolean and string values will always return one, while numeric values will return the number of elements in the array.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
|
inline |
Get the option data type.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
|
inline |
Get a boolean value.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
| Error | if the value is not a boolean. |
|
inline |
Get a float value.
This shortcut method return the first element of the array.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
| Error | if the value is not a float. |
|
inline |
Get the float value at the given index.
| key | The key to fetch. |
| index | The index of the value in the array. |
| InvalidArgument | if the key is not present. |
| InvalidArgument | if the index is out of bounds. |
| Error | if the value is not a float. |
|
inline |
Return an option value as an array of floats.
| key | The key to fetch. |
|
inline |
Get an integer value.
This shortcut method return the first element of the array.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
| Error | if the value is not an integer. |
|
inline |
Get the integer value at a given index.
| key | The key to fetch. |
| index | The index of the value in the array. |
| InvalidArgument | if the key is not present. |
| InvalidArgument | if the index is out of bounds. |
| Error | if the value is not an integer. |
|
inline |
Return an option value as an array of integers.
| key | The key to fetch. |
|
inline |
Get a string value.
| key | The key to fetch. |
| InvalidArgument | if the key is not present. |
| Error | if the value is not a string. |
|
inline |
Check if a key is present.
| key | The key to check |
|
inline |
Remove a key from the option map.
| key | The key to remove. |
| InvalidArgument | if the key is not present. |
|
inline |
Associate a boolean value with a specific key.
| key | The key to set. |
| value | The value to set. |
|
inline |
Associate a float value with a specific key.
This shortcut method set a single value.
| key | The key to set. |
| value | The value to set. |
|
inline |
Associate a float array with a specific key.
| key | The key to set. |
| values | The values to set. |
|
inline |
Associate an integer value with a specific key.
This shortcut method set a single value.
| key | The key to set. |
| value | The value to set. |
|
inline |
Associate an integer array with a specific key.
| key | The key to set. |
| values | The values to set. |
|
inline |
Associate a string value with a specific key.
| key | The key to set. |
| value | The value to set. |