1 import global_namespace.*;
2 
3 public class global_namespace_runme {
4 
5   static {
6     try {
7 	System.loadLibrary("global_namespace");
8     } catch (UnsatisfiedLinkError e) {
9       System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
10       System.exit(1);
11     }
12   }
13 
main(String argv[])14   public static void main(String argv[]) {
15 
16     Klass1 k1 = new Klass1();
17     Klass2 k2 = new Klass2();
18     Klass3 k3 = new Klass3();
19     Klass4 k4 = new Klass4();
20     Klass5 k5 = new Klass5();
21     Klass6 k6 = new Klass6();
22     Klass7 k7 = new Klass7();
23 
24     KlassMethods.methodA(k1, k2, k3, k4, k5, k6, k7);
25     KlassMethods.methodB(k1, k2, k3, k4, k5, k6, k7);
26 
27     k1 = global_namespace.getKlass1A();
28     k2 = global_namespace.getKlass2A();
29     k3 = global_namespace.getKlass3A();
30     k4 = global_namespace.getKlass4A();
31     k5 = global_namespace.getKlass5A();
32     k6 = global_namespace.getKlass6A();
33     k7 = global_namespace.getKlass7A();
34 
35     KlassMethods.methodA(k1, k2, k3, k4, k5, k6, k7);
36     KlassMethods.methodB(k1, k2, k3, k4, k5, k6, k7);
37 
38     k1 = global_namespace.getKlass1B();
39     k2 = global_namespace.getKlass2B();
40     k3 = global_namespace.getKlass3B();
41     k4 = global_namespace.getKlass4B();
42     k5 = global_namespace.getKlass5B();
43     k6 = global_namespace.getKlass6B();
44     k7 = global_namespace.getKlass7B();
45 
46     KlassMethods.methodA(k1, k2, k3, k4, k5, k6, k7);
47     KlassMethods.methodB(k1, k2, k3, k4, k5, k6, k7);
48 
49     XYZMethods.methodA(new XYZ1(), new XYZ2(), new XYZ3(), new XYZ4(), new XYZ5(), new XYZ6(), new XYZ7());
50     XYZMethods.methodB(new XYZ1(), new XYZ2(), new XYZ3(), new XYZ4(), new XYZ5(), new XYZ6(), new XYZ7());
51 
52     TheEnumMethods.methodA(TheEnum1.theenum1, TheEnum2.theenum2, TheEnum3.theenum3);
53     TheEnumMethods.methodA(TheEnum1.theenum1, TheEnum2.theenum2, TheEnum3.theenum3);
54   }
55 }
56