예제 #1
0
 public void SetDeclarationSymboleAffectationFromOther(Montage other)
 {
     this.mapOfCalculExpressions = other.mapOfCalculExpressions;
     this.listOfDeclarations     = other.listOfDeclarations;
     this.symboleTabe            = other.symboleTabe;
     this.functionForListList    = other.functionForListList;
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void SetCoreFromOther(Montage other)
 {
     this.listOfBricks = other.listOfBricks;
     this.errorList    = other.errorList;
 }