ConfigParameter.cpp
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 //----------------------------------------------------------------------
21 //----------------------------------------------------------------------
23 
24 namespace icl_core {
25 namespace config {
26 
28  const icl_core::String& config_key, const icl_core::String& help,
29  const icl_core::String& default_value)
30  : GetoptParameter(option, short_option,
31  default_value.empty() ? help : help + "\n(defaults to " + default_value + ")"),
32  m_config_key(config_key),
33  m_default_value(default_value)
34 { }
35 
37 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
38 
42 icl_core::String ConfigParameter::ConfigKey() const
43 {
44  return configKey();
45 }
46 
50 bool ConfigParameter::HasDefaultValue() const
51 {
52  return hasDefaultValue();
53 }
54 
58 icl_core::String ConfigParameter::DefaultValue() const
59 {
60  return defaultValue();
61 }
62 
63 #endif
64 
66 }
67 }
Contains ConfigParameter.
icl_core::String configKey() const
ConfigParameter(const icl_core::String &option, const icl_core::String &short_option, const icl_core::String &config_key, const icl_core::String &help, const icl_core::String &default_value="")
icl_core::String defaultValue() const
std::string String
Definition: BaseTypes.h:43


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