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 37 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 83 of file GroupCloner.cpp.

+ Here is the call graph for this function:

◆ getGroupDependencies()

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

Definition at line 44 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 415 of file GroupCloner.cpp.

+ Here is the caller graph for this function:

◆ getMappedGroups()

QVector< StatechartGroupPtr > getMappedGroups ( const StatechartGroupMapping mapping)

Definition at line 62 of file GroupCloner.cpp.

◆ ProcessXMLFile()

static void ProcessXMLFile ( RapidXmlReaderNode  source,
RapidXmlWriterNode  target,
const Function &  processorFunction 
)
inlinestatic

Definition at line 64 of file GroupCloner.h.

+ Here is the call graph for this function:

◆ RegexReplaceFile()

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

Definition at line 499 of file GroupCloner.cpp.

+ Here is the call graph for this function:

◆ RemoveDir()

bool RemoveDir ( const QString &  dirName)
static

Definition at line 511 of file GroupCloner.cpp.


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