Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.DataStructureV3.ToolsDataStructure Class Reference

Static Public Member Functions

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...
 

Member Function Documentation

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
dataData from which the parameters should be removed
objObject from which parameters should be found
maxLvlMax 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
parametersMast list of parameters in which instances of parameters are going to be added with different IDs
objObject 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
parametersMast list of parameters in which instances of parameters are going to be updated
objObject 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: