src/woof/woof.cc
// The woof::woof class constructor.
// Accepts four arguments: the path to the file or directory to watch, the command to execute
// when the file or directory changes, the polling interval, and whether or not to run
// the command on startup.
//
//   * std::string path     - The path to the file or directory to watch.
//   * std::string callback - The command to execute when the file or directory changes.
//   * int polling_interval - The polling interval (in seconds).
//   * bool run_on_startup  - Whether or not to run the command on startup.
The woof::woof class constructor.
Accepts four arguments: the path to the file or directory to watch, the command to execute
when the file or directory changes, the polling interval, and whether or not to run
the command on startup.

:string path     - The path to the file or directory to watch.
std::string callback - The command to execute when the file or directory changes.
int polling_interval - The polling interval (in seconds).
bool run_on_startup  - Whether or not to run the command on startup.
The woof :: woof class constructor . Accepts four arguments : the path to the file or directory to watch the command to execute when the file or directory changes the polling interval and whether or not to run the command on startup . : string path - The path to the file or directory to watch . std :: string callback - The command to execute when the file or directory changes . int polling_interval - The polling interval ( in seconds ) . bool run_on_startup - Whether or not to run the command on startup .
woof::woof(std::string path, std::string callback, int polling_interval, bool run_on_startup)
    {
        this->path = path;
        this->callback = callback;
        this->polling_interval = polling_interval;
        if (run_on_startup)
        {
            run_callback();
        }
        reset_file_map();
    }
woof :: woof ( std :: string path , std :: string callback , int polling_interval , bool run_on_startup ) { this -> path = path ; this -> callback = callback ; this -> polling_interval = polling_interval ; if ( run_on_startup ) { run_callback ( ) ; } reset_file_map ( ) ; }
The woof::woof class constructor.
The woof :: woof class constructor .