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 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany 00012 // 00013 // -- END LICENSE BLOCK ------------------------------------------------ 00014 00015 //---------------------------------------------------------------------- 00024 //---------------------------------------------------------------------- 00025 #ifndef ICL_CORE_CONFIG_CONFIG_POSITIONAL_PARAMETER_H_INCLUDED 00026 #define ICL_CORE_CONFIG_CONFIG_POSITIONAL_PARAMETER_H_INCLUDED 00027 00028 #include "icl_core/BaseTypes.h" 00029 #include "icl_core/Vector.h" 00030 #include "icl_core_config/ImportExport.h" 00031 #include "icl_core_config/GetoptPositionalParameter.h" 00032 00033 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 00034 # include "icl_core/Deprecate.h" 00035 #endif 00036 00037 namespace icl_core { 00038 namespace config { 00039 00046 class ICL_CORE_CONFIG_IMPORT_EXPORT ConfigPositionalParameter : public GetoptPositionalParameter 00047 { 00048 public: 00062 ConfigPositionalParameter(const icl_core::String& name, 00063 const icl_core::String& config_key, 00064 const icl_core::String& help, 00065 const bool is_optional=false, 00066 const icl_core::String& default_value = ""); 00067 00070 icl_core::String configKey() const { return m_config_key; } 00071 00074 bool hasDefaultValue() const { return !m_default_value.empty(); } 00075 00078 icl_core::String defaultValue() const { return m_default_value; } 00079 00080 private: 00081 icl_core::String m_config_key; 00082 icl_core::String m_default_value; 00083 }; 00084 00085 typedef icl_core::Vector<ConfigPositionalParameter> ConfigPositionalParameterList; 00086 00087 } 00088 } 00089 00090 #endif