/*****************************************************************************
** FILE IDENTIFICATION
**
-** Name: ctsim.h
-** Purpose: Header file for top-level routines of CTSim program
+** Name: ctsim.cpp
+** Purpose: Top-level routines of CTSim program
** Programmer: Kevin Rosenberg
** Date Started: July 2000
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.8 2000/07/22 15:45:33 kevin Exp $
+** $Id: ctsim.cpp,v 1.9 2000/07/23 01:49:03 kevin Exp $
**
** 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
#include <getopt.h>
#endif
+static const char* rcsindent = "$Id";
class CTSimApp* theApp = NULL;
struct option CTSimApp::ctsimOptions[] =
{
{"help", 0, 0, O_HELP},
+ {"version", 0, 0, O_VERSION},
{0, 0, 0, 0}
};
break;
switch (c) {
+ case O_VERSION:
+ cout << rcsindent << endl;
+ exit(0);
case O_HELP:
case '?':
usage (argv[0]);
cout << "usage: " << fileBasename(program) << " [files-to-open...] [OPTIONS]\n";
cout << "Computed Tomography Simulator (Graphical Shell)\n";
cout << "\n";
+ cout << " --version Display version\n";
cout << " --help Display this help message\n";
}
CTSimApp::OnExit(void)
{
delete m_docManager;
+#ifdef HAVE_DMALLOC
+ dmalloc_shutdown();
+#endif
return 0;
}