コード例 #1
0
        public static void GenerateCode(IRelation relation, string outputFolderAbsolute, bool useMetamodelInterface = true)
        {
            string code = GenerateCode(relation, useMetamodelInterface);

            try
            {
                code = CodeFormatter.Format(code);
            }
            catch (Exception)
            {
                // TODO
            }
            File.WriteAllText(PrepareOutputFolderString(outputFolderAbsolute) + QvtCodeGeneratorStrings.GetFileName(relation), code);
        }
コード例 #2
0
        public static void GenerateCode(IRelationalTransformation transformation, string outputFolderAbsolute, bool useMetamodelInterface)
        {
            string code = GenerateCode(transformation, useMetamodelInterface);

            try
            {
                code = CodeFormatter.Format(code);
            }
            catch (Exception)
            {
                // TODO
            }
            if (!Directory.Exists(outputFolderAbsolute))
            {
                Directory.CreateDirectory(outputFolderAbsolute);
            }
            File.WriteAllText(PrepareOutputFolderString(outputFolderAbsolute) + QvtCodeGeneratorStrings.GetFileName(transformation), code);
        }