12 #ifndef msgRetractHandleImplementation_H_
13 #define msgRetractHandleImplementation_H_
15 #if !defined(DtIFSPEC13)
51 VariableLengthData
encode()
const;
53 unsigned long encode(
void* buffer,
unsigned long bufferSize)
const;
57 void decode(VariableLengthData
const & encodedHandle);
60 void decode(
void* buffer,
unsigned long bufferSize);
89 unsigned long serialValue)
147 return VariableLengthData(&netHandle,
sizeof(netHandle));
153 if (bufferSize <
sizeof(netHandle))
157 memcpy(buffer, &netHandle,
sizeof(netHandle));
158 return sizeof(netHandle);
167 std::wstringstream ss;
208 void* buffer,
unsigned long bufferSize)
217 #endif // !DtIFSPEC13
void decode(VariableLengthData const &encodedHandle)
Decode VariableLengthData into self.
Definition: msgRetractHandleImpl.h:200
void setValue(DtMessageRetractionHandle retractHandle)
Set/Get implementation.
Definition: msgRetractHandleImpl.h:172
bool operator==(MessageRetractionHandleImplementation const &rhs) const
Relational operators.
Definition: msgRetractHandleImpl.h:123
void setSerialNumber(unsigned long serialValue)
Set/Get serial number.
Definition: msgRetractHandleImpl.h:192
VariableLengthData encode() const
Generate an encoded value that can be used to send handles to other federates in updates or interacti...
Definition: msgRetractHandleImpl.h:142
DtFederateHandle sendingFederate
Definition: internalTypes.h:87
DtMessageRetractionHandle myRetractHandle
Definition: msgRetractHandleImpl.h:78
unsigned long serialNumber() const
Definition: msgRetractHandleImpl.h:196
std::wstring toString() const
Return a string representation of handle.
Definition: msgRetractHandleImpl.h:165
void setFederateHandle(unsigned long fedHandleValue)
Set/Get federate handle.
Definition: msgRetractHandleImpl.h:183
unsigned long federateHandle() const
Definition: msgRetractHandleImpl.h:187
bool operator<(MessageRetractionHandleImplementation const &rhs) const
Definition: msgRetractHandleImpl.h:135
MessageRetractionHandleImplementation()
Constructors.
Definition: msgRetractHandleImpl.h:81
bool isValid() const
Definition: msgRetractHandleImpl.h:117
MessageRetractionHandleImplementation & operator=(MessageRetractionHandleImplementation const &rhs)
Assignment.
Definition: msgRetractHandleImpl.h:107
bool operator!=(MessageRetractionHandleImplementation const &rhs) const
Definition: msgRetractHandleImpl.h:129
Definition: msgRetractHandleImpl.h:30
DtHandle serialNumber
Definition: internalTypes.h:86
his file contains a class to hold an arbitrary array of bytes for encoded values, attribute values...
MAKRti::DtNetU32 sendingFederate
Definition: internalTypes.h:82
Definition: internalTypes.h:84
unsigned long encodedLength() const
Definition: msgRetractHandleImpl.h:160
MAKRti::DtNetU32 serialNumber
Definition: internalTypes.h:81
The declaration of internal types.
Definition: internalTypes.h:79
DtMessageRetractionHandle const & value() const
Definition: msgRetractHandleImpl.h:178