aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/version_t.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-29 15:10:28 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 18:01:13 -0700
commite07471820951d5b23c9e176fae235bd8e3648651 (patch)
tree20b4808238cb1416ec573dc151b4bb4623c6ffba /toolsrc/include/version_t.h
parent9b9a35fa3824d3cd4f8da48fc0a60ca384a5ccab (diff)
downloadvcpkg-e07471820951d5b23c9e176fae235bd8e3648651.tar.gz
vcpkg-e07471820951d5b23c9e176fae235bd8e3648651.zip
Version_t
Diffstat (limited to 'toolsrc/include/version_t.h')
-rw-r--r--toolsrc/include/version_t.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/toolsrc/include/version_t.h b/toolsrc/include/version_t.h
new file mode 100644
index 000000000..9a4e11a39
--- /dev/null
+++ b/toolsrc/include/version_t.h
@@ -0,0 +1,28 @@
+#pragma once
+#include <string>
+
+namespace vcpkg
+{
+ struct version_t
+ {
+ version_t();
+ version_t(const std::string& value);
+
+ std::string value;
+ };
+
+ bool operator ==(const version_t& left, const version_t& right);
+ bool operator !=(const version_t& left, const version_t& right);
+ std::string to_printf_arg(const version_t& version);
+
+ struct version_diff_t
+ {
+ version_t left;
+ version_t right;
+
+ version_diff_t();
+ version_diff_t(const version_t& left, const version_t& right);
+
+ std::string toString() const;
+ };
+}