MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / AppCommandList

Class AppCommandList

WinArk/AppCommandBase.h:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62struct 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
73private:
74 std::vector<std::shared_ptr<AppCommand>> _commands;
75};
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected