From ba1b811b907eb5852d0fe8ade4a38d9d1181e01a Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 18 Jan 2013 17:42:23 +0000 Subject: [PATCH] Added default implementations for type map methods. --- src/Generator/Types/TypeMap.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/Generator/Types/TypeMap.cs b/src/Generator/Types/TypeMap.cs index 89d1bffc..1821e26d 100644 --- a/src/Generator/Types/TypeMap.cs +++ b/src/Generator/Types/TypeMap.cs @@ -28,7 +28,7 @@ namespace Cxxi.Types /// freedom and customization when translating between the source and /// target language types. /// - public abstract class TypeMap + public class TypeMap { public Type Type { get; set; } public Declaration Declaration { get; set; } @@ -38,9 +38,20 @@ namespace Cxxi.Types get { return false; } } - public abstract string Signature(); - public abstract string MarshalToNative(MarshalContext ctx); - public abstract string MarshalFromNative(MarshalContext ctx); + public virtual string Signature() + { + throw new NotImplementedException(); + } + + public virtual string MarshalToNative(MarshalContext ctx) + { + throw new NotImplementedException(); + } + + public virtual string MarshalFromNative(MarshalContext ctx) + { + throw new NotImplementedException(); + } } public class TypeDatabase