EnumHelper.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_ENUM_HELPER_H_INCLUDED
26 #define ICL_CORE_ENUM_HELPER_H_INCLUDED
27 
28 #include <vector>
29 
30 #include "icl_core/BaseTypes.h"
31 #include "icl_core/ImportExport.h"
32 
33 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
34 # include "icl_core/Deprecate.h"
35 #endif
36 
37 namespace icl_core {
38 
56 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int32_t& value,
57  const char * const *descriptions,
58  const char *end_marker = NULL);
59 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int32_t& value,
60  const std::vector<std::string>& descriptions);
61 bool ICL_CORE_IMPORT_EXPORT string2Enum(const String& str, int64_t& value,
62  const std::vector<std::string>& descriptions);
63 
65 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
66 
73 String2Enum(const String& str, int32_t& value, const char * const *descriptions,
74  const char *end_marker = NULL) ICL_CORE_GCC_DEPRECATE_STYLE;
75 
76 #endif
77 
79 }
80 
81 #endif
signed int int32_t
Definition: msvc_stdint.h:90
#define ICL_CORE_VC_DEPRECATE_STYLE
Definition: Deprecate.h:53
Contains macros to deprecate classes, types, functions and variables.
bool string2Enum(const String &str, int32_t &value, const char *const *descriptions, const char *end_marker)
Definition: EnumHelper.cpp:28
#define ICL_CORE_IMPORT_EXPORT
Definition: ImportExport.h:42
signed __int64 int64_t
Definition: msvc_stdint.h:102
Contains import/export definitions for the Win32 plattform.
std::string String
Definition: BaseTypes.h:43
Contains Interface base classes and base types.
#define ICL_CORE_GCC_DEPRECATE_STYLE
Definition: Deprecate.h:54


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58