13#include "MantidAPI/DllConfig.h"
33 ScriptBuilder(
const std::shared_ptr<HistoryView> &view, std::string versionSpecificity =
"old",
34 bool appendTimestamp =
false, std::vector<std::string> ignoreTheseAlgs = {},
35 std::vector<std::vector<std::string>> ignoreTheseAlgProperties = {},
bool appendExecCount =
false);
38 const std::string build();
41 void writeHistoryToStream(std::ostringstream &os, std::vector<HistoryItem>::const_iterator &iter,
int depth = 1);
42 void buildChildren(std::ostringstream &os, std::vector<HistoryItem>::const_iterator &iter,
int depth = 1);
46 void createStringForAlg(std::ostringstream &os, std::shared_ptr<const Mantid::API::AlgorithmHistory> &algHistory);
This class stores information about the Command History used by algorithms on a workspace.
This class build a sttring which cana be executed as a python script.
std::vector< std::vector< std::string > > m_propertiesToIgnore
std::vector< std::string > m_algsToIgnore
virtual ~ScriptBuilder()=default
const std::vector< HistoryItem > m_historyItems
std::string m_versionSpecificity
This class stores information about the parameters used by an algorithm.
Helper class which provides the Collimation Length for SANS instruments.