Go to the documentation of this file.
55 const QVector<QPair<StatechartGroupPtr, QString>>& groupsNames,
56 const QString& packageDir,
58 bool createNewUUIDs =
true);
63 template<
typename Function>
66 for (
const auto& pair :
source.get_all_attributes())
68 std::string valueToStore = processorFunction(
source.name(), pair.first, pair.second);
69 target.append_attribute(pair.first, valueToStore);
76 target.append_data_node(node.value());
84 throw LocalException(
"Unsupported node type.");
90 static bool RemoveDir(
const QString& dirName);
91 static void RegexReplaceFile(
const QString& srcFilePath,
const QString& tgtFilePath,
const QVector<QPair<QRegExp, QString>>& replaceList);
94 static bool CopyRecursively(
const QString& srcPath,
const QString& tgtParentDirPath);
96 std::weak_ptr<StateTreeModel> treeModel;
99 void registerGroups(
const QVector<StatechartGroupPtr>& groups,
const StatechartGroupMapping& mapping,
const QString& packageDir);
std::shared_ptr< StateTreeModel > StateTreeModelPtr
@ node_data
A data node. Name is empty. Value contains data text.
QVector< StatechartGroupPtr > getMappedGroups(const StatechartGroupMapping &mapping)
std::shared_ptr< ArmarXPackageToolInterface > ArmarXPackageToolInterfacePtr
@ node_element
An element node. Name contains element name. Value contains text of first data node.
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
static QVector< StatechartGroupPtr > GetGroupsFromStates(const StateTreeModelPtr &treeModel, const QVector< statechartmodel::StatePtr > &states)
static void ProcessXMLFile(RapidXmlReaderNode source, RapidXmlWriterNode target, const Function &processorFunction)
std::shared_ptr< GroupCloner > GroupClonerPtr
static void RegexReplaceFile(const QString &srcFilePath, const QString &tgtFilePath, const QVector< QPair< QRegExp, QString >> &replaceList)
GroupCloner(const std::weak_ptr< StateTreeModel > &treeModel, const ArmarXPackageToolInterfacePtr &packageTool)
QVector< StatechartGroupPtr > getGroupDependencies(const StatechartGroupPtr &group, bool includeSelf=false)
static bool RemoveDir(const QString &dirName)
std::optional< StatechartGroupMapping > cloneGroupsTo(const QVector< QPair< StatechartGroupPtr, QString >> &groupsNames, const QString &packageDir, const StatechartGroupMapping &mapping=StatechartGroupMapping(), bool createNewUUIDs=true)
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
std::shared_ptr< StatechartGroup > StatechartGroupPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.