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) { |