RTI Persistence Service Version 7.7.0
HelloWorldTypeCode.java

[$(NDDSHOME)/example/JAVA/helloWorldPersistence/HelloWorldTypeCode.java]

/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from .idl
using RTI Code Generator (rtiddsgen) version 4.7.0.
The rtiddsgen tool is part of the RTI Connext DDS distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the Code Generator User's Manual.
*/
import com.rti.dds.typecode.*;
public class HelloWorldTypeCode {
public static final TypeCode VALUE_WO_MEMBERS = getTypeCodeWOMembers();
// We need a type code without member in case of recursion
@SuppressWarnings("cast")
public static TypeCode getTypeCodeWOMembers() {
TypeCode tc = null;
StructMember sm[]=new StructMember[0];
Annotations annotation = new Annotations();
annotation.allowed_data_representation_mask(5);
tc = TypeCodeFactory.TheTypeCodeFactory.create_struct_tc("HelloWorld",ExtensibilityKind.EXTENSIBLE_EXTENSIBILITY, sm , annotation); return tc;
}
public static final TypeCode VALUE = getTypeCode();
// Depending on the type represented in the IDL, we may perform some redundant
// casts, we are suppressing that warning
@SuppressWarnings("cast")
private static TypeCode getTypeCode() {
TypeCode tc = null;
int __i=0;
StructMember sm[]=new StructMember[1];
Annotations memberAnnotations = null;
memberAnnotations = new Annotations();
memberAnnotations.default_annotation(AnnotationParameterValue.ZERO_LONG);
memberAnnotations.min_annotation(AnnotationParameterValue.MIN_LONG);
memberAnnotations.max_annotation(AnnotationParameterValue.MAX_LONG);
sm[__i] = new StructMember("data", false, (short)-1, false, TypeCode.TC_LONG, 0, false, memberAnnotations , false /* must_understand */);__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;
}
}