[Kst] kdeextragear-2/kst/kst/datasources/netcdf
George Staikos
staikos at kde.org
Fri Apr 15 05:31:37 CEST 2005
CVS commit by staikos:
implement reset() for netcdf (tested)
M +15 -10 netcdf.cpp 1.6
M +2 -0 netcdf_source.h 1.4
--- kdeextragear-2/kst/kst/datasources/netcdf/netcdf.cpp #1.5:1.6
@@ -38,7 +38,5 @@ NetcdfSource::NetcdfSource(KConfig *cfg,
_filename = filename;
- if (initFile()) {
- _valid = true;
- }
+ _valid = initFile();
}
@@ -51,4 +49,11 @@ NetcdfSource::~NetcdfSource() {
+bool NetcdfSource::reset() {
+ delete _ncfile;
+ _ncfile = 0L;
+ _maxFrameCount = 0;
+ return _valid = initFile();
+}
+
bool NetcdfSource::initFile() {
--- kdeextragear-2/kst/kst/datasources/netcdf/netcdf_source.h #1.3:1.4
@@ -49,4 +49,6 @@ class NetcdfSource : public KstDataSourc
bool isEmpty() const;
+ bool reset();
+
private:
QMap<QString,long> _frameCounts;
More information about the Kst
mailing list