/// <summary> /// Dicionário de lista reordenável contendo todas as variaveis do gráfico criadas ate o momento em formato /// <seealso cref="TagVar"/> /// </summary> /// <returns><seealso cref="TagVarList"/> contendo todas as variaveis do gráfico em formato <seealso cref="TagVar"/></returns> public TagVarList GetVariablesAsTag() { TagVarList tagVariables = new TagVarList(); foreach (string intKey in intVars.Keys) { tagVariables.Add(intKey, GraphVarType.Integer); } foreach (string floatKey in floatVars.Keys) { tagVariables.Add(floatKey, GraphVarType.Float); } foreach (string doubleKey in doubleVars.Keys) { tagVariables.Add(doubleKey, GraphVarType.Double); } foreach (string boolKey in boolVars.Keys) { tagVariables.Add(boolKey, GraphVarType.Boolean); } return(tagVariables); }
public GraphVarAddErrorsType AddTagVariable(string varName, GraphVarType varType) { GraphVarAddErrorsType result = GraphVarAddErrorsType.none; if (varName == FSMGUtility.StringTag_Undefined) { return(GraphVarAddErrorsType.invalidName); } if (variables.ContainsKey(varName) == true) { result = GraphVarAddErrorsType.graph_already_exists; } else { variables.Add(varName, varType); } return(result); }