PropertyDefinitionBriefHelpFormatter.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 ArmarXCore::core
19  * @author Jan Issac (jan dot issac at gmx dot de)
20  * @date 2012
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
25 #pragma once
26 
28 
29 #include <string>
30 #include <vector>
31 #include <list>
32 
33 namespace boost::program_options
34 {
35  class options_description;
36 }
37 
38 namespace armarx
39 {
40  /**
41  * @ingroup properties
42  *
43  * @class PropertyDefinitionBriefHelpFormatter
44  * @brief PropertyDefinitionBriefHelpFormatter
45  */
48  {
49  public:
50  PropertyDefinitionBriefHelpFormatter(boost::program_options::options_description* optionsDescription);
51 
52  std::string formatDefinition(std::string name,
53  std::string description,
54  std::string min,
55  std::string max,
56  std::string defaultValue,
57  std::string casesensitivity,
58  std::string requirement,
59  std::string reged,
60  std::vector<std::string> values, std::string value) override;
61 
62  std::string formatName(std::string name) override
63  {
64  return std::string();
65  }
66  std::string formatDescription(std::string description) override
67  {
68  return std::string();
69  }
70  std::string formatBounds(std::string min, std::string max) override
71  {
72  return std::string();
73  }
74  std::string formatDefault(std::string default_) override
75  {
76  return std::string();
77  }
78  std::string formatCaseSensitivity(std::string caseSensitivity) override
79  {
80  return std::string();
81  }
82  std::string formatRequirement(std::string requirement) override
83  {
84  return std::string();
85  }
86  std::string formatRegex(std::string regex) override
87  {
88  return std::string();
89  }
90  std::string formatValue(std::string value) override
91  {
92  return std::string();
93  }
94  std::string formatValues(std::vector<std::string> values) override
95  {
96  return std::string();
97  }
98  std::string formatAttribute(std::string name, std::string details) override
99  {
100  return std::string();
101  }
102 
103  std::string formatHeader(std::string headerText) override;
104 
105  std::string getFormat() override
106  {
107  return std::string();
108  }
109 
110  protected:
111  boost::program_options::options_description* optionsDescription;
112  };
113 }
114 
armarx::PropertyDefinitionBriefHelpFormatter::formatDefault
std::string formatDefault(std::string default_) override
Definition: PropertyDefinitionBriefHelpFormatter.h:74
armarx::PropertyDefinitionBriefHelpFormatter::formatValues
std::string formatValues(std::vector< std::string > values) override
Definition: PropertyDefinitionBriefHelpFormatter.h:94
armarx::PropertyDefinitionBriefHelpFormatter::formatHeader
std::string formatHeader(std::string headerText) override
Definition: PropertyDefinitionBriefHelpFormatter.cpp:68
armarx::PropertyDefinitionBriefHelpFormatter::formatName
std::string formatName(std::string name) override
Definition: PropertyDefinitionBriefHelpFormatter.h:62
armarx::max
std::vector< T > max(const std::vector< T > &v1, const std::vector< T > &v2)
Definition: VectorHelpers.h:267
armarx::PropertyDefinitionBriefHelpFormatter::optionsDescription
boost::program_options::options_description * optionsDescription
Definition: PropertyDefinitionBriefHelpFormatter.h:111
ProsthesisInterface.values
values
Definition: ProsthesisInterface.py:190
PropertyDefinitionFormatter.h
boost::program_options
Definition: ApplicationOptions.h:37
armarx::PropertyDefinitionBriefHelpFormatter::formatCaseSensitivity
std::string formatCaseSensitivity(std::string caseSensitivity) override
Definition: PropertyDefinitionBriefHelpFormatter.h:78
armarx::PropertyDefinitionBriefHelpFormatter::formatRegex
std::string formatRegex(std::string regex) override
Definition: PropertyDefinitionBriefHelpFormatter.h:86
armarx::PropertyDefinitionBriefHelpFormatter::formatDefinition
std::string formatDefinition(std::string name, std::string description, std::string min, std::string max, std::string defaultValue, std::string casesensitivity, std::string requirement, std::string reged, std::vector< std::string > values, std::string value) override
Definition: PropertyDefinitionBriefHelpFormatter.cpp:43
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::PropertyDefinitionBriefHelpFormatter::PropertyDefinitionBriefHelpFormatter
PropertyDefinitionBriefHelpFormatter(boost::program_options::options_description *optionsDescription)
Definition: PropertyDefinitionBriefHelpFormatter.cpp:37
armarx::PropertyDefinitionBriefHelpFormatter::formatValue
std::string formatValue(std::string value) override
Definition: PropertyDefinitionBriefHelpFormatter.h:90
armarx::PropertyDefinitionBriefHelpFormatter
PropertyDefinitionBriefHelpFormatter.
Definition: PropertyDefinitionBriefHelpFormatter.h:46
armarx::PropertyDefinitionBriefHelpFormatter::formatRequirement
std::string formatRequirement(std::string requirement) override
Definition: PropertyDefinitionBriefHelpFormatter.h:82
armarx::PropertyDefinitionBriefHelpFormatter::formatDescription
std::string formatDescription(std::string description) override
Definition: PropertyDefinitionBriefHelpFormatter.h:66
armarx::min
std::vector< T > min(const std::vector< T > &v1, const std::vector< T > &v2)
Definition: VectorHelpers.h:294
armarx::PropertyDefinitionBriefHelpFormatter::formatBounds
std::string formatBounds(std::string min, std::string max) override
Definition: PropertyDefinitionBriefHelpFormatter.h:70
armarx::PropertyDefinitionFormatter
PropertyDefinitionFormatter is the base class for all formatters of PropertyDefinitions.
Definition: PropertyDefinitionFormatter.h:38
armarx::PropertyDefinitionBriefHelpFormatter::formatAttribute
std::string formatAttribute(std::string name, std::string details) override
Definition: PropertyDefinitionBriefHelpFormatter.h:98
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::PropertyDefinitionBriefHelpFormatter::getFormat
std::string getFormat() override
Definition: PropertyDefinitionBriefHelpFormatter.h:105