| 60 | }; |
| 61 | |
| 62 | struct AppCommandList final : AppCommandBase<AppCommandList> { |
| 63 | AppCommandList(PCWSTR name = nullptr, AppCommandCallback<AppCommandList> cb = nullptr) : AppCommandBase(name, cb) {} |
| 64 | |
| 65 | void AddCommand(std::shared_ptr<AppCommand> command); |
| 66 | |
| 67 | std::shared_ptr<AppCommand> GetCommand(size_t i) const; |
| 68 | int GetCount() const; |
| 69 | |
| 70 | bool Execute() override; |
| 71 | bool Undo() override; |
| 72 | |
| 73 | private: |
| 74 | std::vector<std::shared_ptr<AppCommand>> _commands; |
| 75 | }; |
| 76 |
nothing calls this directly
no outgoing calls
no test coverage detected