Project Files/Testing Source/main.cpp
inline const char* statusToName(const AsynchTasks::ETaskStatus& pStatus) {
    switch (pStatus) {
    case AsynchTasks::ETaskStatus::Error: return "ERROR";
    case AsynchTasks::ETaskStatus::Setup: return "SETUP";
    case AsynchTasks::ETaskStatus::Pending: return "PENDING";
    case AsynchTasks::ETaskStatus::In_Progress: return "IN_PROGRESS";
    case AsynchTasks::ETaskStatus::Callback_On_Update: return "CALLBACK_ON_UPDATE";
    case AsynchTasks::ETaskStatus::Completed: return "COMPLETE";
    default: return "Unknown Status";
    }
}
/*
    statusToName - Convert a AsynchTask status value into a printable string
    Author: Mitchell Croft
    Created: 10/01/2017
    Modified: 10/01/2017

    param[in] pStatus - The AsynchTasks::ETaskStatus to convert to a string

    return const char* - Returns a c-string describing the status
*/
Convert a AsynchTask status value into a printable string
Author: Mitchell Croft
Created: 10/01/2017
Modified: 10/01/2017

param[in] pStatus - The AsynchTasks::ETaskStatus to convert to a string

return const char* - Returns a c-string describing the status
Convert a AsynchTask status value into a printable string Author : Mitchell Croft Created : 10 / 01 / 2017 Modified : 10 / 01 / 2017 param [ in ] pStatus - The AsynchTasks :: ETaskStatus to convert to a string return const char * - Returns a c - string describing the status
inline const char* statusToName(const AsynchTasks::ETaskStatus& pStatus) {
    switch (pStatus) {
    case AsynchTasks::ETaskStatus::Error: return "ERROR";
    case AsynchTasks::ETaskStatus::Setup: return "SETUP";
    case AsynchTasks::ETaskStatus::Pending: return "PENDING";
    case AsynchTasks::ETaskStatus::In_Progress: return "IN_PROGRESS";
    case AsynchTasks::ETaskStatus::Callback_On_Update: return "CALLBACK_ON_UPDATE";
    case AsynchTasks::ETaskStatus::Completed: return "COMPLETE";
    default: return "Unknown Status";
    }
}
inline const char * statusToName ( const AsynchTasks :: ETaskStatus & pStatus ) { switch ( pStatus ) { case AsynchTasks :: ETaskStatus :: Error : return " " ; case AsynchTasks :: ETaskStatus :: Setup : return " " ; case AsynchTasks :: ETaskStatus :: Pending : return " " ; case AsynchTasks :: ETaskStatus :: In_Progress : return " " ; case AsynchTasks :: ETaskStatus :: Callback_On_Update : return " " ; case AsynchTasks :: ETaskStatus :: Completed : return " " ; default : return " " ; } }
statusToName - Convert a AsynchTask status value into a printable string
Author: Mitchell Croft
Created: 10/01/2017
Modified: 10/01/2017
statusToName - Convert a AsynchTask status value into a printable string Author : Mitchell Croft Created : 10 / 01 / 2017 Modified : 10 / 01 / 2017