* Process files in the fileNameVector. */
| 1650 | * Process files in the fileNameVector. |
| 1651 | */ |
| 1652 | void ASConsole::processFiles() |
| 1653 | { |
| 1654 | if (isVerbose) |
| 1655 | printVerboseHeader(); |
| 1656 | |
| 1657 | clock_t startTime = clock(); // start time of file formatting |
| 1658 | |
| 1659 | // loop thru input fileNameVector and process the files |
| 1660 | for (size_t i = 0; i < fileNameVector.size(); i++) |
| 1661 | { |
| 1662 | getFilePaths(fileNameVector[i]); |
| 1663 | |
| 1664 | // loop thru fileName vector formatting the files |
| 1665 | for (size_t j = 0; j < fileName.size(); j++) |
| 1666 | formatFile(fileName[j]); |
| 1667 | } |
| 1668 | |
| 1669 | // files are processed, display stats |
| 1670 | if (isVerbose) |
| 1671 | printVerboseStats(startTime); |
| 1672 | } |
| 1673 | |
| 1674 | // process options from the command line and options file |
| 1675 | // build the vectors fileNameVector, excludeVector, optionsVector, and fileOptionsVector |