** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ifinfo.cpp,v 1.4 2000/12/16 07:28:25 kevin Exp $
+** $Id: ifinfo.cpp,v 1.6 2000/12/29 19:30:08 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: ifinfo.cpp,v 1.4 2000/12/16 07:28:25 kevin Exp $";
+static const char* g_szIdStr = "$Id: ifinfo.cpp,v 1.6 2000/12/29 19:30:08 kevin Exp $";
void
im->printLabels (std::cout);
if (opt_stats) {
- std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n";
+ std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n";\r
+ std::cout << "Data type: ";\r
+ if (im->dataType() == Array2dFile::DATA_TYPE_COMPLEX)\r
+ std::cout << "Complex\n";\r
+ else \r
+ std::cout << "Real\n";\r
+
im->printStatistics (std::cout);
}
try {
retval = ifinfo_main(argc, argv);
} catch (exception e) {
- cerr << "Exception: " << e.what() << std::endl;
+ std::cerr << "Exception: " << e.what() << std::endl;
} catch (...) {
- cerr << "Unknown exception\n";
+ std::cerr << "Unknown exception\n";
}
return (retval);