summaryrefslogtreecommitdiff
path: root/Examples/go/extend/example.go
blob: 08f21e6ab53ef27394487447e1940a1dd0cd15e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.1
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

package example


type _swig_fnptr *byte
type _swig_memberptr *byte


func _swig_allocatememory(int) *byte
func _swig_internal_allocate(len int) *byte {
	return _swig_allocatememory(len)
}

func _swig_allocatestring(*byte, int) string
func _swig_internal_makegostring(p *byte, l int) string {
	return _swig_allocatestring(p, l)
}

func _swig_internal_gopanic(p *byte, l int) {
	panic(_swig_allocatestring(p, l))
}

type _swig_DirectorEmployee struct {
	SwigcptrEmployee
	v interface{}
}

func (p *_swig_DirectorEmployee) Swigcptr() uintptr {
	return p.SwigcptrEmployee.Swigcptr()
}

func (p *_swig_DirectorEmployee) SwigIsEmployee() {
}

func (p *_swig_DirectorEmployee) DirectorInterface() interface{} {
	return p.v
}

func _swig_NewDirectorEmployeeEmployee(*_swig_DirectorEmployee, string) SwigcptrEmployee

func NewDirectorEmployee(v interface{}, arg1 string) Employee {
	p := &_swig_DirectorEmployee{0, v}
	p.SwigcptrEmployee = _swig_NewDirectorEmployeeEmployee(p, arg1)
	return p
}

type _swig_DirectorInterfaceEmployeeGetTitle interface {
	GetTitle() string
}

func _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(SwigcptrEmployee) string
func (swig_p *_swig_DirectorEmployee) GetTitle() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetTitle); swig_ok {
		return swig_g.GetTitle()
	}
	return _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(swig_p.SwigcptrEmployee)
}

func DirectorEmployeeGetTitle(p Employee) string {
	return _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(p.(*_swig_DirectorEmployee).SwigcptrEmployee)
}

func Swig_DirectorEmployee_callback_getTitle(p *_swig_DirectorEmployee) (swig_result string) {
	return p.GetTitle()
}

type _swig_DirectorInterfaceEmployeeGetName interface {
	GetName() string
}

func _swig_wrap__swig_DirectorEmployee_upcall_GetName(SwigcptrEmployee) string
func (swig_p *_swig_DirectorEmployee) GetName() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetName); swig_ok {
		return swig_g.GetName()
	}
	return _swig_wrap__swig_DirectorEmployee_upcall_GetName(swig_p.SwigcptrEmployee)
}

func DirectorEmployeeGetName(p Employee) string {
	return _swig_wrap__swig_DirectorEmployee_upcall_GetName(p.(*_swig_DirectorEmployee).SwigcptrEmployee)
}

func Swig_DirectorEmployee_callback_getName(p *_swig_DirectorEmployee) (swig_result string) {
	return p.GetName()
}

type _swig_DirectorInterfaceEmployeeGetPosition interface {
	GetPosition() string
}

func _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(SwigcptrEmployee) string
func (swig_p *_swig_DirectorEmployee) GetPosition() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetPosition); swig_ok {
		return swig_g.GetPosition()
	}
	return _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(swig_p.SwigcptrEmployee)
}

func DirectorEmployeeGetPosition(p Employee) string {
	return _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(p.(*_swig_DirectorEmployee).SwigcptrEmployee)
}

func Swig_DirectorEmployee_callback_getPosition(p *_swig_DirectorEmployee) (swig_result string) {
	return p.GetPosition()
}

func _swig_wrap_DeleteDirectorEmployee(uintptr)

func DeleteDirectorEmployee(arg1 Employee) {
	_swig_wrap_DeleteDirectorEmployee(arg1.Swigcptr())
}

func Swiggo_DeleteDirector_Employee(p *_swig_DirectorEmployee) {
	p.SwigcptrEmployee = 0
}

type SwigcptrEmployee uintptr

func (p SwigcptrEmployee) Swigcptr() uintptr {
	return (uintptr)(p)
}

func (p SwigcptrEmployee) SwigIsEmployee() {
}

func (p SwigcptrEmployee) DirectorInterface() interface{} {
	return nil
}

func _swig_wrap_new_Employee(string) SwigcptrEmployee

func NewEmployee(arg1 string) Employee {
	return _swig_wrap_new_Employee(arg1)
}

func _swig_wrap_Employee_getTitle(SwigcptrEmployee) string

func (arg1 SwigcptrEmployee) GetTitle() string {
	return _swig_wrap_Employee_getTitle(arg1)
}

func _swig_wrap_Employee_getName(SwigcptrEmployee) string

func (arg1 SwigcptrEmployee) GetName() string {
	return _swig_wrap_Employee_getName(arg1)
}

func _swig_wrap_Employee_getPosition(SwigcptrEmployee) string

func (arg1 SwigcptrEmployee) GetPosition() string {
	return _swig_wrap_Employee_getPosition(arg1)
}

func _swig_wrap_delete_Employee(uintptr)

func DeleteEmployee(arg1 Employee) {
	_swig_wrap_delete_Employee(arg1.Swigcptr())
}

type Employee interface {
	Swigcptr() uintptr
	SwigIsEmployee()
	DirectorInterface() interface{}
	GetTitle() string
	GetName() string
	GetPosition() string
}

type _swig_DirectorManager struct {
	SwigcptrManager
	v interface{}
}

func (p *_swig_DirectorManager) Swigcptr() uintptr {
	return p.SwigcptrManager.Swigcptr()
}

func (p *_swig_DirectorManager) SwigIsManager() {
}

func (p *_swig_DirectorManager) DirectorInterface() interface{} {
	return p.v
}

func _swig_NewDirectorManagerManager(*_swig_DirectorManager, string) SwigcptrManager

func NewDirectorManager(v interface{}, arg1 string) Manager {
	p := &_swig_DirectorManager{0, v}
	p.SwigcptrManager = _swig_NewDirectorManagerManager(p, arg1)
	return p
}

type _swig_DirectorInterfaceManagerGetTitle interface {
	GetTitle() string
}

func _swig_wrap__swig_DirectorManager_upcall_GetTitle(SwigcptrManager) string
func (swig_p *_swig_DirectorManager) GetTitle() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetTitle); swig_ok {
		return swig_g.GetTitle()
	}
	return _swig_wrap__swig_DirectorManager_upcall_GetTitle(swig_p.SwigcptrManager)
}

func DirectorManagerGetTitle(p Manager) string {
	return _swig_wrap__swig_DirectorManager_upcall_GetTitle(p.(*_swig_DirectorManager).SwigcptrManager)
}

func Swig_DirectorManager_callback_getTitle(p *_swig_DirectorManager) (swig_result string) {
	return p.GetTitle()
}

type _swig_DirectorInterfaceManagerGetName interface {
	GetName() string
}

func _swig_wrap__swig_DirectorManager_upcall_GetName(SwigcptrManager) string
func (swig_p *_swig_DirectorManager) GetName() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetName); swig_ok {
		return swig_g.GetName()
	}
	return _swig_wrap__swig_DirectorManager_upcall_GetName(swig_p.SwigcptrManager)
}

func DirectorManagerGetName(p Manager) string {
	return _swig_wrap__swig_DirectorManager_upcall_GetName(p.(*_swig_DirectorManager).SwigcptrManager)
}

func Swig_DirectorManager_callback_getName(p *_swig_DirectorManager) (swig_result string) {
	return p.GetName()
}

type _swig_DirectorInterfaceManagerGetPosition interface {
	GetPosition() string
}

func _swig_wrap__swig_DirectorManager_upcall_GetPosition(SwigcptrManager) string
func (swig_p *_swig_DirectorManager) GetPosition() string {
	if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetPosition); swig_ok {
		return swig_g.GetPosition()
	}
	return _swig_wrap__swig_DirectorManager_upcall_GetPosition(swig_p.SwigcptrManager)
}

func DirectorManagerGetPosition(p Manager) string {
	return _swig_wrap__swig_DirectorManager_upcall_GetPosition(p.(*_swig_DirectorManager).SwigcptrManager)
}

func Swig_DirectorManager_callback_getPosition(p *_swig_DirectorManager) (swig_result string) {
	return p.GetPosition()
}

func _swig_wrap_DeleteDirectorManager(uintptr)

func DeleteDirectorManager(arg1 Manager) {
	_swig_wrap_DeleteDirectorManager(arg1.Swigcptr())
}

func Swiggo_DeleteDirector_Manager(p *_swig_DirectorManager) {
	p.SwigcptrManager = 0
}

type SwigcptrManager uintptr

func (p SwigcptrManager) Swigcptr() uintptr {
	return (uintptr)(p)
}

func (p SwigcptrManager) SwigIsManager() {
}

func (p SwigcptrManager) DirectorInterface() interface{} {
	return nil
}

func _swig_wrap_new_Manager(string) SwigcptrManager

func NewManager(arg1 string) Manager {
	return _swig_wrap_new_Manager(arg1)
}

func _swig_wrap_Manager_getPosition(SwigcptrManager) string

func (arg1 SwigcptrManager) GetPosition() string {
	return _swig_wrap_Manager_getPosition(arg1)
}

func _swig_wrap_delete_Manager(uintptr)

func DeleteManager(arg1 Manager) {
	_swig_wrap_delete_Manager(arg1.Swigcptr())
}

func _swig_wrap_Manager_getTitle(SwigcptrManager) string

func (_swig_base SwigcptrManager) GetTitle() string {
	return _swig_wrap_Manager_getTitle(_swig_base)
}

func _swig_wrap_Manager_getName(SwigcptrManager) string

func (_swig_base SwigcptrManager) GetName() string {
	return _swig_wrap_Manager_getName(_swig_base)
}

func (p SwigcptrManager) SwigIsEmployee() {
}

func (p SwigcptrManager) SwigGetEmployee() Employee {
	return SwigcptrEmployee(p.Swigcptr())
}

type Manager interface {
	Swigcptr() uintptr
	SwigIsManager()
	DirectorInterface() interface{}
	GetPosition() string
	GetTitle() string
	GetName() string
	SwigIsEmployee()
	SwigGetEmployee() Employee
}

type SwigcptrEmployeeList uintptr

func (p SwigcptrEmployeeList) Swigcptr() uintptr {
	return (uintptr)(p)
}

func (p SwigcptrEmployeeList) SwigIsEmployeeList() {
}

func _swig_wrap_new_EmployeeList() SwigcptrEmployeeList

func NewEmployeeList() EmployeeList {
	return _swig_wrap_new_EmployeeList()
}

func _swig_wrap_EmployeeList_addEmployee(SwigcptrEmployeeList, uintptr)

func (arg1 SwigcptrEmployeeList) AddEmployee(arg2 Employee) {
	_swig_wrap_EmployeeList_addEmployee(arg1, arg2.Swigcptr())
}

func _swig_wrap_EmployeeList_get_item(SwigcptrEmployeeList, int) SwigcptrEmployee

func (arg1 SwigcptrEmployeeList) Get_item(arg2 int) Employee {
	return _swig_wrap_EmployeeList_get_item(arg1, arg2)
}

func _swig_wrap_delete_EmployeeList(uintptr)

func DeleteEmployeeList(arg1 EmployeeList) {
	_swig_wrap_delete_EmployeeList(arg1.Swigcptr())
}

type EmployeeList interface {
	Swigcptr() uintptr
	SwigIsEmployeeList()
	AddEmployee(arg2 Employee)
	Get_item(arg2 int) Employee
}


type SwigcptrSwigDirector_Manager uintptr
type SwigDirector_Manager interface {
	Swigcptr() uintptr;
}
func (p SwigcptrSwigDirector_Manager) Swigcptr() uintptr {
	return uintptr(p)
}

type SwigcptrSwigDirector_Employee uintptr
type SwigDirector_Employee interface {
	Swigcptr() uintptr;
}
func (p SwigcptrSwigDirector_Employee) Swigcptr() uintptr {
	return uintptr(p)
}

type SwigcptrVoid uintptr
type Void interface {
	Swigcptr() uintptr;
}
func (p SwigcptrVoid) Swigcptr() uintptr {
	return uintptr(p)
}