1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#ifndef LOG4CPLUS_LOG4CPLUS_SWG
#define LOG4CPLUS_LOG4CPLUS_SWG
%module log4cplus
%include "std_basic_string.i"
#ifdef SWIGPYTHON
%include "std_string.i"
#ifdef UNICODE
%include "std_wstring.i"
#endif
#endif
%{
#include "log4cplus/tchar.h"
#include "log4cplus/tstring.h"
%}
namespace log4cplus
{
#ifdef UNICODE
typedef wchar_t tchar;
#else
typedef char tchar;
#endif
typedef std::basic_string<tchar> tstring;
typedef int LogLevel;
} // namespace log4cplus
%include "hierarchy.swg"
%include "loggingevent.swg"
%include "logger.swg"
%include "configurator.swg"
#endif // LOG4CPLUS_LOG4CPLUS_SWG
|