Difference between revisions of "ISKernel:dataset (Data Type)"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
* [[DataType:int|int]] '''Keys''': Total number of keys (and values) | * [[DataType:int|int]] '''Keys''': Total number of keys (and values) | ||
* [[DataType:string|string]] '''Key['''#''']''': Retrieves the nth key from the list (1-based) | * [[DataType:string|string]] '''Key['''#''']''': Retrieves the nth key from the list (1-based) | ||
+ | * [[DataType:int|int]] '''Sets''': Total number of sets | ||
+ | * [[DataType:string|string]] '''Set['''#''']''': Retrieves the name of the nth subset (1-based) | ||
+ | * [[ISSession:dataset (Data Type)|dataset]] '''Set['''name''']''': Retrieves the subset with the given name | ||
== Methods == | == Methods == | ||
Line 17: | Line 20: | ||
* '''Set['''setting''','''value''']''': Sets (creating if necessary) a setting in this data set | * '''Set['''setting''','''value''']''': Sets (creating if necessary) a setting in this data set | ||
* '''UnSet['''setting''']''': Deletes a setting in this data set | * '''UnSet['''setting''']''': Deletes a setting in this data set | ||
+ | * '''Clear''': Clears the set | ||
+ | * '''AddSet['''name''']''': Adds a subset | ||
+ | * '''RemoveSet['''name''']''': Deletes a subset | ||
+ | * '''Save''': Saves the set in its original "setting file" (if any) | ||
+ | * '''Save['''filename''']''': Exports the set to the given filename | ||
+ | * '''Unload''': Unloads the set, dropping any unsaved changes | ||
+ | |||
== Returns == | == Returns == |
Revision as of 17:09, 20 August 2005
Description
Members
- string Name: Name of the data set
- float GetFloat[setting]: Retrieves a setting value, as a float
- float GetFloat[setting,default]: Retrieves a setting value, as a float. Uses the value of default if the value does not exist
- int GetInt[setting]: Retrieves an setting value, as an int
- int GetInt[setting,default]: Retrieves an setting value, as an int. Uses the value of default if the value does not exist
- string GetString[setting]: Retrieves a setting value, as a string
- string GetString[setting,default]: Retrieves a setting value, as a string. Uses the value of default if the value does not exist
- int Keys: Total number of keys (and values)
- string Key[#]: Retrieves the nth key from the list (1-based)
- int Sets: Total number of sets
- string Set[#]: Retrieves the name of the nth subset (1-based)
- dataset Set[name]: Retrieves the subset with the given name
Methods
- Clear: Clears the data set
- SetName[name]: Changes the name of the data set
- Set[setting,value]: Sets (creating if necessary) a setting in this data set
- UnSet[setting]: Deletes a setting in this data set
- Clear: Clears the set
- AddSet[name]: Adds a subset
- RemoveSet[name]: Deletes a subset
- Save: Saves the set in its original "setting file" (if any)
- Save[filename]: Exports the set to the given filename
- Unload: Unloads the set, dropping any unsaved changes
Returns
Same as Name