00001
00002
00003 package ros.pkg.roscpp.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class Logger extends ros.communication.Message {
00008
00009 public java.lang.String name = new java.lang.String();
00010 public java.lang.String level = new java.lang.String();
00011
00012 public Logger() {
00013 }
00014
00015 public static java.lang.String __s_getDataType() { return "roscpp/Logger"; }
00016 public java.lang.String getDataType() { return __s_getDataType(); }
00017 public static java.lang.String __s_getMD5Sum() { return "a6069a2ff40db7bd32143dd66e1f408e"; }
00018 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00019 public static java.lang.String __s_getMessageDefinition() { return "string name\n" +
00020 "string level\n" +
00021 "\n" +
00022 ""; }
00023 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00024
00025 public Logger clone() {
00026 Logger c = new Logger();
00027 c.deserialize(serialize(0));
00028 return c;
00029 }
00030
00031 public void setTo(ros.communication.Message m) {
00032 deserialize(m.serialize(0));
00033 }
00034
00035 public int serializationLength() {
00036 int __l = 0;
00037 __l += 4 + name.length();
00038 __l += 4 + level.length();
00039 return __l;
00040 }
00041
00042 public void serialize(ByteBuffer bb, int seq) {
00043 Serialization.writeString(bb, name);
00044 Serialization.writeString(bb, level);
00045 }
00046
00047 public void deserialize(ByteBuffer bb) {
00048 name = Serialization.readString(bb);
00049 level = Serialization.readString(bb);
00050 }
00051
00052 @SuppressWarnings("all")
00053 public boolean equals(Object o) {
00054 if(!(o instanceof Logger))
00055 return false;
00056 Logger other = (Logger) o;
00057 return
00058 name.equals(other.name) &&
00059 level.equals(other.level) &&
00060 true;
00061 }
00062
00063 @SuppressWarnings("all")
00064 public int hashCode() {
00065 final int prime = 31;
00066 int result = 1;
00067 long tmp;
00068 result = prime * result + (this.name == null ? 0 : this.name.hashCode());
00069 result = prime * result + (this.level == null ? 0 : this.level.hashCode());
00070 return result;
00071 }
00072 }
00073