Exemple #1
0
        public override void write(string root_path, doc doc, string lang_name)
        {
            common.write_helper    helper = write_helper_factory.get(lang_name);
            System.IO.StreamWriter wr     = helper.w00_create_dir_and_file(root_path, doc);

            helper.w01_namespace(wr, doc);

            helper.w02_group_begin(wr, doc);
            wr.WriteLine("    /**");


            helper.w03_info(wr, "revision", doc);
            helper.w03_info(wr, "title", doc);
            helper.w03_info(wr, "author", doc);
            helper.w03_info(wr, "date", doc);
            helper.w03_info(wr, "uml", doc);
            helper.w03_info(wr, "desc", doc);
            helper.w03_info(wr, "benefit", doc);
            helper.w03_info(wr, "penalty", doc);
            helper.w03_info(wr, "cost", doc);
            helper.w03_info(wr, "risk", doc);
            helper.w03_info(wr, "parent_spec", doc);
            helper.w03_info(wr, "child_spec", doc);
            helper.w03_info(wr, "test_case", doc);
            helper.w03_info(wr, "ret_code", doc);
            helper.w03_info(wr, "fmea", doc);
            helper.w03_info(wr, "constraint", doc);


            wr.WriteLine("    */");
            helper.w04_class(wr, doc);
            helper.w99_ground_end(wr, doc);
            wr.Close();
        }
Exemple #2
0
        public override void write(string root_path, doc doc, string lang_name)
        {
            common.write_helper    helper = write_helper_factory.get(lang_name);
            System.IO.StreamWriter wr     = helper.w00_create_dir_and_file(root_path, doc);

            helper.w01_namespace(wr, doc);
            helper.w02_group_begin(wr, doc);
            wr.WriteLine("    /**");

            helper.w03_info(wr, "revision", doc);
            helper.w03_info(wr, "title", doc);
            helper.w03_info(wr, "author", doc);
            helper.w03_info(wr, "date", doc);
            helper.w03_info(wr, "desc", doc);
            helper.w03_info(wr, "test_result", doc);
            helper.w03_info(wr, "test_fail_log", doc);
            helper.w03_info(wr, "ret_spec", doc);
            helper.w03_info(wr, "ret_code", doc);


            wr.WriteLine("    */");
            helper.w04_class(wr, doc);
            helper.w99_ground_end(wr, doc);
            wr.Close();
        }