eLynx SDK
v3.3.0 C++ image processing API reference |
00001 //============================================================================ 00002 // ProgramOptions.h Core.Component package 00003 //============================================================================ 00004 // Usage : parallel tasks. 00005 //---------------------------------------------------------------------------- 00006 // Copyright (C) 2009 by eLynx project 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public 00019 // License along with this library; if not, write to the Free 00020 // Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 // 00022 //---------------------------------------------------------------------------- 00023 #ifndef __ProgramOptions_h__ 00024 #define __ProgramOptions_h__ 00025 00026 #include <string> 00027 #include "elx/core/CoreLib.h" 00028 #include "elx/core/CoreTypes.h" 00029 00030 namespace eLynx { 00031 00033 enum EOptionArgFlag 00034 { 00035 OA_NO_ARG = 0, 00036 OA_HAS_ARG = 1, 00037 00038 OAF_Unset = 0, 00039 OAF_Optional = 1, 00040 OAF_Mandatory = 2 00041 }; 00042 00043 00045 struct ProgramOption 00046 { 00047 std::string _Name; 00048 std::string _Desc; 00049 std::string _Value; 00050 EOptionArgFlag _Flag; 00051 bool _IsSet; 00052 }; 00053 00060 ExportedByCore uint32 elxGetOptions(int32 iArgc, char** iArgv, 00061 ProgramOption * ioOptions, uint32 iSize); 00062 00063 } // namespace eLynx 00064 00065 #endif // __ProgramOptions_h__