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_CONFIG_CONFIG_ITERATOR_H_INCLUDED 00026 #define ICL_CORE_CONFIG_CONFIG_ITERATOR_H_INCLUDED 00027 00028 #include "icl_core/KeyValueDirectory.h" 00029 #include "icl_core_config/ImportExport.h" 00030 00031 #ifdef _SYSTEM_WIN32_ 00032 #include "icl_core/KeyValueDirectory.hpp" 00033 #endif 00034 00035 namespace icl_core { 00036 00037 #ifdef _SYSTEM_WIN32_ 00038 #ifdef __INSURE__ 00039 // ParaSoft Insure++ produces linker errors when the class itself is 00040 // instantiated with the ICL_CORE_CONFIG_IMPORT_EXPORT modifier. We 00041 // therefore add declarations for all exported class members. 00042 template ICL_CORE_CONFIG_IMPORT_EXPORT 00043 KeyValueDirectoryIterator<String>::KeyValueDirectoryIterator(const String& query, 00044 const KeyValueDirectory<String> *directory); 00045 template ICL_CORE_CONFIG_IMPORT_EXPORT 00046 String KeyValueDirectoryIterator<String>::key() const; 00047 template ICL_CORE_CONFIG_IMPORT_EXPORT 00048 String KeyValueDirectoryIterator<String>::matchGroup(size_t index) const; 00049 template ICL_CORE_CONFIG_IMPORT_EXPORT 00050 bool KeyValueDirectoryIterator<String>::next(); 00051 template ICL_CORE_CONFIG_IMPORT_EXPORT 00052 void KeyValueDirectoryIterator<String>::reset(); 00053 template ICL_CORE_CONFIG_IMPORT_EXPORT 00054 ConvertToRef<String>::ToConstRef KeyValueDirectoryIterator<String>::value() const; 00055 #else 00056 template ICL_CORE_CONFIG_IMPORT_EXPORT class KeyValueDirectoryIterator<String>; 00057 #endif 00058 #endif 00059 00060 namespace config { 00061 00062 typedef icl_core::KeyValueDirectoryIterator<icl_core::String> ConfigIterator; 00063 00064 } 00065 } 00066 00067 #endif