コード例 #1
0
        public static A3CppFile parseFile(String path)//process a cpp file into a A3CppFile object
        {
            A3CppFile file = new A3CppFile();

            file.FilePath           = path;
            file.OriginalCodeString = System.IO.File.ReadAllText(path, System.Text.Encoding.UTF8); //read file contents into String
            file.splitOCode();                                                                     //split string into list by line

            //Parse all Class's
            file = parseFileForClasses(file);//Find and seperate the classes with their content
            //Parse all Variables
            file = parseFileClassesForVariables(file);
            //Build Inheritance Tree -- PERFORMANCE BOTTLENECK
            file.buildTrees();
            return(file);
        }
コード例 #2
0
 public static A3CppFile processFileClassesForInheritanceTree(A3CppFile file)//build the nested and extended tree lists and combine into inheritance tree
 {
     file.buildTrees();
     return(file);
 }