Debian Codegraph @

CodeLite/clVersionString.hpp

raw
1 #ifndef CLVERSIONSTRING_HPP
2 #define CLVERSIONSTRING_HPP
3
4 #include "codelite_exports.h"
5
6 #include <wx/string.h>
7
8 /// Utility class converting between version string -> number
9 /// Example: 1.2.3 -> 1*10^2 + 2*10^3 + 3*10^0 -> 123
10 class WXDLLIMPEXP_CL clVersionString
11 {
12 wxString m_version_string;
13 size_t m_number = 0;
14
15 public:
16 clVersionString(const wxString& version_string);
17 ~clVersionString();
18
19 /// return the version as a number
20 size_t to_number() const { return m_number; }
21 };
22
23 #endif // CLVERSIONSTRING_HPP