classes/CTask.cpp
CTask::CTask(
        const std::string &watchFolder,         // Watch folder path
        std::shared_ptr<CTask::IAction> action, // Action object
        int watchDepth,                         // Watch depth -1= all, 0=just watch folder
        int killCount                           // Kill count
        )
        : m_taskAction{action}, m_killCount{killCount}
    {
        // ASSERT if passed parameters invalid
        assert(watchFolder.length() != 0); // Length == 0
        assert(watchDepth >= -1);          // < -1
        assert(action != nullptr);         // nullptr
        assert(killCount >= 0);            // < 0
        // Create CFileApprise watcher object.
        m_watcher = std::make_unique<CApprise>(watchFolder, watchDepth);
    }
// ===========================
// PRIVATE TYPES AND CONSTANTS
// ===========================
// ==========================
// PUBLIC TYPES AND CONSTANTS
// ==========================
// ========================
// PRIVATE STATIC VARIABLES
// ========================
// =======================
// PUBLIC STATIC VARIABLES
// =======================
// ===============
// PRIVATE METHODS
// ===============
// ==============
// PUBLIC METHODS
// ==============
//
// Task object constructor.
//

PRIVATE TYPES AND CONSTANTS

PUBLIC TYPES AND CONSTANTS

PRIVATE STATIC VARIABLES

PUBLIC STATIC VARIABLES

PRIVATE METHODS

PUBLIC METHODS

Task object constructor.
PRIVATE TYPES AND CONSTANTS PUBLIC TYPES AND CONSTANTS PRIVATE STATIC VARIABLES PUBLIC STATIC VARIABLES PRIVATE METHODS PUBLIC METHODS Task object constructor .
CTask::CTask(
        const std::string &watchFolder,         
        std::shared_ptr<CTask::IAction> action, 
        int watchDepth,                         
        int killCount                           
        )
        : m_taskAction{action}, m_killCount{killCount}
    {
        assert(watchFolder.length() != 0); 
        assert(watchDepth >= -1);          
        assert(action != nullptr);         
        assert(killCount >= 0);            
        m_watcher = std::make_unique<CApprise>(watchFolder, watchDepth);
    }
CTask :: CTask ( const std :: string & watchFolder , std :: shared_ptr < CTask :: IAction > action , int watchDepth , int killCount ) : m_taskAction { action } , m_killCount { killCount } { assert ( watchFolder . length ( ) != 0 ) ; assert ( watchDepth >= -1 ) ; assert ( action != nullptr ) ; assert ( killCount >= 0 ) ; m_watcher = std :: make_unique < CApprise > ( watchFolder , watchDepth ) ; }
PRIVATE TYPES AND CONSTANTS
PRIVATE TYPES AND CONSTANTS
// Watch folder path
 // Action object
 // Watch depth -1= all, 0=just watch folder
 // Kill count
 // ASSERT if passed parameters invalid
 // Length == 0
 // < -1
 // nullptr
 // < 0
 // Create CFileApprise watcher object.
