tConfigValues.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 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 #ifndef ICL_CORE_CONFIG_T_CONFIG_VALUES_H_INCLUDED
24 #define ICL_CORE_CONFIG_T_CONFIG_VALUES_H_INCLUDED
25 
26 #include <icl_core/Deprecate.h>
27 
29 
30 namespace icl_core {
31 namespace config {
32 
33 typedef ICL_CORE_VC_DEPRECATE impl::ConfigValueIface* tConfigValues[] ICL_CORE_GCC_DEPRECATE;
34 
35 template <typename T>
37 {
38 public:
40  typename icl_core::ConvertToRef<T>::ToRef value)
41  : ConfigValue<T>(key, value)
42  { }
43  virtual ~TConfigValue() { }
45 
46 template <typename T>
48 {
49 public:
51  typename icl_core::ConvertToRef<T>::ToRef value,
52  const char * const *descriptions,
53  const char *end_marker = NULL)
54  : ConfigEnum<T>(key, value, descriptions, end_marker)
55  { }
56  virtual ~TConfigEnum() { }
58 
59 template <typename T>
61 {
62 public:
64  typename icl_core::ConvertToRef<T>::ToRef value,
65  typename icl_core::ConvertToRef<T>::ToConstRef default_value)
66  : ConfigValueDefault<T>(key, value, default_value)
67  { }
68  virtual ~TConfigValueDefault() { }
70 
71 template <typename T>
73 {
74 public:
76  typename icl_core::ConvertToRef<T>::ToRef value,
77  typename icl_core::ConvertToRef<T>::ToConstRef default_value,
78  const char * const *descriptions,
79  const char *end_marker = NULL)
80  : ConfigEnumDefault<T>(key, value, default_value, descriptions, end_marker)
81  { }
82  virtual ~TConfigEnumDefault() { }
84 
85 }
86 }
87 
88 #endif
TConfigValueDefault(const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value, typename icl_core::ConvertToRef< T >::ToConstRef default_value)
Definition: tConfigValues.h:63
#define ICL_CORE_VC_DEPRECATE
Definition: Deprecate.h:35
Contains macros to deprecate classes, types, functions and variables.
ICL_CORE_VC_DEPRECATE AttributeTree tAttributeTree ICL_CORE_GCC_DEPRECATE
Contains tConfigValue.
TConfigValue(const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value)
Definition: tConfigValues.h:39
TConfigEnum(const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value, const char *const *descriptions, const char *end_marker=NULL)
Definition: tConfigValues.h:50
std::string String
Definition: BaseTypes.h:43
TConfigEnumDefault(const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value, typename icl_core::ConvertToRef< T >::ToConstRef default_value, const char *const *descriptions, const char *end_marker=NULL)
Definition: tConfigValues.h:75


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