1 // Copyright (C) 2003 Davis E. King (davis@dlib.net) 2 // License: Boost Software License See LICENSE.txt for the full license. 3 #ifndef DLIB_CONFIG_READEr_ 4 #define DLIB_CONFIG_READEr_ 5 6 #include "config_reader/config_reader_kernel_1.h" 7 #include "map.h" 8 #include "tokenizer.h" 9 #include "cmd_line_parser/get_option.h" 10 11 #include "algs.h" 12 #include "is_kind.h" 13 14 15 namespace dlib 16 { 17 18 typedef config_reader_kernel_1< 19 map<std::string,std::string>::kernel_1b, 20 map<std::string,void*>::kernel_1b, 21 tokenizer::kernel_1a 22 > config_reader; 23 24 template <> struct is_config_reader<config_reader> { const static bool value = true; }; 25 26 #ifndef DLIB_ISO_CPP_ONLY 27 typedef config_reader_thread_safe_1< 28 config_reader, 29 map<std::string,void*>::kernel_1b 30 > config_reader_thread_safe; 31 32 template <> struct is_config_reader<config_reader_thread_safe> { const static bool value = true; }; 33 #endif // DLIB_ISO_CPP_ONLY 34 35 36 } 37 38 #endif // DLIB_CONFIG_READEr_ 39 40