Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_enum_values_registry.h
Go to the documentation of this file.
1/*
2 * Created by Phil on 4/4/2019.
3 * Copyright 2019 Two Blue Cubes Ltd. All rights reserved.
4 *
5 * Distributed under the Boost Software License, Version 1.0. (See accompanying
6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 */
8#ifndef TWOBLUECUBES_CATCH_ENUMVALUESREGISTRY_H_INCLUDED
9#define TWOBLUECUBES_CATCH_ENUMVALUESREGISTRY_H_INCLUDED
10
12
13#include <vector>
14#include <memory>
15
16namespace Catch {
17
18 namespace Detail {
19
20 std::unique_ptr<EnumInfo> makeEnumInfo( StringRef enumName, StringRef allValueNames, std::vector<int> const& values );
21
23
24 std::vector<std::unique_ptr<EnumInfo>> m_enumInfos;
25
26 EnumInfo const& registerEnum( StringRef enumName, StringRef allEnums, std::vector<int> const& values) override;
27 };
28
29 std::vector<std::string> parseEnums( StringRef enums );
30
31 } // Detail
32
33} // Catch
34
35#endif //TWOBLUECUBES_CATCH_ENUMVALUESREGISTRY_H_INCLUDED
GenericStringRef< CharType > StringRef(const CharType *str)
Mark a character pointer as constant string.
Definition document.h:364
std::unique_ptr< EnumInfo > makeEnumInfo(StringRef enumName, StringRef allValueNames, std::vector< int > const &values)
std::vector< std::string > parseEnums(StringRef enums)