00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 // This file is part of FZIs ic_workspace. 00005 // 00006 // This program is free software licensed under the LGPL 00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3). 00008 // You can find a copy of this license in LICENSE folder in the top 00009 // directory of the source code. 00010 // 00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany 00012 // 00013 // -- END LICENSE BLOCK ------------------------------------------------ 00014 00015 //---------------------------------------------------------------------- 00021 //---------------------------------------------------------------------- 00022 #include "icl_core_config/ConfigParameter.h" 00023 00024 namespace icl_core { 00025 namespace config { 00026 00027 ConfigParameter::ConfigParameter(const icl_core::String& option, const icl_core::String& short_option, 00028 const icl_core::String& config_key, const icl_core::String& help, 00029 const icl_core::String& default_value) 00030 : GetoptParameter(option, short_option, 00031 default_value.empty() ? help : help + "\n(defaults to " + default_value + ")"), 00032 m_config_key(config_key), 00033 m_default_value(default_value) 00034 { } 00035 00037 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 00038 00042 icl_core::String ConfigParameter::ConfigKey() const 00043 { 00044 return configKey(); 00045 } 00046 00050 bool ConfigParameter::HasDefaultValue() const 00051 { 00052 return hasDefaultValue(); 00053 } 00054 00058 icl_core::String ConfigParameter::DefaultValue() const 00059 { 00060 return defaultValue(); 00061 } 00062 00063 #endif 00064 00065 00066 } 00067 }