public class Message extends Object
| Constructor and Description |
|---|
Message(GuidPrefix prefix)
Constructor.
|
Message(Header header)
Constructor.
|
Message(RTPSByteBuffer bb)
Constructs a Message from given RTPSByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubMessage(SubMessage sm)
Adds a new SubMessage to this Message.
|
Header |
getHeader()
Gets the Header of this Message.
|
List<SubMessage> |
getSubMessages()
Gets all the SubMessages of this Message.
|
String |
toString() |
boolean |
writeTo(RTPSByteBuffer buffer)
Writes this Message to given RTPSByteBuffer.
|
public Message(GuidPrefix prefix)
prefix - GuidPrefixpublic Message(Header header)
header - Headerpublic Message(RTPSByteBuffer bb) throws IllegalMessageException
bb - Reads Message from this RTPSByteBufferIllegalMessageException - If message could not be parsedpublic Header getHeader()
public List<SubMessage> getSubMessages()
public boolean writeTo(RTPSByteBuffer buffer)
buffer - RTPSByteBuffer to write topublic void addSubMessage(SubMessage sm)
sm - SubMessage to addCopyright © 2016. All rights reserved.