Commit 1a5d9b2a authored by Ian Humphrey's avatar Ian Humphrey
Browse files

In apollofindrx, added history recording. Fixes #2096.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5875 41f8697f-d340-4b68-9986-7bafba869bb8
parent 55c61461
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include "Progress.h"
#include "IException.h"
#include "Apollo.h"
#include "History.h"

using namespace std;
using namespace Isis;
@@ -156,6 +157,15 @@ void IsisMain ()
      throw IException(IException::Unknown, msg, _FILEINFO_);
    }

    // Record apollofindrx history to the cube
    // create a History Blob with value found in the History PvlObject's Name keyword
    PvlObject &histObj = cube.label()->findObject("History");
    Isis::History histBlob( (QString)histObj["Name"] );
    // read cube's History PvlObject data into the History Blob
    cube.read(histBlob);
    // add apollofindrx History PvlObject into the History Blob and write to cube
    histBlob.AddEntry();
    cube.write(histBlob);
    cube.close();
}

+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@
    <change name="Kristin Berry" date="2014-05-23">
      Updated to fix string conversion error. References #2043
    </change>
    <change name="Ian Humphrey" date="2014-06-25">
      Added history recording. Fixes #2096.
    </change>
  </history>

  <groups>
+2 −0
Original line number Diff line number Diff line
@@ -7,3 +7,5 @@ commands:
	apollofindrx from=$(OUTPUT)/AS15-M-1450.cub > /dev/null;
	catlab from=$(OUTPUT)/AS15-M-1450.cub \
	to=$(OUTPUT)/AS15-M-1450.pvl > /dev/null; 
	cathist from=$(OUTPUT)/AS15-M-1450.cub \
	to=$(OUTPUT)/histTruth.pvl > /dev/null;