@@ -20,7 +20,7 @@ namespace ppc::task {
2020
2121// / @brief Represents the type of task (parallelization technology).
2222// / @details Used to select the implementation type in tests and execution logic.
23- enum TypeOfTask : uint8_t {
23+ enum class TypeOfTask : uint8_t {
2424 // / Use all available implementations
2525 kALL ,
2626 // / MPI (Message Passing Interface)
@@ -57,7 +57,7 @@ inline std::string TypeOfTaskToString(TypeOfTask type) {
5757}
5858
5959// / @brief Indicates whether a task is enabled or disabled.
60- enum StatusOfTask : uint8_t {
60+ enum class StatusOfTask : uint8_t {
6161 // / Task is enabled and should be executed
6262 kEnabled ,
6363 // / Task is disabled and will be skipped
@@ -68,7 +68,7 @@ enum StatusOfTask : uint8_t {
6868// / @param status_of_task Task status (enabled or disabled).
6969// / @return "enabled" if the task is enabled, otherwise "disabled".
7070inline std::string GetStringTaskStatus (StatusOfTask status_of_task) {
71- if (status_of_task == kDisabled ) {
71+ if (status_of_task == StatusOfTask:: kDisabled ) {
7272 return " disabled" ;
7373 }
7474 return " enabled" ;
@@ -96,7 +96,7 @@ inline std::string GetStringTaskType(TypeOfTask type_of_task, const std::string
9696 return type_str + " _" + std::string ((*list_settings)[" tasks" ][type_str]);
9797}
9898
99- enum StateOfTesting : uint8_t { kFunc , kPerf };
99+ enum class StateOfTesting : uint8_t { kFunc , kPerf };
100100
101101template <typename InType, typename OutType>
102102// / @brief Base abstract class representing a generic task with a defined pipeline.
@@ -257,9 +257,9 @@ class Task {
257257 private:
258258 InType input_{};
259259 OutType output_{};
260- StateOfTesting state_of_testing_ = kFunc ;
261- TypeOfTask type_of_task_ = kUnknown ;
262- StatusOfTask status_of_task_ = kEnabled ;
260+ StateOfTesting state_of_testing_ = StateOfTesting:: kFunc ;
261+ TypeOfTask type_of_task_ = TypeOfTask:: kUnknown ;
262+ StatusOfTask status_of_task_ = StatusOfTask:: kEnabled ;
263263 std::chrono::high_resolution_clock::time_point tmp_time_point_;
264264 enum class PipelineStage : uint8_t {
265265 kNone ,
0 commit comments