X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Ftrace.h;h=3785074d49cd7b164811898a2bf612e9d6dbe6dc;hp=4924d7a163ba70df486b9f9151c830d1338b9d32;hb=f13a8c004b8f182b42d9e4df2bcd7c7f030bf1ad;hpb=6bfb747f8163381d94a02c03a0351e9ca6815d22 diff --git a/include/trace.h b/include/trace.h index 4924d7a..3785074 100644 --- a/include/trace.h +++ b/include/trace.h @@ -1,3 +1,28 @@ +/***************************************************************************** +** FILE IDENTIFICATION +** +** Name: trace.h +** Purpose: Header file for Trace class +** Author: Kevin Rosenberg +** Date Started: Oct 2000 +** +** This is part of the CTSim program +** Copyright (c) 1983-2009 Kevin Rosenberg +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License (version 2) as +** published by the Free Software Foundation. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +******************************************************************************/ + #ifndef TRACE_H #define TRACE_H @@ -12,7 +37,7 @@ class Trace static const int TRACE_PROJECTIONS; static const int TRACE_PLOT; static const int TRACE_CLIPPING; - + static const int BIT_CONSOLE; static const int BIT_PHANTOM; static const int BIT_PROJECTIONS; @@ -20,25 +45,25 @@ class Trace static const int BIT_CLIPPING; Trace (const char* const traceString); - + void addTrace (const char* const traceString); - + bool isTrace (const char* const traceQuery) const; - + int getTraceLevel(void) const { return m_traceLevel; } - + static int convertTraceNameToID (const char* traceName); static const char* convertTraceIDToTitle (int idTrace); static const char* convertTraceIDToName (int idTrace); - + static const int getTraceCount() {return s_iTraceCount;} static const char** getTraceNameArray() {return s_aszTraceName;} static const char** getTraceTitleArray() {return s_aszTraceTitle;} private: - + int m_traceLevel; - + bool addTraceElements (const char* const traceString); static const char* s_aszTraceName[];