public void Check_TwoNames()
        {
            IDictionary <string, bool> vars = new Dictionary <string, bool>();

            vars["species"]  = true;
            vars["timestep"] = true;
            OutputPath.CheckTemplateVars("./output/{species}-{timestep}.gis", vars);
        }
        //---------------------------------------------------------------------

        public static void CheckTemplateVars(string template)
        //string selectedPools)
        {
            //if (selectedPools == ("woody" | "non-woody"))
            //    knownVars[PoolVar] = true;
            //else
            //    knownVars[PoolVar] = false;
            OutputPath.CheckTemplateVars(template, knownVars);
        }
        //---------------------------------------------------------------------

        public static void CheckTemplateVars(string template)
        //string selectedPools)
        {
            try
            {
                OutputPath.CheckTemplateVars(template, knownVars);
            }
            catch
            {
                return;
            }
        }
        //--------------------------------------------------------------------

        private void TryCheckVars(string template,
                                  IDictionary <string, bool> variables)
        {
            try {
                OutputPath.CheckTemplateVars(template, variables);
            }
            catch (InputValueException exc) {
                Data.Output.WriteLine(exc.Message);
                Data.Output.WriteLine();
                throw;
            }
        }
Esempio n. 5
0
        //---------------------------------------------------------------------

        public static void CheckTemplateVars(string template)
        {
            OutputPath.CheckTemplateVars(template, knownVars);
        }