diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 16:13:46 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:43 -0700 |
| commit | b766a005b7a67d7adeadc16e765bda34d679f45d (patch) | |
| tree | 6be231a8b87203399bc22dc90478597d2e844edb /toolsrc/include/VersionT.h | |
| parent | 5b0d9f3ee000446550c72dd2cbaa4c95ae976ac6 (diff) | |
| download | vcpkg-b766a005b7a67d7adeadc16e765bda34d679f45d.tar.gz vcpkg-b766a005b7a67d7adeadc16e765bda34d679f45d.zip | |
version_t -> VersionT
Diffstat (limited to 'toolsrc/include/VersionT.h')
| -rw-r--r-- | toolsrc/include/VersionT.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/toolsrc/include/VersionT.h b/toolsrc/include/VersionT.h new file mode 100644 index 000000000..f02479f46 --- /dev/null +++ b/toolsrc/include/VersionT.h @@ -0,0 +1,28 @@ +#pragma once +#include <string> + +namespace vcpkg +{ + struct VersionT + { + VersionT(); + VersionT(const std::string& value); + + std::string value; + }; + + bool operator ==(const VersionT& left, const VersionT& right); + bool operator !=(const VersionT& left, const VersionT& right); + std::string to_printf_arg(const VersionT& version); + + struct version_diff_t + { + VersionT left; + VersionT right; + + version_diff_t(); + version_diff_t(const VersionT& left, const VersionT& right); + + std::string toString() const; + }; +} |
