1 /* 2 * Created by Phil on 27/6/2014. 3 * Copyright 2014 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_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED 9 #define TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED 10 11 #include <string> 12 13 namespace Catch { 14 15 struct TagAlias; 16 17 struct ITagAliasRegistry { 18 virtual ~ITagAliasRegistry(); 19 // Nullptr if not present 20 virtual TagAlias const* find( std::string const& alias ) const = 0; 21 virtual std::string expandAliases( std::string const& unexpandedTestSpec ) const = 0; 22 23 static ITagAliasRegistry const& get(); 24 }; 25 26 } // end namespace Catch 27 28 #endif // TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED 29