GroupCloner Class Reference

#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/cloning/GroupCloner.h>

Public Member Functions

std::optional< StatechartGroupMappingcloneGroupsTo (const QVector< QPair< StatechartGroupPtr, QString > > &groupsNames, const QString &packageDir, const StatechartGroupMapping &mapping=StatechartGroupMapping(), bool createNewUUIDs=true)
 
QVector< StatechartGroupPtrgetGroupDependencies (const StatechartGroupPtr &group, bool includeSelf=false)
 
QVector< StatechartGroupPtrgetMappedGroups (const StatechartGroupMapping &mapping)
 
 GroupCloner (const std::weak_ptr< StateTreeModel > &treeModel, const ArmarXPackageToolInterfacePtr &packageTool)
 

Static Public Member Functions

static QVector< StatechartGroupPtrGetGroupsFromStates (const StateTreeModelPtr &treeModel, const QVector< statechartmodel::StatePtr > &states)
 
template<typename Function>
static void ProcessXMLFile (RapidXmlReaderNode source, RapidXmlWriterNode target, const Function &processorFunction)
 
static void RegexReplaceFile (const QString &srcFilePath, const QString &tgtFilePath, const QVector< QPair< QRegExp, QString > > &replaceList)
 
static bool RemoveDir (const QString &dirName)
 

Detailed Description

Definition at line 48 of file GroupCloner.h.

Constructor & Destructor Documentation

◆ GroupCloner()

GroupCloner ( const std::weak_ptr< StateTreeModel > & treeModel,
const ArmarXPackageToolInterfacePtr & packageTool )

Definition at line 39 of file GroupCloner.cpp.

Member Function Documentation

◆ cloneGroupsTo()

std::optional< StatechartGroupMapping > cloneGroupsTo ( const QVector< QPair< StatechartGroupPtr, QString > > & groupsNames,
const QString & packageDir,
const StatechartGroupMapping & mapping = StatechartGroupMapping(),
bool createNewUUIDs = true )

Definition at line 87 of file GroupCloner.cpp.

◆ getGroupDependencies()

QVector< StatechartGroupPtr > getGroupDependencies ( const StatechartGroupPtr & group,
bool includeSelf = false )

Definition at line 46 of file GroupCloner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGroupsFromStates()

QVector< StatechartGroupPtr > GetGroupsFromStates ( const StateTreeModelPtr & treeModel,
const QVector< statechartmodel::StatePtr > & states )
static

Definition at line 463 of file GroupCloner.cpp.

+ Here is the caller graph for this function:

◆ getMappedGroups()

QVector< StatechartGroupPtr > getMappedGroups ( const StatechartGroupMapping & mapping)

Definition at line 65 of file GroupCloner.cpp.

◆ ProcessXMLFile()

template<typename Function>
static void ProcessXMLFile ( RapidXmlReaderNode source,
RapidXmlWriterNode target,
const Function & processorFunction )
inlinestatic

Definition at line 66 of file GroupCloner.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RegexReplaceFile()

void RegexReplaceFile ( const QString & srcFilePath,
const QString & tgtFilePath,
const QVector< QPair< QRegExp, QString > > & replaceList )
static

Definition at line 553 of file GroupCloner.cpp.

+ Here is the call graph for this function:

◆ RemoveDir()

bool RemoveDir ( const QString & dirName)
static

Definition at line 568 of file GroupCloner.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: