X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fifinfo.cpp;h=1e98db0a8a8314012d7f14cb21142f590318d00e;hp=f423460765779356433ad95ec00530fa20e3871a;hb=67a6c34b5a6f38d34e8cbe66091853f453fd2d7a;hpb=855f0990a75750c61badd376ff35ffb39fab1c36 diff --git a/tools/ifinfo.cpp b/tools/ifinfo.cpp index f423460..1e98db0 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.5 2000/12/17 23:30:48 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 @@ -46,7 +46,7 @@ static struct option my_options[] = {0, 0, 0, 0} }; -static const char* g_szIdStr = "$Id: ifinfo.cpp,v 1.5 2000/12/17 23:30:48 kevin Exp $"; +static const char* g_szIdStr = "$Id: ifinfo.cpp,v 1.6 2000/12/29 19:30:08 kevin Exp $"; void @@ -138,7 +138,13 @@ ifinfo_main (int argc, char *const argv[]) im->printLabels (std::cout); if (opt_stats) { - std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n"; + 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); }