public void SetDeclarationSymboleAffectationFromOther(Montage other) { this.mapOfCalculExpressions = other.mapOfCalculExpressions; this.listOfDeclarations = other.listOfDeclarations; this.symboleTabe = other.symboleTabe; this.functionForListList = other.functionForListList; }
static public Montage GetIncludeSIDB() { FileStream file = null; Scanner scn = null; Parser parser = null; Montage montageBaseWithSIDB = null; try { file = new FileStream(PreProcessor.BDSIPath, FileMode.Open); scn = new Scanner(file); parser = new Parser(scn); parser.Parse(); //ici on va rajouter que toute les déclaration du montage vienne de la db foreach (Declaration dec in parser.montage.listOfDeclarations) { // Indicate that the declaration come from the dataBase dec.fromDataBase = true; } // //ici on va rajouter que toute les déclaration du montage vienne de la db foreach (Affectation aff in parser.montage.mapOfCalculExpressions.Values) { // Indicate that the declaration come from the dataBase aff.fromDataBase = true; } // // montageBaseWithSIDB = parser.montage; } catch (Exception e) { LogManager.AddLog("Lors de GetIncludeSIDB"); LogManager.AddLog(e.Message); } finally { file.Close(); } return(montageBaseWithSIDB); }
public void SetCoreFromOther(Montage other) { this.listOfBricks = other.listOfBricks; this.errorList = other.errorList; }