📄 staftraceinlimpl.cpp
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF) *//* (C) Copyright IBM Corp. 2001 *//* *//* This software is licensed under the Common Public License (CPL) V1.0. *//*****************************************************************************/#ifndef STAF_TraceInlImpl#define STAF_TraceInlImpl#include "STAF.h"#include "STAFTrace.h"STAF_INLINE void STAFTrace::traceOn(STAFTracePoint_t mask){ STAFTraceEnableTracePoints(mask);}STAF_INLINE void STAFTrace::traceOff(STAFTracePoint_t mask){ STAFTraceDisableTracePoints(mask);}STAF_INLINE STAFTracePoint_t STAFTrace::getTraceMask(){ return STAFTraceGetEnabledTracePoints();}STAF_INLINE STAFRC_tSTAFTrace::setTraceDestination(STAFTraceDestination_t traceDestination, const STAFString &filename, unsigned int *osRC){ return STAFTraceSetTraceDestination(traceDestination, filename.getImpl(), osRC);}STAF_INLINE STAFTraceDestination_tSTAFTrace::getTraceDestination(STAFString &filename){ STAFTraceDestination_t traceDestination = kSTAFTraceToStdout; STAFString_t filenameImpl = 0; STAFRC_t rc = STAFTraceGetTraceDestination(&traceDestination, &filenameImpl, 0); if (filenameImpl != 0) filename = STAFString(filenameImpl, STAFString::kShallow); return traceDestination;}STAF_INLINE bool STAFTrace::doTrace(STAFTracePoint_t tracePoint){ return ((tracePoint != 0) && ((tracePoint & STAFTraceGetEnabledTracePoints()) == tracePoint));}STAF_INLINE STAFRC_t STAFTrace::trace(STAFTracePoint_t tracePoint, const char *message){ return STAFTraceLogCStringMessage(tracePoint, message, 0);}STAF_INLINE STAFRC_t STAFTrace::trace(STAFTracePoint_t tracePoint, const STAFString &message){ return STAFTraceLogSTAFStringMessage(tracePoint, message.getImpl(), 0);}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -