|
|
@ -49,14 +49,15 @@ class LayeredData: public NCFuncs |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const NCFileA* operator->() const { return &nc; } |
|
|
|
const NCFileA* operator->() const { return &nc; } |
|
|
|
explicit operator bool() const { return nc; } |
|
|
|
explicit operator bool() const { return nc; } |
|
|
|
MDateTime Begin() const { return times.front(); } |
|
|
|
MDateTime Begin() const { return times.front(); } |
|
|
|
MDateTime End() const { return times.back(); } |
|
|
|
MDateTime End() const { return times.back(); } |
|
|
|
|
|
|
|
|
|
|
|
const NCFileA& Get() const { return nc; } |
|
|
|
const NCFileA& Get() const { return nc; } |
|
|
|
|
|
|
|
|
|
|
|
const std::vector<MDateTime>& Times() const { return times; } |
|
|
|
const std::vector<MDateTime>& Times() const { return times; } |
|
|
|
size_t Index(MDateTime tm) const |
|
|
|
|
|
|
|
|
|
|
|
size_t Index(MDateTime tm) const |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(tm < Begin() || tm > End()) return 0; |
|
|
|
if(tm < Begin() || tm > End()) return 0; |
|
|
|
size_t b = 0, e = times.size() - 1; |
|
|
|
size_t b = 0, e = times.size() - 1; |
|
|
@ -73,6 +74,8 @@ class LayeredData: public NCFuncs |
|
|
|
} |
|
|
|
} |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const MString& Url() const { return url; } |
|
|
|
}; |
|
|
|
}; |
|
|
|
std::vector<NC> nc; |
|
|
|
std::vector<NC> nc; |
|
|
|
std::vector<real> depths; |
|
|
|
std::vector<real> depths; |
|
|
|