All Classes Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
FindFiles Class Reference

Auto-detects whether input is a file or directory. More...

#include <findfiles.hpp>

Public Member Functions

 FindFiles ()
 Default constructor. More...
 
 ~FindFiles ()
 Default destructor. More...
 

Static Public Member Functions

static bool readInput (ConfigOpts *)
 Detect if input is a file or a directory. More...
 
static bool readDir (string, ConfigOpts *)
 Counts and records files from an input directory. More...
 
static bool readFile (ConfigOpts *)
 Counts and records files from an input file. More...
 

Static Private Member Functions

static bool isFiltered (string, ConfigOpts *)
 Check if file should be filtered. More...
 

Detailed Description

Auto-detects whether input is a file or directory.

Reads input from file or directory and checks if file is not a video file and should be filtered. Files that pass are counted and stored in an array.

Definition at line 23 of file findfiles.hpp.

Constructor & Destructor Documentation

FindFiles::FindFiles ( )

Default constructor.

Definition at line 19 of file findfiles.cpp.

FindFiles::~FindFiles ( )

Default destructor.

Definition at line 23 of file findfiles.cpp.

Member Function Documentation

bool FindFiles::isFiltered ( string  fileName,
ConfigOpts confOpt 
)
staticprivate

Check if file should be filtered.

Parameters
fileName- the show number
confOpt- the configuration object
Returns
a boolean, true for sucess, false for failure

Definition at line 31 of file findfiles.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FindFiles::readDir ( string  rDir,
ConfigOpts confOpt 
)
static

Counts and records files from an input directory.

Parameters
rDir- the input directory
confOpt- the configuration object
Returns
a boolean, true for sucess, false for failure

Definition at line 105 of file findfiles.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FindFiles::readFile ( ConfigOpts confOpt)
static

Counts and records files from an input file.

Parameters
confOpt- the configuration object
Returns
a boolean, true for sucess, false for failure

Definition at line 169 of file findfiles.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FindFiles::readInput ( ConfigOpts confOpt)
static

Detect if input is a file or a directory.

Parameters
confOpt- the configuration object
Returns
a boolean, true for sucess, false for failure

Definition at line 70 of file findfiles.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: