24 #include <ndb_types.h>
25 #include <util/BaseString.hpp>
26 #include <ndb_global.h>
55 extern NdbOut ndbout, ndberr;
60 NdbOut& operator<<(NdbOut& (* _f)(NdbOut&));
61 NdbOut& operator<<(Int8);
62 NdbOut& operator<<(Uint8);
63 NdbOut& operator<<(Int16);
64 NdbOut& operator<<(Uint16);
65 NdbOut& operator<<(Int32);
66 NdbOut& operator<<(Uint32);
67 NdbOut& operator<<(Int64);
68 NdbOut& operator<<(Uint64);
69 NdbOut& operator<<(
long unsigned int);
70 NdbOut& operator<<(
const char*);
71 NdbOut& operator<<(
const unsigned char*);
73 NdbOut& operator<<(
const void*);
74 NdbOut& operator<<(
float);
75 NdbOut& operator<<(
double);
76 NdbOut& endline(
void);
77 NdbOut& flushline(
void);
78 NdbOut& setHexFormat(
int _format);
84 void print(
const char *
fmt, ...)
85 ATTRIBUTE_FORMAT(printf, 2, 3);
86 void println(const
char * fmt, ...)
87 ATTRIBUTE_FORMAT(printf, 2, 3);
91 void choose(const
char * fmt,...);
97 typedef int(*NdbOutF)(
char*);
98 extern NdbOutF ndbout_svc;
101 inline NdbOut& NdbOut::operator<<(NdbOut& (* _f)(NdbOut&)) {
106 inline NdbOut& endl(NdbOut& _NdbOut) {
107 return _NdbOut.endline();
110 inline NdbOut& flush(NdbOut& _NdbOut) {
111 return _NdbOut.flushline();
114 inline NdbOut& hex(NdbOut& _NdbOut) {
115 return _NdbOut.setHexFormat(1);
118 inline NdbOut& dec(NdbOut& _NdbOut) {
119 return _NdbOut.setHexFormat(0);
122 void ndbout_c(
const char * fmt, ...) ATTRIBUTE_FORMAT(printf, 1, 2);
124 void vndbout_c(const
char * fmt, va_list ap);
126 class FilteredNdbOut : public NdbOut {
129 virtual ~FilteredNdbOut();
131 void setLevel(
int i);
132 void setThreshold(
int i);
134 int getLevel()
const;
135 int getThreshold()
const;
138 int m_threshold, m_level;
144 void ndbout_c(
const char * fmt, ...) ATTRIBUTE_FORMAT(printf, 1, 2);