diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-29 15:10:28 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 18:01:13 -0700 |
| commit | e07471820951d5b23c9e176fae235bd8e3648651 (patch) | |
| tree | 20b4808238cb1416ec573dc151b4bb4623c6ffba /toolsrc/include/version_t.h | |
| parent | 9b9a35fa3824d3cd4f8da48fc0a60ca384a5ccab (diff) | |
| download | vcpkg-e07471820951d5b23c9e176fae235bd8e3648651.tar.gz vcpkg-e07471820951d5b23c9e176fae235bd8e3648651.zip | |
Version_t
Diffstat (limited to 'toolsrc/include/version_t.h')
| -rw-r--r-- | toolsrc/include/version_t.h | 28 |
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; + }; +} |
