[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Nov 18 18:53:08 CET 2004


CVS commit by staikos: 

add optional argument to return the last frame read as requested by Barth


  M +2 -1      kstdatasource.cpp   1.46.2.2
  M +1 -2      kstdatasource.h   1.27.2.2


--- kdeextragear-2/kst/kst/kstdatasource.cpp  #1.46.2.1:1.46.2.2
@@ -429,5 +429,5 @@ void KstDataSource::updateNumFramesScala
 
 
-int KstDataSource::readField(double *v, const QString& field, int s, int n, int skip) {
+int KstDataSource::readField(double *v, const QString& field, int s, int n, int skip, int *lastFrameRead) {
   Q_UNUSED(v)
   Q_UNUSED(field)
@@ -435,4 +435,5 @@ int KstDataSource::readField(double *v, 
   Q_UNUSED(n)
   Q_UNUSED(skip)
+  Q_UNUSED(lastFrameRead)
   return -9999; // unsupported
 }

--- kdeextragear-2/kst/kst/kstdatasource.h  #1.27.2.1:1.27.2.2
@@ -38,5 +38,4 @@ class KstDataSourcePrivate;
 class KstDataSourceConfigWidget;
 
-// BINARY COMPATIBILITY IS NOT YET GUARANTEED
 class KstDataSource : public KstObject {
   protected:
@@ -77,5 +76,5 @@ class KstDataSource : public KstObject {
       double Array v[].  Will skip according to the parameter, but it may not
       be implemented.  If it returns -9999, use the non-skip version instead. */
-    virtual int readField(double *v, const QString& field, int s, int n, int skip);
+    virtual int readField(double *v, const QString& field, int s, int n, int skip, int *lastFrameRead = 0L);
 
     /** Returns true if the field is valid, or false if it is not */





More information about the Kst mailing list