15 #ifndef vtkFileSeriesUtilities_h 16 #define vtkFileSeriesUtilities_h 18 #include "vtkStringScanner.h" 39 size_t pos = version.find(
'.');
40 if (pos == std::string::npos)
45 VTK_FROM_CHARS_IF_ERROR_RETURN(version.substr(0, pos), major,
false);
46 if (major > FILE_SERIES_VERSION_MAJ)
50 if (version.size() < pos)
54 VTK_FROM_CHARS_IF_ERROR_RETURN(version.substr(pos + 1), minor,
false);
55 if (minor > FILE_SERIES_VERSION_MIN)
const std::string FILE_SERIES_VERSION
Const variable describing the file series version currently in use.
constexpr int FILE_SERIES_VERSION_MAJ
Const variable describing the file series version currently in use.
constexpr int FILE_SERIES_VERSION_MIN
Const variable describing the file series version currently in use.
bool CheckVersion(const std::string &version)
Inline method to check a provided version against current version in use Return true if current versi...