X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fifinfo.cpp;h=0b0a119e3ee2eef1565620fac3b51ab00a3066f1;hp=1e0aa38569e2371232788e0e89edabf461303f4a;hb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;hpb=b9dfe2d5cee6f08652541f3c5318f78d50314161 diff --git a/tools/ifinfo.cpp b/tools/ifinfo.cpp index 1e0aa38..0b0a119 100644 --- a/tools/ifinfo.cpp +++ b/tools/ifinfo.cpp @@ -9,7 +9,7 @@ ** 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$ ** ** 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 @@ -46,7 +46,7 @@ static struct option my_options[] = {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$"; void @@ -139,6 +139,12 @@ ifinfo_main (int argc, char *const argv[]) if (opt_stats) { std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n"; + std::cout << "Data type: "; + if (im->dataType() == Array2dFile::DATA_TYPE_COMPLEX) + std::cout << "Complex\n"; + else + std::cout << "Real\n"; + im->printStatistics (std::cout); } @@ -154,9 +160,9 @@ main (int argc, char *const argv[]) 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);