ConfigParameter.h
Go to the documentation of this file.
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_PARAMETER_H_INCLUDED
00026 #define ICL_CORE_CONFIG_CONFIG_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/GetoptParameter.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 
00049 class ICL_CORE_CONFIG_IMPORT_EXPORT ConfigParameter : public GetoptParameter
00050 {
00051 public:
00070   ConfigParameter(const icl_core::String& option, const icl_core::String& short_option,
00071                   const icl_core::String& config_key, const icl_core::String& help,
00072                   const icl_core::String& default_value = "");
00073 
00076   icl_core::String configKey() const { return m_config_key; }
00077 
00080   bool hasDefaultValue() const { return !m_default_value.empty(); }
00081 
00084   icl_core::String defaultValue() const { return m_default_value; }
00085 
00087 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00088 
00092   ICL_CORE_VC_DEPRECATE_STYLE icl_core::String ConfigKey() const
00093     ICL_CORE_GCC_DEPRECATE_STYLE;
00094 
00098   ICL_CORE_VC_DEPRECATE_STYLE bool HasDefaultValue() const
00099     ICL_CORE_GCC_DEPRECATE_STYLE;
00100 
00104   ICL_CORE_VC_DEPRECATE_STYLE icl_core::String DefaultValue() const
00105     ICL_CORE_GCC_DEPRECATE_STYLE;
00106 
00107 #endif
00108 
00109 
00110 private:
00111   icl_core::String m_config_key;
00112   icl_core::String m_default_value;
00113 };
00114 
00115 typedef icl_core::Vector<ConfigParameter> ConfigParameterList;
00116 
00117 }
00118 }
00119 
00120 #endif


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:18