You.i Engine
YiVersion.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_VERSION_H_
3 #define _YI_VERSION_H_
4 
5 #include "framework/YiVersionData.h"
6 #include "utility/YiString.h"
7 
29 {
30 public:
34  CYIVersion();
35 
39  CYIVersion(uint32_t majorVersion, uint32_t minorVersion, uint32_t patchVersion, CYIString hotfixVersion = "", CYIString versionControlID = "", CYIString buildDate = "");
40 
44  uint32_t GetMajorVersion() const;
45 
49  uint32_t GetMinorVersion() const;
50 
54  uint32_t GetPatchVersion() const;
55 
60 
65 
69  bool HasHotfixVersion() const;
70 
74  const CYIString &GetVersionControlID() const;
75 
79  const CYIString &GetBuildDate() const;
80 
81  bool operator==(const CYIVersion &other) const;
82  bool operator!=(const CYIVersion &other) const;
83  bool operator<(const CYIVersion &other) const;
84  bool operator>(const CYIVersion &other) const;
85  bool operator<=(const CYIVersion &other) const;
86  bool operator>=(const CYIVersion &other) const;
87 
91  static const CYIVersion &GetEngineVersion();
92 
93  /*
94  \details Returns a CYIVersion object that is converted from the supplied \a versionString.
95  */
96  static CYIVersion FromVersionString(const CYIString &versionString);
97 
98 private:
99  uint32_t m_majorVersion;
100  uint32_t m_minorVersion;
101  uint32_t m_patchVersion;
102  CYIString m_HotfixVersion;
103  CYIString m_VersionControlID;
104  CYIString m_BuildDate;
105 };
106 
109 #endif // _YI_VERSION_H_
bool operator!=(const CYIVersion &other) const
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
uint32_t GetMajorVersion() const
CYIVersion is a data structure that represents semantic versioning.
Definition: YiVersion.h:28
bool operator<(const CYIVersion &other) const
uint32_t GetMinorVersion() const
bool operator==(const CYIVersion &other) const
bool operator>=(const CYIVersion &other) const
static const CYIVersion & GetEngineVersion()
bool HasHotfixVersion() const
static CYIVersion FromVersionString(const CYIString &versionString)
const CYIString & GetVersionControlID() const
bool operator<=(const CYIVersion &other) const
const CYIString & GetBuildDate() const
uint32_t GetPatchVersion() const
CYIString GetHotfixVersion() const
bool operator>(const CYIVersion &other) const
CYIString GetVersionString() const