diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-09 22:43:20 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-09 22:43:20 -0400 |
| commit | 475b7a38f66071ad5713f6f00a49c4e1399e0613 (patch) | |
| tree | 4dcb76d5bb9e1dbabe19dcbd0cc9676c31f715e6 /src/version.h | |
| parent | 829bb6ba7fdbef5c4e6fb9e4eabc0c2f962325ae (diff) | |
| parent | 14d075e02007aeb53dbadd6c629564ee467cd7b2 (diff) | |
| download | lingo-ap-tracker-475b7a38f66071ad5713f6f00a49c4e1399e0613.tar.gz lingo-ap-tracker-475b7a38f66071ad5713f6f00a49c4e1399e0613.tar.bz2 lingo-ap-tracker-475b7a38f66071ad5713f6f00a49c4e1399e0613.zip | |
Merge branch 'main' into panels
Diffstat (limited to 'src/version.h')
| -rw-r--r-- | src/version.h | 12 |
1 files changed, 8 insertions, 4 deletions
| diff --git a/src/version.h b/src/version.h index db75351..7aab91b 100644 --- a/src/version.h +++ b/src/version.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #ifndef VERSION_H_C757E53C | 1 | #ifndef VERSION_H_C757E53C |
| 2 | #define VERSION_H_C757E53C | 2 | #define VERSION_H_C757E53C |
| 3 | 3 | ||
| 4 | #include <iostream> | 4 | #include <sstream> |
| 5 | #include <regex> | 5 | #include <regex> |
| 6 | 6 | ||
| 7 | struct Version { | 7 | struct Version { |
| @@ -23,6 +23,12 @@ struct Version { | |||
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | std::string ToString() const { | ||
| 27 | std::ostringstream output; | ||
| 28 | output << "v" << major << "." << minor << "." << revision; | ||
| 29 | return output.str(); | ||
| 30 | } | ||
| 31 | |||
| 26 | bool operator<(const Version& rhs) const { | 32 | bool operator<(const Version& rhs) const { |
| 27 | return (major < rhs.major) || | 33 | return (major < rhs.major) || |
| 28 | (major == rhs.major && | 34 | (major == rhs.major && |
| @@ -31,8 +37,6 @@ struct Version { | |||
| 31 | } | 37 | } |
| 32 | }; | 38 | }; |
| 33 | 39 | ||
| 34 | std::ostream& operator<<(std::ostream& out, const Version& ver); | 40 | constexpr const Version kTrackerVersion = Version(0, 10, 2); |
| 35 | |||
| 36 | constexpr const Version kTrackerVersion = Version(0, 9, 0); | ||
| 37 | 41 | ||
| 38 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file | 42 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file |
