All Classes Files Functions Variables Enumerations Enumerator Macros
findfiles.hpp
Go to the documentation of this file.
1 
10 #ifndef FINDFILES_H
11 #define FINDFILES_H
12 
13 #include "options.hpp"
14 
15 using namespace std;
16 
22 
23 class FindFiles
24 {
25 public:
26  // Constructors and destructors
27  FindFiles(); // Default constructor
28  ~FindFiles(); // Default destructor
29 
30  // User methods
31  static bool readInput( ConfigOpts * ); // Detect if input is a file or a directory
32  static bool readDir( string, ConfigOpts * ); // Counts/records files from an input directory
33  static bool readFile( ConfigOpts * ); // Counts/records files from an input file
34 
35 private:
36  // Internal methods
37  static bool isFiltered( string, ConfigOpts * ); // Check if the file should be filtered
38 };
39 
40 #endif
Auto-detects whether input is a file or directory.
Definition: findfiles.hpp:23
The ConfigOpts class stores all config options, settings, and flags for clerk.
Stores all config options, settings, and flags for clerk.
Definition: options.hpp:60