コード例 #1
0
        public ModelInterface ProcessLoader(ModelLoaderInterface loader, int passNumber)
        {
            loader.OnClear();
            loader.OnLoad(ProjectProperties);
            ModelInterface topModel = loader.TopModel;

            if (!SetOptimizeValues(loader))
            {
                throw new ApplicationException("Error, setting optimize variables.");
            }
            topModel.Name += "-Pass-" + passNumber;
            return(topModel);
        }
コード例 #2
0
        public virtual void Run(ModelLoaderInterface loader)
        {
            if (loader.Category == projectFileLoaderCategory && loader.Name == projectFileLoaderName)
            {
                log.Notice("Loading project from " + ProjectFile);
                projectProperties = ProjectPropertiesCommon.Create(new StreamReader(ProjectFile));
            }
            loader.OnInitialize(ProjectProperties);
            loader.OnLoad(ProjectProperties);
            if (!SetOptimizeValues(loader))
            {
                throw new ApplicationException("Error, setting optimize variables. See log file for details.");
            }
            ModelInterface model = loader.TopModel;

            Run(model);
        }