ConfigParameter.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_CONFIG_PARAMETER_H_INCLUDED
26 #define ICL_CORE_CONFIG_CONFIG_PARAMETER_H_INCLUDED
27 
28 #include "icl_core/BaseTypes.h"
29 #include "icl_core/Vector.h"
32 
33 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
34 # include "icl_core/Deprecate.h"
35 #endif
36 
37 namespace icl_core {
38 namespace config {
39 
50 {
51 public:
70  ConfigParameter(const icl_core::String& option, const icl_core::String& short_option,
71  const icl_core::String& config_key, const icl_core::String& help,
72  const icl_core::String& default_value = "");
73 
76  icl_core::String configKey() const { return m_config_key; }
77 
80  bool hasDefaultValue() const { return !m_default_value.empty(); }
81 
84  icl_core::String defaultValue() const { return m_default_value; }
85 
87 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
88 
94 
98  ICL_CORE_VC_DEPRECATE_STYLE bool HasDefaultValue() const
100 
104  ICL_CORE_VC_DEPRECATE_STYLE icl_core::String DefaultValue() const
106 
107 #endif
108 
110 private:
113 };
114 
116 
117 }
118 }
119 
120 #endif
#define ICL_CORE_VC_DEPRECATE_STYLE
Definition: Deprecate.h:53
Contains GetoptParameter.
#define ICL_CORE_CONFIG_IMPORT_EXPORT
Contains macros to deprecate classes, types, functions and variables.
icl_core::Vector< ConfigParameter > ConfigParameterList
icl_core::String configKey() const
Contains import/export definitions for the Win32 plattform.
icl_core::String defaultValue() const
std::string String
Definition: BaseTypes.h:43
Contains Interface base classes and base types.
#define ICL_CORE_GCC_DEPRECATE_STYLE
Definition: Deprecate.h:54


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