EnumHelper.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_ENUM_HELPER_H_INCLUDED
00026 #define ICL_CORE_ENUM_HELPER_H_INCLUDED
00027 
00028 #include <vector>
00029 
00030 #include "icl_core/BaseTypes.h"
00031 #include "icl_core/ImportExport.h"
00032 
00033 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00034 # include "icl_core/Deprecate.h"
00035 #endif
00036 
00037 namespace icl_core {
00038 
00056 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int32_t& value,
00057                                         const char * const *descriptions,
00058                                         const char *end_marker = NULL);
00059 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int32_t& value,
00060                                         const std::vector<std::string>& descriptions);
00061 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int64_t& value,
00062                                         const std::vector<std::string>& descriptions);
00063 
00065 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00066 
00072 bool ICL_CORE_IMPORT_EXPORT ICL_CORE_VC_DEPRECATE_STYLE
00073 String2Enum(const String& str, int32_t& value, const char * const *descriptions,
00074             const char *end_marker = NULL) ICL_CORE_GCC_DEPRECATE_STYLE;
00075 
00076 #endif
00077 
00078 
00079 }
00080 
00081 #endif


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