Ejemplo n.º 1
0
 private static bool StartProcess(string filePath_Model, string filePath_Output)
 {
     Reader.Reader       reader    = new Reader.Reader(filePath_Model);
     Datamodel.Datamodel datamodel = reader.getDatamodel();
     Generator.Generator generator = new Generator.Generator(filePath_Output, datamodel);
     return(generator.generateCode());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Erstellt Reader und Generator und führt deren Interface-Methoden aus.
 /// </summary>
 /// <param name="filePath_Model">Gibt dem Reader den Dateipfad mit.</param>
 /// <param name="filePath_Output">Gibt dem Generator den Ausgabepfad mit.</param>
 public Datamodel.Datamodel ExchangeData(string filePath_Model, string filePath_Output)
 {
     Reader.Reader       reader    = new Reader.Reader(filePath_Model);
     Datamodel.Datamodel datamodel = reader.getDatamodel();
     Generator.Generator generator = new Generator.Generator(filePath_Output, datamodel);
     if (generator.generateCode())
     {
         return(datamodel);
     }
     else
     {
         return(null);
     }
 }