main.cpp
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 Core::application::StatechartGroupDocGenerator
19
* @author Mirko Waechter
20
* @date 2014
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
25
#include "
StatechartGroupDocGeneratorApp.h
"
26
#include <
ArmarXCore/core/logging/Logging.h
>
27
28
int
main
(
int
argc,
char
* argv[])
29
{
30
if
(argc <= 1 || std::string(argv[1]) ==
"--print-options"
)
31
{
32
return
0;
33
}
34
35
auto
list
=
armarx::StatechartGroupDocGenerator::FindAllStatechartGroupDefinitions
(argv[1]);
36
ARMARX_DEBUG_S
<<
"Found "
<<
list
.size() <<
" Statechart Groups in "
<< argv[1];
37
38
armarx::StatechartGroupDocGenerator
generator;
39
40
if
(argc >= 3)
41
{
42
generator.
setOutputpath
(argv[2]);
43
}
44
45
generator.
buildReferenceIndex
(
list
);
46
generator.
generateDoxygenFiles
(
list
);
47
48
if
(
list
.size() > 0)
49
{
50
ARMARX_DEBUG_S
<<
"Generated "
<<
list
.size() <<
" files."
;
51
}
52
}
armarx::StatechartGroupDocGenerator::FindAllStatechartGroupDefinitions
static std::vector< std::string > FindAllStatechartGroupDefinitions(const std::filesystem::path &path)
Definition:
StateGroupDocGenerator.cpp:448
armarx::StatechartGroupDocGenerator::buildReferenceIndex
void buildReferenceIndex(const std::vector< std::string > &groups)
Definition:
StateGroupDocGenerator.cpp:401
list
list(APPEND SOURCES ${QT_RESOURCES}) set(COMPONENT_LIBS ArmarXGui ArmarXCoreObservers ArmarXCoreEigen3Variants PlotterController $
Definition:
CMakeLists.txt:49
armarx::StatechartGroupDocGenerator
Definition:
StateGroupDocGenerator.h:35
armarx::StatechartGroupDocGenerator::generateDoxygenFiles
void generateDoxygenFiles(const std::vector< std::string > &groups)
Definition:
StateGroupDocGenerator.cpp:435
armarx::StatechartGroupDocGenerator::setOutputpath
void setOutputpath(const std::string &outputPath)
Definition:
StateGroupDocGenerator.cpp:443
StatechartGroupDocGeneratorApp.h
ARMARX_DEBUG_S
#define ARMARX_DEBUG_S
Definition:
Logging.h:198
main
int main(int argc, char *argv[])
Definition:
main.cpp:31
Logging.h
ArmarXCore
applications
StatechartGroupDocGenerator
main.cpp
Generated on Sat Oct 12 2024 09:14:01 for armarx_documentation by
1.8.17