![]() |
VR-Forces Developer's Guide
|
Instances of DtChatInter are used to store state data for resourceRequest interactions.
Instances of DtChatInter are used to send Chat interaction messages.

Public Member Functions | |
| DtChatInter (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual | ~DtChatInter () override |
| DtChatInter (const DtChatInter &orig) | |
| DtChatInter & | operator= (const DtChatInter &orig) |
| virtual void | setSender (const DtEntityIdentifier &val) |
| virtual DtEntityIdentifier | sender () const |
| virtual void | setSenderUsername (const std::wstring &val) |
| virtual std::wstring | senderUsername () const |
| virtual void | setChannel (const std::wstring &val) |
| virtual std::wstring | channel () const |
| virtual void | setForceIdentifier (DtForceType val) |
| virtual DtForceType | forceIdentifier () const |
| virtual void | setMessageText (const std::wstring &val) |
| virtual std::wstring | messageText () const |
| virtual const char * | name () const |
| virtual void | printData () const override |
| virtual void | printDataToStream (std::ostream &stream) const override |
| DtChatInter () | |
| virtual | ~DtChatInter () override |
| DtChatInter (const DtChatInter &orig) | |
| DtChatInter & | operator= (const DtChatInter &orig) |
| virtual void | printData () const override |
| virtual void | printDataToStream (std::ostream &stream) const override |
| virtual void | setSender (const DtEntityIdentifier &val) |
| virtual DtEntityIdentifier | sender () const |
| virtual void | setSenderUsername (const std::wstring &val) |
| virtual std::wstring | senderUsername () const |
| virtual void | setChannel (const std::wstring &val) |
| virtual std::wstring | channel () const |
| virtual void | setForceIdentifier (DtForceType val) |
| virtual DtForceType | forceIdentifier () const |
| virtual void | setMessageText (const std::wstring &val) |
| virtual std::wstring | messageText () const |
| virtual const char * | name () const override |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0) |
| static void | addCallback (DtExerciseConn *conn, DtChatInterInterCb cb, void *usr) |
| static void | removeCallback (DtExerciseConn *conn, DtChatInterInterCb cb, void *usr) |
| static DtInteraction * | create () |
| static void | addCallback (DtExerciseConn *conn, DtChatInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| static void | removeCallback (DtExerciseConn *conn, DtChatInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Protected Member Functions | |
| DtChatInter (const DtNetPacket *pkt, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0) | |
| virtual void | readVariableSizedData () |
| virtual unsigned int | fixedBytesSize () const |
| virtual char * | firstVarDatumStart () const |
| unsigned int | minimumSize () const |
| virtual unsigned | netSizeOfWString (const std::wstring &val) const |
| virtual void | writeWString (char *buffer, const std::wstring &val) |
| virtual void | readWString (char *buffer, std::wstring &val) const |
| virtual DtPduKind | internalGetPduKind () const override |
| virtual const char * | interactionClassToUse (DtExerciseConn *exConn) const override |
| virtual DtInteractionDecoder * | createDecoder (DtExerciseConn *exConn) const override |
| virtual DtInteractionEncoder * | createEncoder (DtExerciseConn *exConn) const override |
Static Protected Member Functions | |
| static DtPduKind | internalGetPduKindImpl () |
Protected Attributes | |
| std::wstring | mySenderUsername |
| std::wstring | myChannel |
| std::wstring | myMessageText |
| DtEntityIdentifier | mySender |
| DtForceType | myForceIdentifier |
| DtChatInter::DtChatInter | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
|
overridevirtual |
Destructor.
| DtChatInter::DtChatInter | ( | const DtChatInter & | orig | ) |
Copy constructor.
|
protected |
Constructor from an incoming packet. Use the create() method.
| DtChatInter::DtChatInter | ( | ) |
Constructor.
|
overridevirtual |
Destructor.
| DtChatInter::DtChatInter | ( | const DtChatInter & | orig | ) |
Copy constructor.
| DtChatInter& DtChatInter::operator= | ( | const DtChatInter & | orig | ) |
Assignment operator.
|
virtual |
Sender mutator.
|
virtual |
Sender accessor.
|
virtual |
SenderUsername mutator.
|
virtual |
SenderUsername accessor.
|
virtual |
Channel mutator.
|
virtual |
Channel accessor.
|
virtual |
ForceIdentifier mutator.
|
virtual |
ForceIdentifier accessor.
|
virtual |
MessageText mutator.
|
virtual |
MessageText accessor.
|
inlinevirtual |
Name of the interaction.
|
overridevirtual |
Print the interaction's data.
|
overridevirtual |
Print the interaction's data to the specified stream.
|
static |
Create a DtChatInter. Caller is responsible for deletion.
|
static |
Add (register)/Remove (deregister) function to be called when interaction occurs.
|
static |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlinestaticprotected |
References DtChatPduKind.
|
inlineoverrideprotectedvirtual |
| DtChatInter& DtChatInter::operator= | ( | const DtChatInter & | orig | ) |
Assignment operator.
|
overridevirtual |
Print the interaction's data.
|
overridevirtual |
Print the interaction's data to the specified stream.
|
virtual |
Sender mutator.
|
virtual |
Sender accessor.
|
virtual |
SenderUsername mutator.
|
virtual |
SenderUsername accessor.
|
virtual |
Channel mutator.
|
virtual |
Channel accessor.
|
virtual |
ForceIdentifier mutator.
|
virtual |
ForceIdentifier accessor.
|
virtual |
MessageText mutator.
|
virtual |
MessageText accessor.
|
inlineoverridevirtual |
Name of the interaction. (Not necessarily the ClassName from the FOM.)
|
static |
Create a DtChatInter. Caller is responsible for deletion.
|
static |
Add (register)/Remove (deregister) function to be called when interaction occurs.
|
static |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |