2017-02-01 09:09:48 +08:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace vcpkg::PostBuildLint::BuildPolicies
|
|
|
|
{
|
|
|
|
enum class backing_enum_t
|
|
|
|
{
|
|
|
|
UNKNOWN = 0,
|
2017-02-08 09:02:57 +08:00
|
|
|
EMPTY_PACKAGE,
|
2017-02-01 09:09:48 +08:00
|
|
|
DLLS_WITHOUT_LIBS
|
|
|
|
};
|
|
|
|
|
|
|
|
struct type
|
|
|
|
{
|
|
|
|
constexpr explicit type(backing_enum_t backing_enum) : backing_enum(backing_enum) { }
|
|
|
|
constexpr operator backing_enum_t() const { return backing_enum; }
|
|
|
|
|
|
|
|
const std::string& toString() const;
|
|
|
|
const std::string& cmake_variable() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
type();
|
|
|
|
backing_enum_t backing_enum;
|
|
|
|
};
|
|
|
|
|
2017-02-08 09:02:57 +08:00
|
|
|
static constexpr int value_count = 3;
|
2017-02-01 10:55:14 +08:00
|
|
|
const std::vector<type>& values();
|
|
|
|
|
2017-02-08 09:02:57 +08:00
|
|
|
|
2017-02-01 09:09:48 +08:00
|
|
|
static constexpr type UNKNOWN(backing_enum_t::UNKNOWN);
|
2017-02-08 09:02:57 +08:00
|
|
|
static constexpr type EMPTY_PACKAGE(backing_enum_t::EMPTY_PACKAGE);
|
2017-02-01 09:09:48 +08:00
|
|
|
static constexpr type DLLS_WITHOUT_LIBS(backing_enum_t::DLLS_WITHOUT_LIBS);
|
|
|
|
|
|
|
|
type parse(const std::string& s);
|
|
|
|
}
|