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 //---------------------------------------------------------------------- 00024 //---------------------------------------------------------------------- 00025 #ifndef ICL_CORE_CONFIG_GETOPT_POSITIONAL_PARAMETER_H_INCLUDED 00026 #define ICL_CORE_CONFIG_GETOPT_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 00032 namespace icl_core { 00033 namespace config { 00034 00035 class ICL_CORE_CONFIG_IMPORT_EXPORT GetoptPositionalParameter 00036 { 00037 public: 00044 GetoptPositionalParameter(const icl_core::String& name, 00045 const icl_core::String& help, 00046 const bool is_optional=false); 00047 00049 icl_core::String name() const { return m_name; } 00051 icl_core::String help() const { return m_help; } 00053 bool isOptional() const { return m_is_optional; } 00054 00055 private: 00056 icl_core::String m_name; 00057 icl_core::String m_help; 00058 bool m_is_optional; 00059 }; 00060 00061 typedef icl_core::Vector<GetoptPositionalParameter> GetoptPositionalParameterList; 00062 00063 } 00064 } 00065 00066 #endif