public class Header extends Object
| Constructor and Description |
|---|
Header(GuidPrefix prefix)
Constructor for Header.
|
Header(GuidPrefix prefix,
ProtocolVersion version,
VendorId vendorId)
Constructor with given values.
|
| Modifier and Type | Method and Description |
|---|---|
GuidPrefix |
getGuidPrefix()
Defines a default prefix to use for all GUIDs that appear within the
Submessages contained in the message.
|
VendorId |
getVendorId()
Indicates the vendor that provides the implementation of the RTPS
protocol.
|
ProtocolVersion |
getVersion()
Identifies the version of the RTPS protocol.
|
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writer this Header to given RTPSByteBuffer.
|
public Header(GuidPrefix prefix)
prefix - GuidPrefix of the headerpublic Header(GuidPrefix prefix, ProtocolVersion version, VendorId vendorId)
prefix - GuidPrefixversion - Version of the RTPS protocolvendorId - VendorIdpublic void writeTo(RTPSByteBuffer bb)
bb - RTPSByteBuffer to write topublic GuidPrefix getGuidPrefix()
public VendorId getVendorId()
public ProtocolVersion getVersion()
Copyright © 2016. All rights reserved.