RTI Secure Wan Transport  Version 5.3.0
 All Data Structures Functions Variables Typedefs Enumerations Groups Pages
HelloWorld.java

[$(HOME)/rti_workspace//examples/connext_dds/java/hello_world_wan/HelloWorld.java]

/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from .idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
import com.rti.dds.infrastructure.*;
import com.rti.dds.infrastructure.Copyable;
import java.io.Serializable;
import com.rti.dds.cdr.CdrHelper;
public class HelloWorld implements Copyable, Serializable{
public String msg= "" ; /* maximum length = (128) */
public HelloWorld() {
}
public HelloWorld (HelloWorld other) {
this();
copy_from(other);
}
public static Object create() {
HelloWorld self;
self = new HelloWorld();
self.clear();
return self;
}
public void clear() {
msg= "";
}
public boolean equals(Object o) {
if (o == null) {
return false;
}
if(getClass() != o.getClass()) {
return false;
}
HelloWorld otherObj = (HelloWorld)o;
if(!msg.equals(otherObj.msg)) {
return false;
}
return true;
}
public int hashCode() {
int __result = 0;
__result += msg.hashCode();
return __result;
}
public Object copy_from(Object src) {
HelloWorld typedSrc = (HelloWorld) src;
HelloWorld typedDst = this;
typedDst.msg = typedSrc.msg;
return this;
}
public String toString(){
return toString("", 0);
}
public String toString(String desc, int indent) {
StringBuffer strBuffer = new StringBuffer();
if (desc != null) {
CdrHelper.printIndent(strBuffer, indent);
strBuffer.append(desc).append(":\n");
}
CdrHelper.printIndent(strBuffer, indent+1);
strBuffer.append("msg: ").append(msg).append("\n");
return strBuffer.toString();
}
}

RTI Secure Wan Transport Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc