Browse Source

Added default implementations for type map methods.

pull/1/head
triton 13 years ago
parent
commit
ba1b811b90
  1. 19
      src/Generator/Types/TypeMap.cs

19
src/Generator/Types/TypeMap.cs

@ -28,7 +28,7 @@ namespace Cxxi.Types
/// freedom and customization when translating between the source and /// freedom and customization when translating between the source and
/// target language types. /// target language types.
/// </summary> /// </summary>
public abstract class TypeMap public class TypeMap
{ {
public Type Type { get; set; } public Type Type { get; set; }
public Declaration Declaration { get; set; } public Declaration Declaration { get; set; }
@ -38,9 +38,20 @@ namespace Cxxi.Types
get { return false; } get { return false; }
} }
public abstract string Signature(); public virtual string Signature()
public abstract string MarshalToNative(MarshalContext ctx); {
public abstract string MarshalFromNative(MarshalContext ctx); throw new NotImplementedException();
}
public virtual string MarshalToNative(MarshalContext ctx)
{
throw new NotImplementedException();
}
public virtual string MarshalFromNative(MarshalContext ctx)
{
throw new NotImplementedException();
}
} }
public class TypeDatabase public class TypeDatabase

Loading…
Cancel
Save