Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • anders_blomdell/labcomm
  • klaren/labcomm
  • tommyo/labcomm
  • erikj/labcomm
  • sven/labcomm
5 results
Select Git revision
Show changes
Showing
with 0 additions and 1583 deletions
/*
sample int_t int_t_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class int_t_s implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_int_t_s(int value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return int_t_s.class;
}
public String getName() {
return "int_t_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_int_t_s(int_t_s.decode(d));
}
}
public static void encode(LabCommEncoder e, int value) throws IOException {
e.begin(int_t_s.class);
e.encodeInt(value);
e.end(int_t_s.class);
}
public static int decode(LabCommDecoder d) throws IOException {
int result;
result = d.decodeInt();
return result;
}
private static byte[] signature = new byte[] {
0, 0, 0, 35,
};
}
/*
sample struct {
int a;
} struct_array_s[2];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_array_s implements LabCommSample {
public int a;
public interface Handler extends LabCommHandler {
public void handle_struct_array_s(struct_array_s[] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_array_s.class;
}
public String getName() {
return "struct_array_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_array_s(struct_array_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_array_s[] value) throws IOException {
e.begin(struct_array_s.class);
int i_0_max = 2;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0].a);
}
e.end(struct_array_s.class);
}
public static struct_array_s[] decode(LabCommDecoder d) throws IOException {
struct_array_s[] result;
{
int i_0_max = 2;
result = new struct_array_s[i_0_max];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = new struct_array_s();
result[i_0].a = d.decodeInt();
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// }
// }
};
}
/*
sample struct {
int aa;
boolean bb;
int_array_ss ias;
} struct_array_ss[1][_][_];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_array_ss implements LabCommSample {
public int aa;
public boolean bb;
public int[][][][][] ias;
public interface Handler extends LabCommHandler {
public void handle_struct_array_ss(struct_array_ss[][][] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_array_ss.class;
}
public String getName() {
return "struct_array_ss";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_array_ss(struct_array_ss.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_array_ss[][][] value) throws IOException {
e.begin(struct_array_ss.class);
int i_0_max = 1;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0].length);
int i_1_max = value[i_0].length;
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
e.encodeInt(value[i_0][i_1].length);
int i_2_max = value[i_0][i_1].length;
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
e.encodeInt(value[i_0][i_1][i_2].aa);
e.encodeBoolean(value[i_0][i_1][i_2].bb);
int i_3_max = 1;
for (int i_3 = 0 ; i_3 < i_3_max ; i_3++) {
e.encodeInt(value[i_0][i_1][i_2].ias[i_3].length);
int i_4_max = value[i_0][i_1][i_2].ias[i_3].length;
int i_5_max = 3;
e.encodeInt(value[i_0][i_1][i_2].ias[i_3][0][0].length);
int i_6_max = value[i_0][i_1][i_2].ias[i_3][0][0].length;
for (int i_4 = 0 ; i_4 < i_4_max ; i_4++) {
for (int i_5 = 0 ; i_5 < i_5_max ; i_5++) {
for (int i_6 = 0 ; i_6 < i_6_max ; i_6++) {
int i_7_max = 5;
for (int i_7 = 0 ; i_7 < i_7_max ; i_7++) {
e.encodeInt(value[i_0][i_1][i_2].ias[i_3][i_4][i_5][i_6][i_7]);
}
}
}
}
}
}
}
}
e.end(struct_array_ss.class);
}
public static struct_array_ss[][][] decode(LabCommDecoder d) throws IOException {
struct_array_ss[][][] result;
{
int i_0_max = 1;
result = new struct_array_ss[i_0_max][][];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
{
int i_1_max = d.decodeInt();
result[i_0] = new struct_array_ss[i_1_max][];
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
{
int i_2_max = d.decodeInt();
result[i_0][i_1] = new struct_array_ss[i_2_max];
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
result[i_0][i_1][i_2] = new struct_array_ss();
result[i_0][i_1][i_2].aa = d.decodeInt();
result[i_0][i_1][i_2].bb = d.decodeBoolean();
{
int i_3_max = 1;
result[i_0][i_1][i_2].ias = new int[i_3_max][][][][];
for (int i_3 = 0 ; i_3 < i_3_max ; i_3++) {
{
int i_4_max = d.decodeInt();
int i_5_max = 3;
int i_6_max = d.decodeInt();
result[i_0][i_1][i_2].ias[i_3] = new int[i_4_max][][][];
for (int i_4 = 0 ; i_4 < i_4_max ; i_4++) {
result[i_0][i_1][i_2].ias[i_3][i_4] = new int[i_5_max][][];
for (int i_5 = 0 ; i_5 < i_5_max ; i_5++) {
result[i_0][i_1][i_2].ias[i_3][i_4][i_5] = new int[i_6_max][];
for (int i_6 = 0 ; i_6 < i_6_max ; i_6++) {
{
int i_7_max = 5;
result[i_0][i_1][i_2].ias[i_3][i_4][i_5][i_6] = new int[i_7_max];
for (int i_7 = 0 ; i_7 < i_7_max ; i_7++) {
result[i_0][i_1][i_2].ias[i_3][i_4][i_5][i_6][i_7] = d.decodeInt();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [1]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 1,
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
// struct { 3 fields
0, 0, 0, 17,
0, 0, 0, 3,
// int 'aa'
0, 0, 0, 2,
97, 97,
0, 0, 0, 35,
// boolean 'bb'
0, 0, 0, 2,
98, 98,
0, 0, 0, 32,
// int_array_ss 'ias'
0, 0, 0, 3,
105, 97, 115,
// array [1]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 1,
// array [_, 3, _]
0, 0, 0, 16,
0, 0, 0, 3,
0, 0, 0, 0,
0, 0, 0, 3,
0, 0, 0, 0,
// array [5]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 5,
0, 0, 0, 35,
// }
// }
// }
// }
// }
// }
// }
};
}
/*
typedef struct {
int a;
} struct_array_t[2];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommType;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommDecoder;
public class struct_array_t implements LabCommType {
public int a;
public static void encode(LabCommEncoder e, struct_array_t[] value) throws IOException {
int i_0_max = 2;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0].a);
}
}
public static struct_array_t[] decode(LabCommDecoder d) throws IOException {
struct_array_t[] result;
{
int i_0_max = 2;
result = new struct_array_t[i_0_max];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = new struct_array_t();
result[i_0].a = d.decodeInt();
}
}
return result;
}
}
/*
sample struct_array_t struct_array_t_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_array_t_s implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_struct_array_t_s(struct_array_t[] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_array_t_s.class;
}
public String getName() {
return "struct_array_t_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_array_t_s(struct_array_t_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_array_t[] value) throws IOException {
e.begin(struct_array_t_s.class);
struct_array_t.encode(e, value);
e.end(struct_array_t_s.class);
}
public static struct_array_t[] decode(LabCommDecoder d) throws IOException {
struct_array_t[] result;
result = struct_array_t.decode(d);
return result;
}
private static byte[] signature = new byte[] {
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// }
// }
};
}
/*
sample struct {
int a;
double bcd;
} struct_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_s implements LabCommSample {
public int a;
public double bcd;
public interface Handler extends LabCommHandler {
public void handle_struct_s(struct_s value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_s.class;
}
public String getName() {
return "struct_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_s(struct_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_s value) throws IOException {
e.begin(struct_s.class);
e.encodeInt(value.a);
e.encodeDouble(value.bcd);
e.end(struct_s.class);
}
public static struct_s decode(LabCommDecoder d) throws IOException {
struct_s result;
result = new struct_s();
result.a = d.decodeInt();
result.bcd = d.decodeDouble();
return result;
}
private static byte[] signature = new byte[] {
// struct { 2 fields
0, 0, 0, 17,
0, 0, 0, 2,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// double 'bcd'
0, 0, 0, 3,
98, 99, 100,
0, 0, 0, 38,
// }
};
}
/*
sample struct {
struct {
int a;
} a;
} struct_struct_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_struct_s implements LabCommSample {
public static class struct_a {
public int a;
}
public struct_a a;
public interface Handler extends LabCommHandler {
public void handle_struct_struct_s(struct_struct_s value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_struct_s.class;
}
public String getName() {
return "struct_struct_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_struct_s(struct_struct_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_struct_s value) throws IOException {
e.begin(struct_struct_s.class);
e.encodeInt(value.a.a);
e.end(struct_struct_s.class);
}
public static struct_struct_s decode(LabCommDecoder d) throws IOException {
struct_struct_s result;
result = new struct_struct_s();
result.a = new struct_a();
result.a.a = d.decodeInt();
return result;
}
private static byte[] signature = new byte[] {
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// struct 'a'
0, 0, 0, 1,
97,
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// }
// }
};
}
/*
typedef struct {
struct {
int a;
} a;
} struct_struct_t;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommType;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommDecoder;
public class struct_struct_t implements LabCommType {
public static class struct_a {
public int a;
}
public struct_a a;
public static void encode(LabCommEncoder e, struct_struct_t value) throws IOException {
e.encodeInt(value.a.a);
}
public static struct_struct_t decode(LabCommDecoder d) throws IOException {
struct_struct_t result;
result = new struct_struct_t();
result.a = new struct_a();
result.a.a = d.decodeInt();
return result;
}
}
/*
sample struct_struct_t struct_struct_t_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_struct_t_s implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_struct_struct_t_s(struct_struct_t value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_struct_t_s.class;
}
public String getName() {
return "struct_struct_t_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_struct_t_s(struct_struct_t_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_struct_t value) throws IOException {
e.begin(struct_struct_t_s.class);
struct_struct_t.encode(e, value);
e.end(struct_struct_t_s.class);
}
public static struct_struct_t decode(LabCommDecoder d) throws IOException {
struct_struct_t result;
result = struct_struct_t.decode(d);
return result;
}
private static byte[] signature = new byte[] {
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// struct 'a'
0, 0, 0, 1,
97,
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// }
// }
};
}
/*
typedef struct {
int a;
} struct_t;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommType;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommDecoder;
public class struct_t implements LabCommType {
public int a;
public static void encode(LabCommEncoder e, struct_t value) throws IOException {
e.encodeInt(value.a);
}
public static struct_t decode(LabCommDecoder d) throws IOException {
struct_t result;
result = new struct_t();
result.a = d.decodeInt();
return result;
}
}
/*
sample struct_t struct_t_s;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class struct_t_s implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_struct_t_s(struct_t value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return struct_t_s.class;
}
public String getName() {
return "struct_t_s";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_struct_t_s(struct_t_s.decode(d));
}
}
public static void encode(LabCommEncoder e, struct_t value) throws IOException {
e.begin(struct_t_s.class);
struct_t.encode(e, value);
e.end(struct_t_s.class);
}
public static struct_t decode(LabCommDecoder d) throws IOException {
struct_t result;
result = struct_t.decode(d);
return result;
}
private static byte[] signature = new byte[] {
// struct { 1 fields
0, 0, 0, 17,
0, 0, 0, 1,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// }
};
}
/*
sample int a_fixed_int_array[2];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_fixed_int_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_fixed_int_array(int[] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_fixed_int_array.class;
}
public String getName() {
return "a_fixed_int_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_fixed_int_array(a_fixed_int_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[] value) throws IOException {
e.begin(a_fixed_int_array.class);
int i_0_max = 2;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0]);
}
e.end(a_fixed_int_array.class);
}
public static int[] decode(LabCommDecoder d) throws IOException {
int[] result;
{
int i_0_max = 2;
result = new int[i_0_max];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = d.decodeInt();
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
0, 0, 0, 35,
// }
};
}
/*
sample int a_fixed_int_array_array_array[2][2][2];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_fixed_int_array_array_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_fixed_int_array_array_array(int[][][] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_fixed_int_array_array_array.class;
}
public String getName() {
return "a_fixed_int_array_array_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_fixed_int_array_array_array(a_fixed_int_array_array_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[][][] value) throws IOException {
e.begin(a_fixed_int_array_array_array.class);
int i_0_max = 2;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
int i_1_max = 2;
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
int i_2_max = 2;
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
e.encodeInt(value[i_0][i_1][i_2]);
}
}
}
e.end(a_fixed_int_array_array_array.class);
}
public static int[][][] decode(LabCommDecoder d) throws IOException {
int[][][] result;
{
int i_0_max = 2;
result = new int[i_0_max][][];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
{
int i_1_max = 2;
result[i_0] = new int[i_1_max][];
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
{
int i_2_max = 2;
result[i_0][i_1] = new int[i_2_max];
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
result[i_0][i_1][i_2] = d.decodeInt();
}
}
}
}
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
// array [2]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 2,
0, 0, 0, 35,
// }
// }
// }
};
}
/*
sample int a_fixed_int_multi_array[2, 2, 2];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_fixed_int_multi_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_fixed_int_multi_array(int[][][] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_fixed_int_multi_array.class;
}
public String getName() {
return "a_fixed_int_multi_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_fixed_int_multi_array(a_fixed_int_multi_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[][][] value) throws IOException {
e.begin(a_fixed_int_multi_array.class);
int i_0_max = 2;
int i_1_max = 2;
int i_2_max = 2;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
e.encodeInt(value[i_0][i_1][i_2]);
}
}
}
e.end(a_fixed_int_multi_array.class);
}
public static int[][][] decode(LabCommDecoder d) throws IOException {
int[][][] result;
{
int i_0_max = 2;
int i_1_max = 2;
int i_2_max = 2;
result = new int[i_0_max][][];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = new int[i_1_max][];
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
result[i_0][i_1] = new int[i_2_max];
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
result[i_0][i_1][i_2] = d.decodeInt();
}
}
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [2, 2, 2]
0, 0, 0, 16,
0, 0, 0, 3,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 35,
// }
};
}
/*
sample int a_variable_int_array[_];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_variable_int_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_variable_int_array(int[] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_variable_int_array.class;
}
public String getName() {
return "a_variable_int_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_variable_int_array(a_variable_int_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[] value) throws IOException {
e.begin(a_variable_int_array.class);
e.encodeInt(value.length);
int i_0_max = value.length;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0]);
}
e.end(a_variable_int_array.class);
}
public static int[] decode(LabCommDecoder d) throws IOException {
int[] result;
{
int i_0_max = d.decodeInt();
result = new int[i_0_max];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = d.decodeInt();
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
0, 0, 0, 35,
// }
};
}
/*
sample int a_variable_int_array_array_array[_][_][_];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_variable_int_array_array_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_variable_int_array_array_array(int[][][] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_variable_int_array_array_array.class;
}
public String getName() {
return "a_variable_int_array_array_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_variable_int_array_array_array(a_variable_int_array_array_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[][][] value) throws IOException {
e.begin(a_variable_int_array_array_array.class);
e.encodeInt(value.length);
int i_0_max = value.length;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
e.encodeInt(value[i_0].length);
int i_1_max = value[i_0].length;
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
e.encodeInt(value[i_0][i_1].length);
int i_2_max = value[i_0][i_1].length;
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
e.encodeInt(value[i_0][i_1][i_2]);
}
}
}
e.end(a_variable_int_array_array_array.class);
}
public static int[][][] decode(LabCommDecoder d) throws IOException {
int[][][] result;
{
int i_0_max = d.decodeInt();
result = new int[i_0_max][][];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
{
int i_1_max = d.decodeInt();
result[i_0] = new int[i_1_max][];
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
{
int i_2_max = d.decodeInt();
result[i_0][i_1] = new int[i_2_max];
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
result[i_0][i_1][i_2] = d.decodeInt();
}
}
}
}
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
// array [_]
0, 0, 0, 16,
0, 0, 0, 1,
0, 0, 0, 0,
0, 0, 0, 35,
// }
// }
// }
};
}
/*
sample int a_variable_int_multi_array[_, _, _];
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_variable_int_multi_array implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_variable_int_multi_array(int[][][] value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_variable_int_multi_array.class;
}
public String getName() {
return "a_variable_int_multi_array";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_a_variable_int_multi_array(a_variable_int_multi_array.decode(d));
}
}
public static void encode(LabCommEncoder e, int[][][] value) throws IOException {
e.begin(a_variable_int_multi_array.class);
e.encodeInt(value.length);
int i_0_max = value.length;
e.encodeInt(value[0].length);
int i_1_max = value[0].length;
e.encodeInt(value[0][0].length);
int i_2_max = value[0][0].length;
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
e.encodeInt(value[i_0][i_1][i_2]);
}
}
}
e.end(a_variable_int_multi_array.class);
}
public static int[][][] decode(LabCommDecoder d) throws IOException {
int[][][] result;
{
int i_0_max = d.decodeInt();
int i_1_max = d.decodeInt();
int i_2_max = d.decodeInt();
result = new int[i_0_max][][];
for (int i_0 = 0 ; i_0 < i_0_max ; i_0++) {
result[i_0] = new int[i_1_max][];
for (int i_1 = 0 ; i_1 < i_1_max ; i_1++) {
result[i_0][i_1] = new int[i_2_max];
for (int i_2 = 0 ; i_2 < i_2_max ; i_2++) {
result[i_0][i_1][i_2] = d.decodeInt();
}
}
}
}
return result;
}
private static byte[] signature = new byte[] {
// array [_, _, _]
0, 0, 0, 16,
0, 0, 0, 3,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 35,
// }
};
}
/*
sample void a_void;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class a_void implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_a_void() throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return a_void.class;
}
public String getName() {
return "a_void";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
a_void.decode(d);
((Handler)h).handle_a_void();
}
}
public static void encode(LabCommEncoder e) throws IOException {
e.begin(a_void.class);
e.end(a_void.class);
}
public static void decode(LabCommDecoder d) throws IOException {
}
private static byte[] signature = new byte[] {
// void
0, 0, 0, 17,
0, 0, 0, 0,
};
}
/*
sample int an_int;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class an_int implements LabCommSample {
public interface Handler extends LabCommHandler {
public void handle_an_int(int value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return an_int.class;
}
public String getName() {
return "an_int";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_an_int(an_int.decode(d));
}
}
public static void encode(LabCommEncoder e, int value) throws IOException {
e.begin(an_int.class);
e.encodeInt(value);
e.end(an_int.class);
}
public static int decode(LabCommDecoder d) throws IOException {
int result;
result = d.decodeInt();
return result;
}
private static byte[] signature = new byte[] {
0, 0, 0, 35,
};
}
/*
sample struct {
int a;
int b;
} an_int_struct;
*/
import java.io.IOException;
import se.lth.control.labcomm.LabCommDecoder;
import se.lth.control.labcomm.LabCommDispatcher;
import se.lth.control.labcomm.LabCommEncoder;
import se.lth.control.labcomm.LabCommHandler;
import se.lth.control.labcomm.LabCommSample;
public class an_int_struct implements LabCommSample {
public int a;
public int b;
public interface Handler extends LabCommHandler {
public void handle_an_int_struct(an_int_struct value) throws Exception;
}
public static void register(LabCommDecoder d, Handler h) throws IOException {
d.register(new Dispatcher(), h);
}
public static void register(LabCommEncoder e) throws IOException {
e.register(new Dispatcher());
}
private static class Dispatcher implements LabCommDispatcher {
public Class getSampleClass() {
return an_int_struct.class;
}
public String getName() {
return "an_int_struct";
}
public byte[] getSignature() {
return signature;
}
public void decodeAndHandle(LabCommDecoder d,
LabCommHandler h) throws Exception {
((Handler)h).handle_an_int_struct(an_int_struct.decode(d));
}
}
public static void encode(LabCommEncoder e, an_int_struct value) throws IOException {
e.begin(an_int_struct.class);
e.encodeInt(value.a);
e.encodeInt(value.b);
e.end(an_int_struct.class);
}
public static an_int_struct decode(LabCommDecoder d) throws IOException {
an_int_struct result;
result = new an_int_struct();
result.a = d.decodeInt();
result.b = d.decodeInt();
return result;
}
private static byte[] signature = new byte[] {
// struct { 2 fields
0, 0, 0, 17,
0, 0, 0, 2,
// int 'a'
0, 0, 0, 1,
97,
0, 0, 0, 35,
// int 'b'
0, 0, 0, 1,
98,
0, 0, 0, 35,
// }
};
}