Exemple #1
0
        /// <summary>
        /// This function creates EngineController
        /// </summary>
        /// <param name="libraryServices"> LibraryServices manages builtin libraries and imported libraries.</param>
        /// <param name="geometryFactoryFileName">Path to LibG</param>
        /// <param name="verboseLogging">Bool value, if set to true, enables verbose logging</param>
        public EngineController(LibraryServices libraryServices, string geometryFactoryFileName, bool verboseLogging)
        {
            this.libraryServices           = libraryServices;
            libraryServices.LibraryLoaded += LibraryLoaded;
            CompilationServices            = new CompilationServices(libraryServices);

            liveRunnerServices = new LiveRunnerServices(this, geometryFactoryFileName);

            OnLibraryLoaded();

            astBuilder      = new AstBuilder(this);
            syncDataManager = new SyncDataManager();

            VerboseLogging = verboseLogging;
        }
Exemple #2
0
        public EngineController(LibraryServices libraryServices, string geometryFactoryFileName, bool verboseLogging)
        {
            this.libraryServices           = libraryServices;
            libraryServices.LibraryLoaded += LibraryLoaded;
            CompilationServices            = new CompilationServices(libraryServices.LibraryManagementCore);

            liveRunnerServices = new LiveRunnerServices(this, geometryFactoryFileName);

            liveRunnerServices.ReloadAllLibraries(libraryServices.ImportedLibraries);
            libraryServices.SetLiveCore(LiveRunnerCore);

            codeCompletionServices = new CodeCompletionServices(LiveRunnerCore);

            astBuilder      = new AstBuilder(this);
            syncDataManager = new SyncDataManager();

            VerboseLogging = verboseLogging;
        }
Exemple #3
0
 /// <summary>
 /// Creates CompilationServices.
 /// </summary>
 /// <param name="core">Copilation core</param>
 public CompilationServices(LibraryServices libraryServices)
 {
     compilationCore = libraryServices.LibraryManagementCore;
     priorNames      = libraryServices.GetPriorNames();
 }
Exemple #4
0
 /// <summary>
 /// Import Library
 /// </summary>
 /// <param name="library"></param>
 internal void ImportLibrary(string library)
 {
     LibraryServices.ImportLibrary(library);
 }
Exemple #5
0
 /// <summary>
 /// Import library.
 /// </summary>
 /// <param name="library"></param>
 public void ImportLibrary(string library)
 {
     LibraryServices.ImportLibrary(library);
 }