48 #include <boost/shared_ptr.hpp> 49 #include <boost/scoped_ptr.hpp> 50 #include <boost/enable_shared_from_this.hpp> 51 #include <boost/make_shared.hpp> 52 #include <boost/asio/ip/tcp.hpp> 53 #include <boost/asio/basic_socket.hpp> 54 #include <boost/exception/all.hpp> 57 #include <boost/log/trivial.hpp> 58 #include <boost/log/sources/severity_channel_logger.hpp> 59 #include <boost/log/sources/global_logger_storage.hpp> 60 namespace logging = boost::log;
61 namespace keywords = boost::log::keywords;
62 typedef logging::sources::severity_channel_logger_mt<
63 logging::trivial::severity_level,
67 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(app_log,
logger_mt, (keywords::channel =
"Application"))
68 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(importer_log,
logger_mt, (keywords::channel = "
Importer"))
69 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(geo_log, logger_mt, (keywords::channel = "
Geodata"))
70 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(stat_log, logger_mt, (keywords::channel = "Statistics"))
71 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(server_log, logger_mt, (keywords::channel = "Server"))
72 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(
access_log, logger_mt, (keywords::channel = "Access"))
73 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(style_log, logger_mt, (keywords::channel = "Stylesheets"))
74 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(cache_log, logger_mt, (keywords::channel = "
Cache"))
75 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(request_log, logger_mt, (keywords::channel = "Request"))
76 BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(render_log, logger_mt, (keywords::channel = "
Renderer"))
78 #define LOG_SEV(log, lvl)\ 79 BOOST_LOG_SEV(log::get(), (logging::trivial::lvl)) 83 #define TESTABLE virtual 90 #define ALAC_JOIN(_a, _b) ALAC_DO_JOIN1(_a, _b) 91 #define ALAC_DO_JOIN1(_a, _b) ALAC_DO_JOIN2(_a, _b) 92 #define ALAC_DO_JOIN2(_a, _b) _a##_b 95 #define NOT_IMPLEMENTED() {BOOST_THROW_EXCEPTION(excp::NotImplementedException() << excp::InfoFileName(__FILE__));} 96 #define IMPLEMENTATION_TODO(_text) { \ 97 static bool ALAC_JOIN(_found_, __LINE__) = false; \ 98 if(! ALAC_JOIN(_found_, __LINE__)) \ 100 std::clog << "Not Implemented: "<< _text << std::endl; \ 101 ALAC_JOIN(_found_, __LINE__) = true; \ 105 using boost::shared_ptr;
106 using boost::scoped_ptr;
107 using boost::weak_ptr;
127 #define DEFAULT_CONFIG_NAME "alacarte-maps.conf" 129 #define DEFAULT_FONT "DejaVu Sans" 130 #define TILE_OVERLAP (1.0/META_TILE_SIZE * 0.25) 131 #define META_TILE_SIZE 4 132 #define ALAC_ZOOM_BOTTOM 0 133 #define ALAC_ZOOM_TOP 18 139 #include <boost/unordered_map.hpp> 140 template<
typename Key,
typename Value>
142 :
public boost::unordered_map<Key, Value>
144 friend class boost::serialization::access;
150 template<
typename Archive>
153 int s = this->size();
158 template<
class Archive>
161 typename boost::unordered_map<Key, Value>::value_type value;
173 BOOST_SERIALIZATION_SPLIT_MEMBER()
logging::sources::severity_channel_logger_mt< logging::trivial::severity_level, std::string > logger_mt
void save(Archive &ar, const unsigned int version) const
static const char * access_log
Filepath to the access log (type: string)
void load(Archive &ar, const unsigned int version)