projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r408: *** empty log message ***
[ctsim.git]
/
tools
/
ifinfo.cpp
diff --git
a/tools/ifinfo.cpp
b/tools/ifinfo.cpp
index 1e0aa38569e2371232788e0e89edabf461303f4a..1e98db0a8a8314012d7f14cb21142f590318d00e 100644
(file)
--- 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
**
** 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
**
** 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}
};
{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
void
@@
-138,7
+138,13
@@
ifinfo_main (int argc, char *const argv[])
im->printLabels (std::cout);
if (opt_stats) {
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);
}
im->printStatistics (std::cout);
}
@@
-154,9
+160,9
@@
main (int argc, char *const argv[])
try {
retval = ifinfo_main(argc, argv);
} catch (exception e) {
try {
retval = ifinfo_main(argc, argv);
} catch (exception e) {
- cerr << "Exception: " << e.what() << std::endl;
+
std::
cerr << "Exception: " << e.what() << std::endl;
} catch (...) {
} catch (...) {
- cerr << "Unknown exception\n";
+
std::
cerr << "Unknown exception\n";
}
return (retval);
}
return (retval);