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 
36 namespace armarx
37 {
38 
40  {
41  public:
43  {
44  eReadOnly = 0,
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
StatechartGroupDefs.h
armarx::StatechartGroup::getGroupPath
QString getGroupPath() const
Definition: StatechartGroup.cpp:72
armarx::StatechartGroup::contextGenerationEnabled
bool contextGenerationEnabled() const
Definition: StatechartGroup.cpp:108
armarx::StatechartGroup::StatechartGroup
StatechartGroup(QString definitionFilePath, QString groupPath, QString name, QString description, QString packageName, const QList< QString > &proxies, bool generateContext, const QMap< QString, QString > &statechartGroupConfigurations, WriteAccess writable)
Definition: StatechartGroup.cpp:32
armarx::StatechartGroup::existsCMakeLists
bool existsCMakeLists() const
Definition: StatechartGroup.cpp:120
armarx::StateTreeNodePtr
std::shared_ptr< StateTreeNode > StateTreeNodePtr
Definition: StatechartGroupDefs.h:31
armarx::StatechartGroup::WriteAccess
WriteAccess
Definition: StatechartGroup.h:42
armarx::StatechartGroup::eWritable
@ eWritable
Definition: StatechartGroup.h:45
armarx::StatechartGroup::getConfigurations
const QMap< QString, QString > & getConfigurations() const
Definition: StatechartGroup.cpp:96
armarx::StatechartGroup::getDefinitionFilePath
QString getDefinitionFilePath() const
Definition: StatechartGroup.cpp:66
armarx::StatechartGroup::getBoostDefinitionFilePath
std::filesystem::path getBoostDefinitionFilePath() const
Definition: StatechartGroup.cpp:84
armarx::StatechartGroup
Definition: StatechartGroup.h:39
armarx::StatechartGroup::eReadOnly
@ eReadOnly
Definition: StatechartGroup.h:44
armarx::StatechartGroup::getWriteAccess
WriteAccess getWriteAccess()
Definition: StatechartGroup.cpp:183
armarx::StatechartGroup::getName
QString getName() const
Definition: StatechartGroup.cpp:60
armarx::StatechartGroup::getBoostGroupPath
std::filesystem::path getBoostGroupPath() const
Definition: StatechartGroup.cpp:78
armarx::StatechartGroup::getRootNode
StateTreeNodePtr getRootNode()
Definition: StatechartGroup.cpp:54
armarx::StatechartGroup::getDescription
QString getDescription() const
Definition: StatechartGroup.cpp:90
armarx::StatechartGroup::getProxies
QList< QString > getProxies() const
Definition: StatechartGroup.cpp:102
armarx::StatechartGroup::getAllNodes
QVector< StateTreeNodePtr > getAllNodes() const
Definition: StatechartGroup.cpp:138
armarx::StatechartGroup::findNodeByStateName
StateTreeNodePtr findNodeByStateName(QString name)
Definition: StatechartGroup.cpp:132
armarx::StatechartGroup::setConfigurations
void setConfigurations(const QMap< QString, QString > &statechartGroupConfigurations)
Definition: StatechartGroup.cpp:177
armarx::StatechartGroup::getPackageName
QString getPackageName() const
Definition: StatechartGroup.cpp:152
armarx::StatechartGroup::setDescription
void setDescription(const QString &description)
Definition: StatechartGroup.cpp:165
armarx::StatechartGroup::getPackagePath
QString getPackagePath() const
Definition: StatechartGroup.cpp:158
armarx::StatechartGroup::setRootNode
void setRootNode(StateTreeNodePtr rootNode)
Definition: StatechartGroup.cpp:126
armarx::StatechartGroup::getAllStates
QVector< statechartmodel::StatePtr > getAllStates(bool localOnly=true) const
Definition: StatechartGroup.cpp:146
State.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::StatechartGroup::setContextGeneration
void setContextGeneration(bool generateContext)
Definition: StatechartGroup.cpp:114
armarx::StatechartGroup::setProxies
void setProxies(const QList< QString > proxies)
Definition: StatechartGroup.cpp:171