7 #ifndef IG_OMW_VERSION_H
8 #define IG_OMW_VERSION_H
13 #include "../omw/string.h"
25 Version(int32_t major, int32_t minor, int32_t patch,
const char* preRelease,
const char* build =
nullptr);
31 void set(int32_t major, int32_t minor, int32_t patch,
const char* preRelease,
const char* build =
nullptr);
32 void set(int32_t major, int32_t minor, int32_t patch,
const std::string& preRelease =
"",
const std::string& build =
"");
33 void set(
const char* str);
36 int32_t major()
const;
37 int32_t minor()
const;
38 int32_t patch()
const;
40 const omw::stringVector_t& preReleaseIdentifiers()
const;
42 const omw::stringVector_t& buildIdentifiers()
const;
56 omw::stringVector_t m_preRelease;
57 omw::stringVector_t m_build;
61 void parsePreRelease(
const omw::string& identifiers);
78 #endif // IG_OMW_VERSION_H