Browse Source

The function DataTitle is made public

interpolate
Michael Uleysky 2 years ago
parent
commit
d844b0d014
  1. 6
      include/AVISO.h
  2. 4
      include/AVISOLOCAL.h
  3. 6
      include/HYCOM.h
  4. 6
      include/NEMO.h
  5. 2
      src/AVISOLOCAL.cpp

6
include/AVISO.h

@ -14,6 +14,9 @@ class AVISOData: public LayeredData
Type type = TYPE_UNKNOWN; Type type = TYPE_UNKNOWN;
public:
AVISOData() = default;
MString DataTitle() const MString DataTitle() const
{ {
switch(type) switch(type)
@ -26,9 +29,6 @@ class AVISOData: public LayeredData
} }
} }
public:
AVISOData() = default;
// TODO: RetVal // TODO: RetVal
MString Open(const CLArgs& args) MString Open(const CLArgs& args)
{ {

4
include/AVISOLOCAL.h

@ -24,13 +24,13 @@ class AVISOLOCALData: public NCFuncs
virtual ~Parameters() override = default; virtual ~Parameters() override = default;
}; };
static MString Title() { return "AVISO local mirror"; }
public: public:
using Data = Simple2DData; using Data = Simple2DData;
AVISOLOCALData() = default; AVISOLOCALData() = default;
static MString DataTitle() { return "AVISO local mirror"; }
MString Info() const; MString Info() const;
// TODO: RetVal // TODO: RetVal
MString Open(const CLArgs& args); MString Open(const CLArgs& args);

6
include/HYCOM.h

@ -13,6 +13,9 @@ class HYCOMData: public LayeredData
Type type = TYPE_UNKNOWN; Type type = TYPE_UNKNOWN;
public:
HYCOMData() = default;
MString DataTitle() const MString DataTitle() const
{ {
switch(type) switch(type)
@ -24,9 +27,6 @@ class HYCOMData: public LayeredData
} }
} }
public:
HYCOMData() = default;
// TODO: RetVal // TODO: RetVal
MString Open(const CLArgs& args) MString Open(const CLArgs& args)
{ {

6
include/NEMO.h

@ -13,6 +13,9 @@ class NEMOData: public LayeredData
Type type = TYPE_UNKNOWN; Type type = TYPE_UNKNOWN;
public:
NEMOData() = default;
MString DataTitle() const MString DataTitle() const
{ {
switch(type) switch(type)
@ -24,9 +27,6 @@ class NEMOData: public LayeredData
} }
} }
public:
NEMOData() = default;
// TODO: RetVal // TODO: RetVal
MString Open(const CLArgs& args) MString Open(const CLArgs& args)
{ {

2
src/AVISOLOCAL.cpp

@ -39,7 +39,7 @@ MString AVISOLOCALData::Info() const
// clang-format off // clang-format off
return return
"Dataset: " + Title() + "\n" + "Dataset: " + DataTitle() + "\n" +
" Begin date: " + Time(0).ToString() + "\n" + " Begin date: " + Time(0).ToString() + "\n" +
" End date: " + Time(NTimes()-1).ToString() + "\n" + " End date: " + Time(NTimes()-1).ToString() + "\n" +
" Time step: " + Timestep() + " seconds\n" + " Time step: " + Timestep() + " seconds\n" +

Loading…
Cancel
Save