[$(NDDSHOME)/example/JAVA/helloWorldPersistence/HelloWorldTypeCode.java]
import com.rti.dds.typecode.*;
public class HelloWorldTypeCode {
public static final TypeCode VALUE = getTypeCode();
private static TypeCode getTypeCode() {
TypeCode tc = null;
int __i=0;
StructMember sm[]=new StructMember[1];
Annotations memberAnnotation;
memberAnnotation = new Annotations();
memberAnnotation.default_annotation(AnnotationParameterValue.ZERO_LONG);
memberAnnotation.min_annotation(AnnotationParameterValue.MIN_LONG);
memberAnnotation.max_annotation(AnnotationParameterValue.MAX_LONG);
sm[__i] = new StructMember("data", false, (short)-1, false, TypeCode.TC_LONG, 0, false, memberAnnotation);__i++;
Annotations annotation = new Annotations();
annotation.allowed_data_representation_mask(5);
tc = TypeCodeFactory.TheTypeCodeFactory.create_struct_tc("HelloWorld",ExtensibilityKind.EXTENSIBLE_EXTENSIBILITY, sm , annotation);
return tc;
}
}