HelloWorldTypeCode.java
[Java Example]
[$(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];
sm[i]=new StructMember("data",false,(short)-1,false,(TypeCode)TypeCode.TC_LONG); i++;
tc = TypeCodeFactory.TheTypeCodeFactory.create_struct_tc("HelloWorld",sm);
return tc;
}
}