/*****************************************************************************
** FILE IDENTIFICATION
**
-** Name: trace.cpp Class for trace
+** Name: trace.cpp Class for trace
** Programmer: Kevin Rosenberg
** Date Started: June 2000
**
** This is part of the CTSim program
-** Copyright (C) 1983-2000 Kevin Rosenberg
-**
-** $Id$
+** 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
const int Trace::BIT_PLOT = 0x0008;
const int Trace::BIT_CLIPPING = 0x0010;
-const char* Trace::s_aszTraceName[] =
+const char* Trace::s_aszTraceName[] =
{
"none",
"console",
"clipping",
};
-const char* Trace::s_aszTraceTitle[] =
+const char* Trace::s_aszTraceTitle[] =
{
"None",
"Console",
return (title);
}
-
+
int
-Trace::convertTraceNameToID (const char* const traceName)
+Trace::convertTraceNameToID (const char* const traceName)
{
int id = Trace::TRACE_INVALID;
for (int i = 0; i < s_iTraceCount; i++)
if (strcasecmp (traceName, s_aszTraceName[i]) == 0) {
- id = i;
- break;
+ id = i;
+ break;
}
return (id);