* Process files in the fileNameVector. */
| 1708 | * Process files in the fileNameVector. |
| 1709 | */ |
| 1710 | void ASConsole::processFiles() |
| 1711 | { |
| 1712 | if (isVerbose) |
| 1713 | printVerboseHeader(); |
| 1714 | |
| 1715 | clock_t startTime = clock(); // start time of file formatting |
| 1716 | |
| 1717 | // loop thru input fileNameVector and process the files |
| 1718 | for (size_t i = 0; i < fileNameVector.size(); i++) |
| 1719 | { |
| 1720 | getFilePaths(fileNameVector[i]); |
| 1721 | |
| 1722 | // loop thru fileName vector formatting the files |
| 1723 | for (size_t j = 0; j < fileName.size(); j++) |
| 1724 | formatFile(fileName[j]); |
| 1725 | } |
| 1726 | |
| 1727 | // files are processed, display stats |
| 1728 | if (isVerbose) |
| 1729 | printVerboseStats(startTime); |
| 1730 | } |
| 1731 | |
| 1732 | // process options from the command line and options file |
| 1733 | // build the vectors fileNameVector, excludeVector, optionsVector, and fileOptionsVector |