diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-11-05 06:27:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-05 17:08:35 (GMT) |
commit | c544cb66984f16cc63ebace16ccd911adc550b9d (patch) | |
tree | 013f0d741970ec4efe01e0e22c6ed42dcab050b9 /Source/CTest/cmCTestResourceSpec.h | |
parent | 6ce27d3a2efad4e40d4354a7d17e4259fb4c1e24 (diff) | |
download | CMake-c544cb66984f16cc63ebace16ccd911adc550b9d.zip CMake-c544cb66984f16cc63ebace16ccd911adc550b9d.tar.gz CMake-c544cb66984f16cc63ebace16ccd911adc550b9d.tar.bz2 |
CTest: Rename hardware -> resources for source code
Diffstat (limited to 'Source/CTest/cmCTestResourceSpec.h')
-rw-r--r-- | Source/CTest/cmCTestResourceSpec.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestResourceSpec.h b/Source/CTest/cmCTestResourceSpec.h new file mode 100644 index 0000000..4646db8 --- /dev/null +++ b/Source/CTest/cmCTestResourceSpec.h @@ -0,0 +1,40 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ +#ifndef cmCTestResourceSpec_h +#define cmCTestResourceSpec_h + +#include <map> +#include <string> +#include <vector> + +class cmCTestResourceSpec +{ +public: + class Resource + { + public: + std::string Id; + unsigned int Capacity; + + bool operator==(const Resource& other) const; + bool operator!=(const Resource& other) const; + }; + + class Socket + { + public: + std::map<std::string, std::vector<Resource>> Resources; + + bool operator==(const Socket& other) const; + bool operator!=(const Socket& other) const; + }; + + Socket LocalSocket; + + bool ReadFromJSONFile(const std::string& filename); + + bool operator==(const cmCTestResourceSpec& other) const; + bool operator!=(const cmCTestResourceSpec& other) const; +}; + +#endif |