A wrapper for the payload store that constructs command objects.
More...
Definition at line 23 of file alt_command_group_store.hpp.
#include <alt_command_group_store.hpp>
◆ command_groups_t
using altintegration::AltCommandGroupStore::command_groups_t = std::vector<std::unique_ptr<CommandGroup> > |
◆ AltCommandGroupStore()
◆ getCommand()
template<typename Payload >
std::unique_ptr< CommandGroup > altintegration::AltCommandGroupStore::getCommand |
( |
const BlockIndex< AltBlock > & |
block, |
|
|
const typename Payload::id_t & |
id, |
|
|
ValidationState & |
state |
|
) |
| |
- Parameters
-
[in] | block | load from this block |
[in] | id | the id of the payload |
[out] | state | will be set to Error if the payload fails to validate |
- Returns
- a reference to the requested command group that is valid until the next getCommand(s) call or null if the payload fails to validate
◆ getCommands()
- Parameters
-
[in] | block | load from this block |
[out] | state | will be set to Error if one of the payloads fails to validate |
- Returns
- a vector of references to commands that are valid until the next getCommand(s) call or null if one or more payloads fails to validate
The documentation for this struct was generated from the following file: