commands::UpsampleTimeFrame
commands::UpsampleTimeFrame
Creates a new TimeFrame by upsampling an existing one.
#include <UpsampleTimeFrame.hpp>
Inherits from commands::ICommand
Public Functions
| Name | |
|---|---|
| UpsampleTimeFrame(UpsampleTimeFrameParams p) | |
| virtual std::string | commandName() const override Return the human-readable command name. |
| virtual std::string | toJson() const override Serialize command parameters to JSON. |
| virtual CommandResult | execute(CommandContext const & ctx) override |
Additional inherited members
Public Functions inherited from commands::ICommand
| Name | |
|---|---|
| virtual | ~ICommand() =default |
| virtual bool | isUndoable() const Report whether this command supports undo. |
| virtual CommandResult | undo(CommandContext const & ctx) Revert the effects of a prior execute() call. |
| virtual int | mergeId() const Return an identifier used for undo merging. |
| virtual bool | mergeWith(ICommand const & other) Attempt to merge this command with a subsequent command of the same type. |
Public Functions Documentation
function UpsampleTimeFrame
explicit UpsampleTimeFrame(
UpsampleTimeFrameParams p
)function commandName
virtual std::string commandName() const overrideReturn the human-readable command name.
Return: Stable command name string.
Reimplements: commands::ICommand::commandName
Used for journal entries and UI display. Must match the name registered in CommandRegistry.
function toJson
virtual std::string toJson() const overrideSerialize command parameters to JSON.
Return: JSON string representing the command parameters.
Reimplements: commands::ICommand::toJson
Typically implemented via rfl::json::write on the command’s params struct.
function execute
virtual CommandResult execute(
CommandContext const & ctx
) overridePrecondition:
ctx.data_manageris non-null;source_time_keyandoutput_time_keyare non-emptysource_time_keyexists in DataManager;upsampling_factoris > 0
Postcondition: On success, output_time_key is registered with the upsampled TimeFrame
Reimplements: commands::ICommand::execute
Updated on 2026-11-13 at 20:25:42 +0000