#include <cstring>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "ev_mgr.h"
#include "modules/log_reader.h"
#include "modules/subscribe.h"
#include "modules/teodb_com.h"
Go to the source code of this file.
|
#define | teo_printf(module, type, format,...) |
|
#define | teo_puts(module, type, format) |
|
#define | THIS_UTILS_H |
|
#define | msg_to_string(msg) |
|
#define | showMessage(mtype, msg) teo_printf("", mtype, "%s", msg_to_string(msg).c_str()) |
|
#define | showMessageLn(mtype, msg) teo_printf("", mtype, "%s\n", msg_to_string(msg).c_str()) |
|
#define | watch(x) std::cout << (#x) << " = " << (x) << std::endl |
|
#define msg_to_string |
( |
|
msg | ) |
|
Value:({ \
std::ostringstream foo; \
foo << msg; \
foo.str(); \
})
#define showMessage |
( |
|
mtype, |
|
|
|
msg |
|
) |
| teo_printf("", mtype, "%s", msg_to_string(msg).c_str()) |
#define showMessageLn |
( |
|
mtype, |
|
|
|
msg |
|
) |
| teo_printf("", mtype, "%s\n", msg_to_string(msg).c_str()) |
#define teo_printf |
( |
|
module, |
|
|
|
type, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
Value:
type !=
DISPLAY_M ? (module[0] ==
'\0' ? (getKe())->teo_cfg.app_name : module) :
"", \
type !=
DISPLAY_M ? __LINE__ : 0, __VA_ARGS__)
#7 Regular messages (display only)
Definition: src/utils/utils.h:40
#define _ksn_printf_format_(format)
Definition: src/utils/utils.h:52
#define _ksn_printf_type_(type)
Definition: src/utils/utils.h:44
#define _ksn_printf_format_display_m(format)
Definition: src/utils/utils.h:53
int ksnet_printf(teonet_cfg *teo_cfg, int type, const char *format,...)
KSNet printf.
Definition: utils.c:59
Referenced by teo::Teonet::TeoDB::send().
#define teo_puts |
( |
|
module, |
|
|
|
type, |
|
|
|
format |
|
) |
| |
Value:
type !=
DISPLAY_M ? (module[0] ==
'\0' ? (getKe())->teo_cfg.app_name : module) :
"", \
#7 Regular messages (display only)
Definition: src/utils/utils.h:40
#define _ksn_printf_format_(format)
Definition: src/utils/utils.h:52
#define _ksn_printf_type_(type)
Definition: src/utils/utils.h:44
#define _ksn_printf_format_display_m(format)
Definition: src/utils/utils.h:53
int ksnet_printf(teonet_cfg *teo_cfg, int type, const char *format,...)
KSNet printf.
Definition: utils.c:59
#define watch |
( |
|
x | ) |
std::cout << (#x) << " = " << (x) << std::endl |