GetoptParameter.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_CONFIG_GETOPT_PARAMETER_H_INCLUDED
26 #define ICL_CORE_CONFIG_GETOPT_PARAMETER_H_INCLUDED
27 
28 #include "icl_core/BaseTypes.h"
29 #include "icl_core/Vector.h"
31 
32 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
33 # include "icl_core/Deprecate.h"
34 #endif
35 
36 namespace icl_core {
37 namespace config {
38 
40 {
41 public:
57  GetoptParameter(const icl_core::String& option, const icl_core::String& short_option,
58  const icl_core::String& help, bool is_prefix = false);
59 
61  icl_core::String option() const { return m_option; }
63  icl_core::String shortOption() const { return m_short_option; }
65  bool hasValue() const { return m_has_value; }
67  icl_core::String help() const { return m_help; }
68 
70  bool isPrefixOption() const { return m_is_prefix; }
71 
73 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
74 
91 
96 
97 #endif
98 
100 private:
106 };
107 
109 
110 }
111 }
112 
113 #endif
#define ICL_CORE_VC_DEPRECATE_STYLE
Definition: Deprecate.h:53
bool hasValue() const
Check if the option also expects a value.
#define ICL_CORE_CONFIG_IMPORT_EXPORT
Contains macros to deprecate classes, types, functions and variables.
icl_core::Vector< GetoptParameter > GetoptParameterList
bool isPrefixOption() const
Check if this is a prefix option.
Contains import/export definitions for the Win32 plattform.
icl_core::String option() const
Get the long option name.
std::string String
Definition: BaseTypes.h:43
Contains Interface base classes and base types.
icl_core::String shortOption() const
Get the short option name.
icl_core::String help() const
Get the help text.
#define ICL_CORE_GCC_DEPRECATE_STYLE
Definition: Deprecate.h:54


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58