5
5
using CppSharp . Generators . AST ;
6
6
using CppSharp . Generators . C ;
7
7
using CppSharp . Generators . CLI ;
8
- using CppSharp . Generators . CSharp ;
9
8
10
- namespace CppSharp . Types . Std
9
+ namespace CppSharp . Types . Std . CLI
11
10
{
12
11
[ TypeMap ( "const char*" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
13
- public partial class ConstCharPointer : TypeMap
12
+ public class ConstCharPointer : TypeMap
14
13
{
15
14
public override Type SignatureType ( TypePrinterContext ctx , GeneratorKind kind )
16
15
{
@@ -57,33 +56,32 @@ public override void MarshalToManaged(MarshalContext ctx, GeneratorKind kind)
57
56
$ "{ Context . Options . Encoding . EncodingName } is not supported yet.") ;
58
57
59
58
ctx . Return . Write (
60
- $@ "({ ctx . ReturnVarName } == 0 ? nullptr : clix::marshalString<clix::{
61
- param } >({ ctx . ReturnVarName } ))" ) ;
59
+ $@ "({ ctx . ReturnVarName } == 0 ? nullptr : clix::marshalString<clix::{ param } >({ ctx . ReturnVarName } ))") ;
62
60
}
63
61
}
64
62
65
63
[ TypeMap ( "const char[]" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
66
- public partial class ConstCharArray : ConstCharPointer
64
+ public class ConstCharArray : ConstCharPointer
67
65
{
68
66
}
69
67
70
68
[ TypeMap ( "const wchar_t*" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
71
- public partial class ConstWCharTPointer : ConstCharPointer
69
+ public class ConstWCharTPointer : ConstCharPointer
72
70
{
73
71
}
74
72
75
73
[ TypeMap ( "const char16_t*" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
76
- public partial class ConstChar16TPointer : ConstCharPointer
74
+ public class ConstChar16TPointer : ConstCharPointer
77
75
{
78
76
}
79
77
80
78
[ TypeMap ( "const char32_t*" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
81
- public partial class ConstChar32TPointer : ConstCharPointer
79
+ public class ConstChar32TPointer : ConstCharPointer
82
80
{
83
81
}
84
82
85
83
[ TypeMap ( "basic_string<char, char_traits<char>, allocator<char>>" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
86
- public partial class String : TypeMap
84
+ public class String : TypeMap
87
85
{
88
86
public override Type SignatureType ( TypePrinterContext ctx , GeneratorKind kind )
89
87
{
@@ -104,7 +102,7 @@ public override void MarshalToManaged(MarshalContext ctx, GeneratorKind kind)
104
102
}
105
103
106
104
[ TypeMap ( "std::wstring" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
107
- public partial class WString : TypeMap
105
+ public class WString : TypeMap
108
106
{
109
107
public override Type SignatureType ( TypePrinterContext ctx , GeneratorKind kind )
110
108
{
@@ -125,7 +123,7 @@ public override void MarshalToManaged(MarshalContext ctx, GeneratorKind kind)
125
123
}
126
124
127
125
[ TypeMap ( "std::vector" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
128
- public partial class Vector : TypeMap
126
+ public class Vector : TypeMap
129
127
{
130
128
public override bool IsIgnored
131
129
{
@@ -259,16 +257,15 @@ public override void MarshalToManaged(MarshalContext ctx, GeneratorKind kind)
259
257
}
260
258
261
259
[ TypeMap ( "std::map" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
262
- public partial class Map : TypeMap
260
+ public class Map : TypeMap
263
261
{
264
262
public override bool IsIgnored { get { return true ; } }
265
263
266
264
public override Type SignatureType ( TypePrinterContext ctx , GeneratorKind kind )
267
265
{
268
266
var type = Type as TemplateSpecializationType ;
269
267
return new CustomType (
270
- $@ "::System::Collections::Generic::Dictionary<{
271
- type . Arguments [ 0 ] . Type } , { type . Arguments [ 1 ] . Type } >^" ) ;
268
+ $@ "::System::Collections::Generic::Dictionary<{ type . Arguments [ 0 ] . Type } , { type . Arguments [ 1 ] . Type } >^") ;
272
269
}
273
270
274
271
public override void MarshalToNative ( MarshalContext ctx , GeneratorKind kind )
@@ -283,19 +280,19 @@ public override void MarshalToManaged(MarshalContext ctx, GeneratorKind kind)
283
280
}
284
281
285
282
[ TypeMap ( "std::list" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
286
- public partial class List : TypeMap
283
+ public class List : TypeMap
287
284
{
288
285
public override bool IsIgnored { get { return true ; } }
289
286
}
290
287
291
288
[ TypeMap ( "std::shared_ptr" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
292
- public partial class SharedPtr : TypeMap
289
+ public class SharedPtr : TypeMap
293
290
{
294
291
public override bool IsIgnored { get { return true ; } }
295
292
}
296
293
297
294
[ TypeMap ( "basic_ostream<char, char_traits<char>>" , GeneratorKind . CLI_ID ) ]
298
- public partial class OStream : TypeMap
295
+ public class OStream : TypeMap
299
296
{
300
297
public override Type SignatureType ( TypePrinterContext ctx , GeneratorKind kind )
301
298
{
@@ -315,7 +312,7 @@ public override void MarshalToNative(MarshalContext ctx, GeneratorKind kind)
315
312
}
316
313
317
314
[ TypeMap ( "std::nullptr_t" , GeneratorKindID = GeneratorKind . CLI_ID ) ]
318
- public partial class NullPtr : TypeMap
315
+ public class NullPtr : TypeMap
319
316
{
320
317
public override bool DoesMarshalling { get { return false ; } }
321
318
0 commit comments