-
-
Save sunmeat/947b9a65ab06dad40cbf1e83706d15f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() { | |
| /// Choose task theme to test program behavior | |
| /// naming rule: ThemeTask has the same Name as target class with postfix Task | |
| /// <sample> auto task = TaskTheme::GreetingTask; </sample> | |
| /// by defaulttask has pointer to lastest work | |
| auto taskTheme = static_cast<TaskTheme>(static_cast<int>(TaskTheme::LastOneMark) - 1); | |
| TaskFactory factory; | |
| auto task = factory.GetTask(taskTheme); | |
| if (task == nullptr) { | |
| cout << "Task theme not found\n"; | |
| return 0; | |
| } | |
| task->Run(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
дякую!