5 #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS 6 #define BOOST_MPL_LIMIT_VECTOR_SIZE 30 13 #define TYPENAME typename 21 #pragma warning (disable: 4251) 29 static const std::string COLOR_OFF=
"\033[0m" ;
32 static const std::string Red=
"\033[0;31m" ;
33 static const std::string Green=
"\033[0;32m" ;
34 static const std::string Yellow=
"\033[0;33m" ;
37 static const std::string BYellow=
"\033[1;33m" ;
38 static const std::string BBlue=
"\033[1;34m" ;
41 static const std::string COLOR_RESET = COLOR_OFF;
42 static const std::string COLOR_INFO = Green;
43 static const std::string COLOR_WARNING = Yellow;
44 static const std::string COLOR_ERROR = Red;
45 static const std::string COLOR_SENDING = BBlue;
46 static const std::string COLOR_RECEIVING = BYellow;
51 #define SIMPLE_FILENAME(x) x.substr(x.find_last_of('/')+1) 57 #define ONOFF if(false) 62 #define KNX_SENDING ONOFF std::cerr << knx::COLOR_SENDING << SIMPLE_FILENAME(std::string(__FILE__)) << ":" << __LINE__ << " (" << __FUNCTION__ << ") >> " << knx::COLOR_RESET 63 #define KNX_RECEIVING ONOFF std::cerr << knx::COLOR_RECEIVING << SIMPLE_FILENAME(std::string(__FILE__)) << ":" << __LINE__ << " (" << __FUNCTION__ << ") >> " << knx::COLOR_RESET 66 #define KNX_INFORMATION ONOFF std::cerr << knx::COLOR_INFO << SIMPLE_FILENAME(std::string(__FILE__)) << ":" << __LINE__ << " (" << __FUNCTION__ << ") >> " << knx::COLOR_RESET 67 #define KNX_WARNING ONOFF std::cerr << knx::COLOR_WARNING << SIMPLE_FILENAME(std::string(__FILE__)) << ":" << __LINE__ << " (" << __FUNCTION__ << ") WARNING >> " << knx::COLOR_RESET 68 #define KNX_ERROR std::cerr << knx::COLOR_ERROR << SIMPLE_FILENAME(std::string(__FILE__)) << ":" << __LINE__ << " (" << __FUNCTION__ << ") ERROR >> " << knx::COLOR_RESET 69 #define KNX_FINAL std::cout 73 #define KNX_IMPORT_EXPORT 74 #elif defined __APPLE__ 75 #define KNX_IMPORT_EXPORT 76 #elif defined KNX_EXPORT 77 #define KNX_IMPORT_EXPORT __declspec(dllexport) 79 #define KNX_IMPORT_EXPORT __declspec(dllimport) separated namespace to embed all libknx related classes
Definition: connection.hpp:14