r97: Converted Scanner and Projections to C++
[ctsim.git] / src / if2img.cpp
index 6971fbbbab5c92c91a5806184e84a4d209f0b9d3..85237a700c13fd07158417e372787d1791dffe38 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: if2img.cpp,v 1.4 2000/06/13 16:20:31 kevin Exp $
+**  $Id: if2img.cpp,v 1.5 2000/06/17 20:12:15 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
@@ -292,16 +292,14 @@ if2img_main (int argc, char *const argv[])
     for (int i = 0; i < nlabels; i++) {
       Array2dFileLabel label;
       im.labelRead (label, i);
-      string str;
-      label.getDateString (str);
 
       if (label.getLabelType() == Array2dFileLabel::L_HISTORY) {
        cout << "History: " << label.getLabelString() << endl;
        cout << "  calc time = " << label.getCalcTime() << " secs" << endl;
-       cout << "  Timestamp = " << str << endl;
+       cout << "  Timestamp = " << label.getDateString() << endl;
       } else if (label.getLabelType() == Array2dFileLabel::L_USER) {
        cout << "Note: " <<  label.getLabelString() << endl;
-       cout << "  Timestamp = %s" << str << endl;
+       cout << "  Timestamp = %s" << label.getDateString() << endl;
       }
     }
   }