Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Tracer.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // Tracer.cpp 00005 // 00006 // Version 1.0 00007 // Date 30.09.02 00008 // Author A. Pasetti (P&P Software) 00009 00010 #include "../GeneralInclude/CompilerSwitches.h" 00011 #include "../GeneralInclude/DebugSupport.h" 00012 #include "../GeneralInclude/Constants.h" 00013 #include "Tracer.h" 00014 00015 Tracer::Tracer(void) { 00016 enabledStatus = ENABLED; 00017 } 00018 00019 void Tracer::sendSynchTrace(TD_TraceItem traceId) const { 00020 if ( isEnabled() ) 00021 sendRawTrace(traceId); 00022 } 00023 00024 void Tracer::sendPacketTrace(unsigned int n, TD_TraceItem traceData[]) const { 00025 if ( isEnabled() ) { 00026 for (unsigned int i=0; i<n; i++) 00027 sendRawTrace(traceData[i]); 00028 } 00029 } 00030 00031 void Tracer::setEnabled(bool isEnabled) { 00032 enabledStatus = isEnabled; 00033 }
Copyright 2003 P&P Software GmbH - All Rights Reserved