From bd232b03eec6cf527eaf8e5046f8d4b78f4a55c9 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 18 Jan 2013 18:16:54 +0000 Subject: [PATCH] Create a new interface for the type map database. This will be used later for mock testing. --- src/Generator/Types/TypeMap.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Generator/Types/TypeMap.cs b/src/Generator/Types/TypeMap.cs index d9b7d3fc..e25fa961 100644 --- a/src/Generator/Types/TypeMap.cs +++ b/src/Generator/Types/TypeMap.cs @@ -58,7 +58,13 @@ namespace Cxxi.Types } } - public class TypeDatabase + public interface ITypeMapDatabase + { + bool FindTypeMap(Declaration decl, out TypeMap typeMap); + bool FindTypeMap(string name, out TypeMap typeMap); + } + + public class TypeDatabase : ITypeMapDatabase { public IDictionary TypeMaps { get; set; }