ArmarXPackageToolInterface.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 ArmarX::
19 * @author Mirko Waechter ( mirko.waechter at kit dot edu)
20 * @date 2014
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24 
25 
26 #pragma once
27 
28 #include <memory>
29 #include "CMakePackageFinder.h"
30 namespace armarx
31 {
32 
33  /**
34  * @class ArmarXPackageToolInterface
35  * @ingroup core-utility
36  * @brief The ArmarXPackageToolInterface class
37  */
39  {
40  public:
42  bool checkPackagePath(const std::string& pathToPackageRoot, std::string& output) const;
43  bool checkPackagePath(const std::string& pathToPackageRoot) const;
44  bool addStatechart(const std::string& statechartGroupName, const std::string& statePath, const std::string& packagePath = "") const;
45  bool addFullXmlStatechart(const std::string& statechartGroupName, const std::string& statePath, const std::string& packagePath) const;
46  bool addXmlOnlyXmlStatechart(const std::string& statechartGroupName, const std::string& statePath, const std::string& packagePath) const;
47  bool addCppOnlyXmlStatechart(const std::string& statechartGroupName, const std::string& statePath, const std::string& packagePath) const;
48  std::string getLastOutput() const;
49  private:
50  bool addXmlStatechart(const std::string& componentType, const std::string& replacementStrategyType, const std::string& statechartGroupName, const std::string& statePath, const std::string& packagePath) const;
51  mutable std::string lastOutput;
52  CMakePackageFinder finder;
53  std::string packageToolPath;
54  };
55  using ArmarXPackageToolInterfacePtr = std::shared_ptr<ArmarXPackageToolInterface>;
56 
57 }
58 
armarx::ArmarXPackageToolInterface::getLastOutput
std::string getLastOutput() const
Definition: ArmarXPackageToolInterface.cpp:120
armarx::ArmarXPackageToolInterfacePtr
std::shared_ptr< ArmarXPackageToolInterface > ArmarXPackageToolInterfacePtr
Definition: ArmarXPackageToolInterface.h:55
armarx::CMakePackageFinder
The CMakePackageFinder class provides an interface to the CMake Package finder capabilities.
Definition: CMakePackageFinder.h:53
armarx::ArmarXPackageToolInterface
The ArmarXPackageToolInterface class.
Definition: ArmarXPackageToolInterface.h:38
armarx::ArmarXPackageToolInterface::addStatechart
bool addStatechart(const std::string &statechartGroupName, const std::string &statePath, const std::string &packagePath="") const
Definition: ArmarXPackageToolInterface.cpp:84
armarx::ArmarXPackageToolInterface::addCppOnlyXmlStatechart
bool addCppOnlyXmlStatechart(const std::string &statechartGroupName, const std::string &statePath, const std::string &packagePath) const
Definition: ArmarXPackageToolInterface.cpp:115
armarx::ArmarXPackageToolInterface::checkPackagePath
bool checkPackagePath(const std::string &pathToPackageRoot, std::string &output) const
Definition: ArmarXPackageToolInterface.cpp:57
armarx::ArmarXPackageToolInterface::ArmarXPackageToolInterface
ArmarXPackageToolInterface()
Definition: ArmarXPackageToolInterface.cpp:39
CMakePackageFinder.h
armarx::ArmarXPackageToolInterface::addXmlOnlyXmlStatechart
bool addXmlOnlyXmlStatechart(const std::string &statechartGroupName, const std::string &statePath, const std::string &packagePath) const
Definition: ArmarXPackageToolInterface.cpp:110
armarx::ArmarXPackageToolInterface::addFullXmlStatechart
bool addFullXmlStatechart(const std::string &statechartGroupName, const std::string &statePath, const std::string &packagePath) const
Definition: ArmarXPackageToolInterface.cpp:105
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28