コード例 #1
0
ファイル: PMDManager.cs プロジェクト: hiroshica/mml2vgm_mase
        public PMDManager(string compilerPath, string driverPath, Action <string> disp, Setting setting)
        {
            try
            {
                this.disp    = disp;
                this.setting = setting;

                makeInstance(compilerPath, driverPath);

                ok = true;

                EnvironmentE env = new EnvironmentE();
                env.AddEnv("pmd");
                env.AddEnv("pmdopt");
                envPmd    = env.GetEnvVal("pmd");
                envPmdOpt = env.GetEnvVal("pmdopt");
            }
            catch
            {
                this.compiler = null;
                this.driver   = null;
                ok            = false;
                throw;
            }
        }
コード例 #2
0
ファイル: MoonDriverManager.cs プロジェクト: kuma4649/mml2vgm
        private void makeInstance(string compilerPath, string driverPath)
        {
            im = new InstanceMarker();
            im.LoadCompilerDll(compilerPath);
            im.LoadDriverDll(driverPath);

            compiler = im.GetCompiler("MoonDriverDotNET.Compiler.Compiler");
            driver   = im.GetDriver("MoonDriverDotNET.Driver.Driver");

            if (compiler == null || driver == null)
            {
                throw new Exception("インスタンスの生成に失敗しました。");
            }
        }
コード例 #3
0
ファイル: mucomManager.cs プロジェクト: kuma4649/mml2vgm
        private void makeInstance(string compilerPath, string driverPath, string preprocessorPath)
        {
            im = new InstanceMarker();
            im.LoadCompilerDll(compilerPath);
            im.LoadDriverDll(driverPath);
            im.LoadPreprocessorDll(preprocessorPath);

            compiler     = im.GetCompiler("mucomDotNET.Compiler.Compiler");
            driver       = im.GetDriver("mucomDotNET.Driver.Driver");
            preprocessor = im.GetPreprocessor("M98DotNETcore.M98");

            if (compiler == null || driver == null || preprocessor == null)
            {
                throw new Exception("インスタンスの生成に失敗しました。");
            }
        }
コード例 #4
0
ファイル: mucomManager.cs プロジェクト: kuma4649/mml2vgm
        public mucomManager(string compilerPath, string driverPath, string preprocessorPath, Action <string> disp, Setting setting)
        {
            try
            {
                this.disp    = disp;
                this.setting = setting;

                makeInstance(compilerPath, driverPath, preprocessorPath);

                ok = true;
            }
            catch
            {
                this.compiler     = null;
                this.driver       = null;
                this.preprocessor = null;
                ok = false;
                throw;
            }
        }
コード例 #5
0
ファイル: MoonDriverManager.cs プロジェクト: kuma4649/mml2vgm
        public MoonDriverManager(string compilerPath, string driverPath, Action <string> disp, Setting setting)
        {
            try
            {
                this.compilerPath = compilerPath;
                this.driverPath   = driverPath;
                this.disp         = disp;
                this.setting      = setting;

                makeInstance(compilerPath, driverPath);

                ok = true;
            }
            catch
            {
                this.compiler = null;
                this.driver   = null;
                ok            = false;
                throw;
            }
        }
コード例 #6
0
 public ReportGenerator(iprinter printer, iCollector collector, iCompiler compiler)
 {
     printer_   = printer;
     collector_ = collector;
     compiler_  = compiler;
 }