Exemple #1
0
        static private void WriteFile(IGenerate generator, List <NodeFeature> features, string outputDirectory, string extension, string consoleMessage)
        {
            List <string[]> listOfContents = generator.Generate(GetLanguageConfig(), features);

            for (int i = 0; i < listOfContents.Count; i++)
            {
                string file = string.Format("{0}{1}{2}", outputDirectory, features[i].Name, extension);
                Console.WriteLine(string.Format("{0}: {1}", consoleMessage, file));
                File.WriteAllLines(file, listOfContents[i]);
                if (!_singleFile)
                {
                    AddFilesToCppProject(file, FEATURE_DIR, CPP_PROJ);
                }
            }
        }
Exemple #2
0
 private static void WriteFile(IGenerate generator, List<NodeFeature> features, string outputDirectory, string extension, string consoleMessage)
 {
     List<string[]> listOfContents = generator.Generate(GetLanguageConfig(), features);
     for (int i = 0; i < listOfContents.Count; i++)
     {
         string file = string.Format("{0}{1}{2}", outputDirectory, features[i].Name, extension);
         Console.WriteLine(string.Format("{0}: {1}", consoleMessage, file));
         File.WriteAllLines(file, listOfContents[i]);
         if (!_singleFile)
         {
             AddFilesToCppProject(file, FEATURE_DIR, CPP_PROJ);
         }
     }
 }
 //brige
 public void generate(IGenerate generate, string nameSpace)
 {
     generate.Generate(this, nameSpace);
 }
 public string GeneratePassword()
 {
     return(_IGenerate.Generate(text, inputValue));
 }