tConfigValues.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 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00022 //----------------------------------------------------------------------
00023 #ifndef ICL_CORE_CONFIG_T_CONFIG_VALUES_H_INCLUDED
00024 #define ICL_CORE_CONFIG_T_CONFIG_VALUES_H_INCLUDED
00025 
00026 #include <icl_core/Deprecate.h>
00027 
00028 #include "icl_core_config/ConfigValues.h"
00029 
00030 namespace icl_core {
00031 namespace config {
00032 
00033 typedef ICL_CORE_VC_DEPRECATE impl::ConfigValueIface* tConfigValues[] ICL_CORE_GCC_DEPRECATE;
00034 
00035 template <typename T>
00036 class ICL_CORE_VC_DEPRECATE TConfigValue : public ConfigValue<T>
00037 {
00038 public:
00039   TConfigValue(const icl_core::String& key,
00040                typename icl_core::ConvertToRef<T>::ToRef value)
00041     : ConfigValue<T>(key, value)
00042   { }
00043   virtual ~TConfigValue() { }
00044 } ICL_CORE_GCC_DEPRECATE;
00045 
00046 template <typename T>
00047 class ICL_CORE_VC_DEPRECATE TConfigEnum : public ConfigEnum<T>
00048 {
00049 public:
00050   TConfigEnum(const icl_core::String& key,
00051               typename icl_core::ConvertToRef<T>::ToRef value,
00052               const char * const *descriptions,
00053               const char *end_marker = NULL)
00054     : ConfigEnum<T>(key, value, descriptions, end_marker)
00055   { }
00056   virtual ~TConfigEnum() { }
00057 } ICL_CORE_GCC_DEPRECATE;
00058 
00059 template <typename T>
00060 class ICL_CORE_VC_DEPRECATE TConfigValueDefault : public ConfigValueDefault<T>
00061 {
00062 public:
00063   TConfigValueDefault(const icl_core::String& key,
00064                       typename icl_core::ConvertToRef<T>::ToRef value,
00065                       typename icl_core::ConvertToRef<T>::ToConstRef default_value)
00066     : ConfigValueDefault<T>(key, value, default_value)
00067   { }
00068   virtual ~TConfigValueDefault() { }
00069 } ICL_CORE_GCC_DEPRECATE;
00070 
00071 template <typename T>
00072 class ICL_CORE_VC_DEPRECATE TConfigEnumDefault : public ConfigEnumDefault<T>
00073 {
00074 public:
00075   TConfigEnumDefault(const icl_core::String& key,
00076                      typename icl_core::ConvertToRef<T>::ToRef value,
00077                      typename icl_core::ConvertToRef<T>::ToConstRef default_value,
00078                      const char * const *descriptions,
00079                      const char *end_marker = NULL)
00080     : ConfigEnumDefault<T>(key, value, default_value, descriptions, end_marker)
00081   { }
00082   virtual ~TConfigEnumDefault() { }
00083 } ICL_CORE_GCC_DEPRECATE;
00084 
00085 }
00086 }
00087 
00088 #endif


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:04