StatechartGroup.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 <filesystem>
27#include <memory>
28
29#include <QList>
30#include <QString>
31
33
34#include "StatechartGroupDefs.h"
35
36namespace armarx
37{
38
40 {
41 public:
43 {
46 };
47
48 StatechartGroup(QString definitionFilePath,
49 QString groupPath,
50 QString name,
51 QString description,
52 QString packageName,
53 const QList<QString>& proxies,
54 bool generateContext,
55 const QMap<QString, QString>& statechartGroupConfigurations,
56 WriteAccess writable);
58
59 QString getName() const;
60 QString getDefinitionFilePath() const;
61 QString getGroupPath() const;
62 std::filesystem::path getBoostGroupPath() const;
63 std::filesystem::path getBoostDefinitionFilePath() const;
64 QString getDescription() const;
65 const QMap<QString, QString>& getConfigurations() const;
66 QList<QString> getProxies() const;
67 bool contextGenerationEnabled() const;
68 void setContextGeneration(bool generateContext);
69 bool existsCMakeLists() const;
70 void setRootNode(StateTreeNodePtr rootNode);
72 QVector<StateTreeNodePtr> getAllNodes() const;
73 QVector<statechartmodel::StatePtr> getAllStates(bool localOnly = true) const;
74
75 QString getPackageName() const;
76 QString getPackagePath() const;
77
78 void setDescription(const QString& description);
79 void setProxies(const QList<QString> proxies);
80 void setConfigurations(const QMap<QString, QString>& statechartGroupConfigurations);
82
83 private:
84 QString definitionFilePath;
85 QString groupPath;
86 QString name;
87 QString description;
88 QString packageName;
89 StateTreeNodePtr rootNode;
90 QList<QString> proxies;
91 bool generateContext;
92 WriteAccess writable;
93 QMap<QString, QString> statechartGroupConfigurations;
94 };
95
96} // namespace armarx
QVector< statechartmodel::StatePtr > getAllStates(bool localOnly=true) const
void setContextGeneration(bool generateContext)
void setRootNode(StateTreeNodePtr rootNode)
StateTreeNodePtr findNodeByStateName(QString name)
QList< QString > getProxies() const
void setDescription(const QString &description)
bool contextGenerationEnabled() const
std::filesystem::path getBoostGroupPath() const
StatechartGroup(QString definitionFilePath, QString groupPath, QString name, QString description, QString packageName, const QList< QString > &proxies, bool generateContext, const QMap< QString, QString > &statechartGroupConfigurations, WriteAccess writable)
QString getDescription() const
void setConfigurations(const QMap< QString, QString > &statechartGroupConfigurations)
QString getDefinitionFilePath() const
QVector< StateTreeNodePtr > getAllNodes() const
std::filesystem::path getBoostDefinitionFilePath() const
void setProxies(const QList< QString > proxies)
const QMap< QString, QString > & getConfigurations() const
StateTreeNodePtr getRootNode()
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< StateTreeNode > StateTreeNodePtr