Changeset 162
- Timestamp:
- 07/17/08 16:00:55 (6 months ago)
- Files:
-
- trunk/dba/dba/stream.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dba/dba/stream.h
r97 r162 16 16 #include "shared_ptr.h" 17 17 #include <list> 18 19 #define _DEBUG 18 20 19 21 namespace dba { … … 113 115 virtual void destroy() = 0; 114 116 /** 117 Enable debugging and tracing for stream 118 */ 119 #ifdef _DEBUG 120 void enableDebug(bool pFlag = true) { mDebugFlag = pFlag; }; 121 #else 122 void enableDebug(bool pFlag = true) {}; 123 #endif 124 /** 115 125 Desctructor 116 126 */ … … 172 182 */ 173 183 void createTree(const StoreTable* pRootTable); 184 #ifdef _DEBUG 185 /** 186 Stream debugging 187 */ 188 void debug(const char* pFormat, ...); 189 #else 190 void debug(const char* pFormat, ...) {}; 191 #endif 174 192 /** 175 193 Data for binded variables … … 246 264 */ 247 265 const char* mRootTable; 266 #ifdef _DEBUG 267 /** 268 True if stream should output debug information 269 */ 270 bool mDebugFlag; 271 #endif 248 272 private: 249 273 void unbindVar(void* pPtr);
