Files
wg_cpso/CPSO/Commands/0082_HistoryOutput/CPropagateHistoryOutput.cs

42 lines
1.3 KiB
C#
Raw Permalink Normal View History

2026-03-25 18:20:24 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CPSO;
using CaeModel;
using CaeGlobals;
namespace CPSO.Commands
{
[Serializable]
class CPropagateHistoryOutput : PreprocessCommand
{
// Variables
private string _stepName;
private string _historyOutputName;
// Constructor
public CPropagateHistoryOutput(string stepName, string historyOutputName)
: base("Propagate history output")
{
_stepName = stepName;
_historyOutputName = historyOutputName;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.PropagateHistoryOutput(_stepName, _historyOutputName);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + _stepName + ": " + _historyOutputName;
}
}
}