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
27#include <list>
28#include <string>
29#include <vector>
30
32
34{
35 class options_description;
36}
37
38namespace armarx
39{
40 /**
41 * @ingroup properties
42 *
43 * @class PropertyDefinitionBriefHelpFormatter
44 * @brief PropertyDefinitionBriefHelpFormatter
45 */
47 {
48 public:
50 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,
61 std::string value) override;
62
63 std::string
64 formatName(std::string name) override
65 {
66 return std::string();
67 }
68
69 std::string
70 formatDescription(std::string description) override
71 {
72 return std::string();
73 }
74
75 std::string
76 formatBounds(std::string min, std::string max) override
77 {
78 return std::string();
79 }
80
81 std::string
82 formatDefault(std::string default_) override
83 {
84 return std::string();
85 }
86
87 std::string
88 formatCaseSensitivity(std::string caseSensitivity) override
89 {
90 return std::string();
91 }
92
93 std::string
94 formatRequirement(std::string requirement) override
95 {
96 return std::string();
97 }
98
99 std::string
100 formatRegex(std::string regex) override
101 {
102 return std::string();
103 }
104
105 std::string
106 formatValue(std::string value) override
107 {
108 return std::string();
109 }
110
111 std::string
112 formatValues(std::vector<std::string> values) override
113 {
114 return std::string();
115 }
116
117 std::string
118 formatAttribute(std::string name, std::string details) override
119 {
120 return std::string();
121 }
122
123 std::string formatHeader(std::string headerText) override;
124
125 std::string
126 getFormat() override
127 {
128 return std::string();
129 }
130
131 protected:
132 boost::program_options::options_description* optionsDescription;
133 };
134} // namespace armarx
std::string formatDefault(std::string default_) override
std::string formatBounds(std::string min, std::string max) override
std::string formatAttribute(std::string name, std::string details) override
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
std::string formatRequirement(std::string requirement) override
boost::program_options::options_description * optionsDescription
std::string formatValues(std::vector< std::string > values) override
std::string formatHeader(std::string headerText) override
PropertyDefinitionBriefHelpFormatter(boost::program_options::options_description *optionsDescription)
std::string formatDescription(std::string description) override
std::string formatCaseSensitivity(std::string caseSensitivity) override
PropertyDefinitionFormatter is the base class for all formatters of PropertyDefinitions.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::vector< T > max(const std::vector< T > &v1, const std::vector< T > &v2)
std::vector< T > min(const std::vector< T > &v1, const std::vector< T > &v2)