** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if-1.cpp,v 1.1 2000/07/13 07:01:35 kevin Exp $
+** $Id: if-1.cpp,v 1.4 2000/12/16 07:28:25 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
{0, 0, 0, 0}
};
+static const char* g_szIdStr = "$Id: if-1.cpp,v 1.4 2000/12/16 07:28:25 kevin Exp $";
+
void
if1_usage (const char *program)
{
- cout << "usage: " << fileBasename(program) << " infile outfile [OPTIONS]" << endl;
- cout << "Generate a IF file from a IF file" << endl;
- cout << endl;
- cout << " --invert Invert image" << endl;
- cout << " --log Natural logrithm of image" << endl;
- cout << " --exp Natural exponential of image" << endl;
- cout << " --sqr Square of image" << endl;
- cout << " --sqrt Square root of image" << endl;
- cout << " --verbose Verbose modem" << endl;
- cout << " --version Print version" << endl;
- cout << " --help Print this help message" << endl;
+ std::cout << "usage: " << fileBasename(program) << " infile outfile [OPTIONS]" << std::endl;
+ std::cout << "Generate a IF file from a IF file" << std::endl;
+ std::cout << std::endl;
+ std::cout << " --invert Invert image" << std::endl;
+ std::cout << " --log Natural logrithm of image" << std::endl;
+ std::cout << " --exp Natural exponential of image" << std::endl;
+ std::cout << " --sqr Square of image" << std::endl;
+ std::cout << " --sqrt Square root of image" << std::endl;
+ std::cout << " --verbose Verbose modem" << std::endl;
+ std::cout << " --version Print version" << std::endl;
+ std::cout << " --help Print this help message" << std::endl;
}
int
break;
case O_VERSION:
#ifdef VERSION
- cout << "Version " << VERSION << endl;
+ std::cout << "Version " << VERSION << std::endl << g_szIdStr << std::endl;
#else
- cout << "Unknown version number" << endl;
+ std::cout << "Unknown version number" << std::endl;
#endif
return (0);
case O_HELP:
out_file = argv[optind + 1];
- string histString;
+ std::string histString;
if (opt_invert || opt_log || opt_exp || opt_sqr || opt_sqrt) {
int ix, iy;
try {
retval = if1_main(argc, argv);
} catch (exception e) {
- cerr << "Exception: " << e.what() << endl;
+ cerr << "Exception: " << e.what() << std::endl;
} catch (...) {
- cerr << "Unknown exception" << endl;
+ cerr << "Unknown exception" << std::endl;
}
return (retval);