1 /*
2  * Copyright (C) 2012 Codership Oy <info@codership.com>
3  */
4 
5 /*!
6  * @file common.hpp
7  *
8  * @brief Imports definitions from the global common.h
9  */
10 
11 #ifndef GCOMM_COMMON_HPP
12 #define GCOMM_COMMON_HPP
13 
14 #if defined(HAVE_COMMON_H)
15 #include <common.h>
16 #endif
17 
18 #include <string>
19 
20 namespace gcomm
21 {
22 #if defined(HAVE_COMMON_H)
23     static std::string const BASE_PORT_KEY(COMMON_BASE_PORT_KEY);
24     static std::string const BASE_PORT_DEFAULT(COMMON_BASE_PORT_DEFAULT);
25     static std::string const BASE_DIR_DEFAULT(COMMON_BASE_DIR_DEFAULT);
26 #else
27     static std::string const BASE_PORT_KEY("base_port");
28     static std::string const BASE_PORT_DEFAULT("4567");
29     static std::string const BASE_DIR_DEFAULT(".");
30 #endif
31 }
32 
33 #endif /* GCOMM_COMMON_HPP */
34