|
static int | RemoveAllParameters (IData data, object obj, int maxLvl=15) |
| Searches for parameters IDs in the object upto a depth of 15 and removes the parameters with the same ID from the master list of parameters. More...
|
|
static int | RenameAllParameters (Parameters parameters, object obj) |
| Searches recursively though an object for all instances of parameters. Then insterts them in the master list and change their IDs if the ID is already present in the master list More...
|
|
static int | UpdateAllParameters (Parameters parameters, object obj) |
| Searches recursively though an object for all instances of parameters. Then replaces the instances of parameters in the master list of parameter with these newly founded ones. More...
|
|
static int Greet.DataStructureV3.ToolsDataStructure.RemoveAllParameters |
( |
IData |
data, |
|
|
object |
obj, |
|
|
int |
maxLvl = 15 |
|
) |
| |
|
static |
Searches for parameters IDs in the object upto a depth of 15 and removes the parameters with the same ID from the master list of parameters.
- Parameters
-
data | Data from which the parameters should be removed |
obj | Object from which parameters should be found |
maxLvl | Max level is a safety against infinite loop or to stop when the object gets really deep |
- Returns
- Number of parameters that are removed
static int Greet.DataStructureV3.ToolsDataStructure.RenameAllParameters |
( |
Parameters |
parameters, |
|
|
object |
obj |
|
) |
| |
|
static |
Searches recursively though an object for all instances of parameters. Then insterts them in the master list and change their IDs if the ID is already present in the master list
- Parameters
-
parameters | Mast list of parameters in which instances of parameters are going to be added with different IDs |
obj | Object containing cloned parameters instances that needs to have new IDs |
- Returns
- Number of parameters that have been replaced, or -1 if there was an error while adding parameters
static int Greet.DataStructureV3.ToolsDataStructure.UpdateAllParameters |
( |
Parameters |
parameters, |
|
|
object |
obj |
|
) |
| |
|
static |
Searches recursively though an object for all instances of parameters. Then replaces the instances of parameters in the master list of parameter with these newly founded ones.
- Parameters
-
parameters | Mast list of parameters in which instances of parameters are going to be updated |
obj | Object containing cloned parameters instances |
- Returns
- Number of parameters that have been replaced, or -1 if there was an error while removing parameters
The documentation for this class was generated from the following file:
- C:/Users/ddieffenthaler/Desktop/SVN/source/greet-dev/main/DataManagement/DataStructureV3/ToolsDataStructure.cs