StatechartGroupMapping.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5
*
6
* ArmarX is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*
10
* ArmarX is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* @package
19
* @author
20
* @date
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
#pragma once
25
26
#include <optional>
27
#include <set>
28
29
#include <QString>
30
31
namespace
armarx
32
{
33
34
struct
StatechartGroupMapping
35
{
36
struct
StateMapping
37
{
38
QString
stateName
;
39
QString
fromUuid
;
40
QString
toUuid
;
41
42
bool
43
operator<
(
const
StateMapping
& rhs)
const
44
{
45
return
stateName
.compare(rhs.
stateName
) < 0;
46
}
47
};
48
49
struct
GroupMapping
50
{
51
QString
groupName
;
52
QString
newGroupName
;
53
QString
groupPackage
;
54
std::set<StateMapping>
stateMappings
;
55
56
bool
57
operator<
(
const
GroupMapping
& rhs)
const
58
{
59
return
groupName
.compare(rhs.
groupName
) < 0;
60
}
61
};
62
63
std::set<GroupMapping>
groupMappings
;
64
65
static
std::optional<StatechartGroupMapping>
66
ReadStatechartGroupMappingFile
(
const
QString& packageDir);
67
68
std::optional<QString>
queryMappedGroupName
(
const
QString& sourceGroupName)
const
;
69
std::optional<QString>
queryMappedUuid
(
const
QString& sourceUuid)
const
;
70
void
writeToFile
(
const
QString& packageDir)
const
;
71
};
72
73
}
// namespace armarx
armarx::StatechartGroupMapping::StateMapping::fromUuid
QString fromUuid
Definition:
StatechartGroupMapping.h:39
armarx::StatechartGroupMapping::StateMapping
Definition:
StatechartGroupMapping.h:36
armarx::StatechartGroupMapping::queryMappedUuid
std::optional< QString > queryMappedUuid(const QString &sourceUuid) const
Definition:
StatechartGroupMapping.cpp:105
armarx::StatechartGroupMapping::GroupMapping::groupPackage
QString groupPackage
Definition:
StatechartGroupMapping.h:53
armarx::StatechartGroupMapping::StateMapping::toUuid
QString toUuid
Definition:
StatechartGroupMapping.h:40
armarx::StatechartGroupMapping::writeToFile
void writeToFile(const QString &packageDir) const
Definition:
StatechartGroupMapping.cpp:122
armarx::StatechartGroupMapping
Definition:
StatechartGroupMapping.h:34
armarx::StatechartGroupMapping::StateMapping::operator<
bool operator<(const StateMapping &rhs) const
Definition:
StatechartGroupMapping.h:43
armarx::StatechartGroupMapping::GroupMapping
Definition:
StatechartGroupMapping.h:49
armarx::StatechartGroupMapping::groupMappings
std::set< GroupMapping > groupMappings
Definition:
StatechartGroupMapping.h:63
armarx::StatechartGroupMapping::ReadStatechartGroupMappingFile
static std::optional< StatechartGroupMapping > ReadStatechartGroupMappingFile(const QString &packageDir)
Definition:
StatechartGroupMapping.cpp:39
armarx::StatechartGroupMapping::GroupMapping::operator<
bool operator<(const GroupMapping &rhs) const
Definition:
StatechartGroupMapping.h:57
armarx::StatechartGroupMapping::StateMapping::stateName
QString stateName
Definition:
StatechartGroupMapping.h:38
armarx::StatechartGroupMapping::GroupMapping::groupName
QString groupName
Definition:
StatechartGroupMapping.h:51
armarx::StatechartGroupMapping::GroupMapping::newGroupName
QString newGroupName
Definition:
StatechartGroupMapping.h:52
armarx::StatechartGroupMapping::queryMappedGroupName
std::optional< QString > queryMappedGroupName(const QString &sourceGroupName) const
Definition:
StatechartGroupMapping.cpp:91
armarx::StatechartGroupMapping::GroupMapping::stateMappings
std::set< StateMapping > stateMappings
Definition:
StatechartGroupMapping.h:54
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:27
ArmarXGui
gui-plugins
StatechartEditorPlugin
cloning
StatechartGroupMapping.h
Generated on Sat Mar 29 2025 09:17:22 for armarx_documentation by
1.8.17