![]() |
MAK RTIspy API Documentation for HLA Evolved
|
The DtAssistantLicQueryMsg defines a wrapper for the messages sent to and from the Assistant to query for license information and respond with the license information. More...
Inheritance diagram for DtAssistantLicQueryMsg:
Collaboration diagram for DtAssistantLicQueryMsg:Public Member Functions | |
| DtAssistantLicQueryMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtAssistantLicQueryMsg (const DtNetAssistantLicQueryMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtAssistantLicQueryMsg (const MAKRti::DtString &serverName, int port, bool accepted, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual | ~DtAssistantLicQueryMsg () |
| Destructor. | |
| virtual DtAssistantMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual int | port () const |
| Get/Set the license server port. | |
| virtual void | setPort (int licenseServerPort) |
| virtual void | setLicenseServerName (const MAKRti::DtString &name) |
| Set/Get server name. | |
| virtual MAKRti::DtString | licenseServerName () const |
| virtual void | setLicenseServer (const MAKRti::DtString &licServer) |
| Get/Set the entire license server path, the entire string containing the server name and port which is set in the environment variable. | |
| virtual MAKRti::DtString | licenseServer () const |
| virtual bool | isUnlicensed () const |
| Get/Set whether unlicensed mode was selected. | |
| virtual void | setUnlicensed (bool val) |
| virtual bool | isAccepted () const |
| Get/Set whether the license query resulted in user accepted license server data. | |
| virtual void | setAccepted (bool val) |
| virtual void | printData () const |
| Print the data section. | |
Public Member Functions inherited from DtAssistantMsg | |
| virtual | ~DtAssistantMsg () |
| Destructor. | |
| virtual DtNetAssistantMsgHeader * | netHeader () const |
| Get header of network representation. | |
| virtual int | version () const |
| Return the message version. | |
| virtual bool | isValidVersion () const |
| Returns bool: message version is valid? | |
| virtual DtAssistantMsgKind | msgKind () const |
| Get the message kind. | |
| virtual void | print () const |
| Printing functions. | |
| virtual void | printHeader () const |
| virtual bool | isOk () const |
| Message is good? | |
| bool | isAssistantToAssistantMessage () const |
| Returns whether or not this message contains source/destination information included in messages sent between assistants. | |
| virtual MAKRti::DtInetAddr | sourceAddr () const |
| Get/Set the IP address of the source of this message. | |
| virtual void | setSourceAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | sourceId () const |
| Get/Set the ID of the source of this message. | |
| virtual void | setSourceId (int id) |
| virtual MAKRti::DtString | sourceHost () const |
| Get/Set the host name of the source of this message. | |
| virtual void | setSourceHost (const MAKRti::DtString &addr) |
| virtual MAKRti::DtInetAddr | destAddr () const |
| Get/Set the IP address of the destination of this message. | |
| virtual void | setDestAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | destId () const |
| Get/Set the ID of the destination of this message. | |
| virtual void | setDestId (int id) |
| virtual int | compId () const |
| Get/Set the related component's connection ID. | |
| virtual void | setCompId (int compId) |
Static Public Member Functions | |
| static DtAssistantMsg * | create (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creators. | |
| static DtAssistantMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static void | addCallback (DtRtiAssistantServer *conn, DtAssistantLicQueryCb cb, void *usr) |
| Callback management. | |
| static void | removeCallback (DtRtiAssistantServer *conn, DtAssistantLicQueryCb cb, void *usr) |
| static void | addCallback (DtAssistantMsgQueue *queue, DtAssistantLicQueryCb cb, void *usr) |
| static void | removeCallback (DtAssistantMsgQueue *queue, DtAssistantLicQueryCb cb, void *usr) |
Static Public Member Functions inherited from DtAssistantMsg | |
| static const char * | kindToString (DtAssistantMsgKind kind) |
| Returns the name of the message, by kind enumeration. | |
Protected Member Functions | |
| virtual DtNetAssistantLicQueryMsg * | netAssistantLicQueryMsg () |
| The network representation. | |
| virtual const DtNetAssistantLicQueryMsg * | netAssistantLicQueryMsg () const |
| virtual DtAssistantMsgKind | internalMsgKind () |
| Returns the kind of a DtAssistantLicQueryMsg Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
| virtual int | setMinSize (const MAKRti::DtString &name) |
| Sets the field sizes for the variant components and returns the minimum size needed for the message, including header. | |
| virtual void | setLicenseServerNameSize (unsigned long size) |
| Set/Get server name size. | |
| virtual unsigned long | licenseServerNameSize () const |
| virtual const char * | licenseServerNamePtr () const |
| Return pointer to text location in message. | |
| virtual char * | licenseServerNamePtr () |
Protected Member Functions inherited from DtAssistantMsg | |
| DtAssistantMsg () | |
| Constructor. | |
| virtual void | sizeChanged (int size) |
| Called whenever size is changed using changeSize, or insert/deleteBytes. | |
| void | initAssistantMsg (int size, DtAssistantMsgKind msgKindVal, DtBufferPtr buffer) |
| Called by ctor, so not virtual. | |
| void | initAssistantMsg (const void *initial, int size, DtBufferPtr buffer) |
| void | initAssistantMsg (const DtNetAssistantMsgHeader *header, DtBufferPtr buffer) |
| virtual void | adjustBytes (int offset, int numBytes) |
| Adjust numBytes bytes at the indicated offset in the net rep. | |
| virtual void | adjustBytes (void *address, int numBytes) |
| Adjust the numBytes starting at the indicated address. | |
| virtual void | resizeForSrcDestInfo () |
| Allocates memory at the end of the message for source/destination information needed when sending messages between assistants. | |
| virtual const DtNetAssistantSrcDestInfo * | srcDestInfoPtr () const |
| Return pointer to source/destination information in the message. | |
| virtual DtNetAssistantSrcDestInfo * | srcDestInfoPtr () |
| virtual void | setSourceHostSize (unsigned long size) |
| Set/Get source host name text size. | |
| virtual unsigned long | sourceHostSize () const |
| virtual const char * | sourceHostPtr () const |
| Return pointer to source host name in message. | |
| virtual char * | sourceHostPtr () |
The DtAssistantLicQueryMsg defines a wrapper for the messages sent to and from the Assistant to query for license information and respond with the license information.
| DtAssistantLicQueryMsg::DtAssistantLicQueryMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
References DtAssistantMsg::initAssistantMsg(), internalMsgKind(), and minSize().
| DtAssistantLicQueryMsg::DtAssistantLicQueryMsg | ( | const DtNetAssistantLicQueryMsg * | netRep, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
References DtNetAssistantLicQueryMsg::header, and DtAssistantMsg::initAssistantMsg().
| DtAssistantLicQueryMsg::DtAssistantLicQueryMsg | ( | const MAKRti::DtString & | serverName, |
| int | port, | ||
| bool | accepted, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
|
virtual |
Destructor.
|
static |
Callback management.
References DtRtiAssistantServer::addMsgCallback(), and DtAssistantLicQueryMsgKind.
Referenced by DtAssistantLicenseQueryMgr::DtAssistantLicenseQueryMgr().
|
static |
References DtAssistantMsgQueue::addMsgCallback(), and DtAssistantLicQueryMsgKind.
|
virtual |
Return a copy/empty object of the same type as this.
Implements DtAssistantMsg.
References DtAssistantLicQueryMsg(), and netAssistantLicQueryMsg().
|
static |
Creators.
References DtAssistantLicQueryMsg().
|
static |
References DtAssistantLicQueryMsg().
|
protectedvirtual |
Returns the kind of a DtAssistantLicQueryMsg Msg.
Implements DtAssistantMsg.
References DtAssistantLicQueryMsgKind.
Referenced by DtAssistantLicQueryMsg().
|
virtual |
Get/Set whether the license query resulted in user accepted license server data.
References DtNetAssistantLicQueryMsg::accepted, and netAssistantLicQueryMsg().
Referenced by printData(), and DtRtiAssistantClient::sendLicQueryMsg().
|
virtual |
Get/Set whether unlicensed mode was selected.
References netAssistantLicQueryMsg(), and DtNetAssistantLicQueryMsg::unlicensed.
Referenced by printData(), DtAssistantLicenseQueryMgr::processLicQueryMsg(), and DtRtiAssistantClient::sendLicQueryMsg().
|
virtual |
References licenseServerName(), and port().
Referenced by DtRtiAssistantClient::sendLicQueryMsg().
|
virtual |
References licenseServerNamePtr(), and licenseServerNameSize().
Referenced by licenseServer(), printData(), and DtAssistantLicenseQueryMgr::processLicQueryMsg().
|
protectedvirtual |
Return pointer to text location in message.
References netAssistantLicQueryMsg().
Referenced by licenseServerName(), and setLicenseServerName().
|
protectedvirtual |
References netAssistantLicQueryMsg().
|
protectedvirtual |
References DtNetAssistantLicQueryMsg::licenseServerNameSize, and netAssistantLicQueryMsg().
Referenced by licenseServerName(), setLicenseServerName(), and setMinSize().
|
protectedvirtual |
Returns minimum size of a message, including header.
Referenced by DtAssistantLicQueryMsg().
|
protectedvirtual |
The network representation.
Referenced by clone(), isAccepted(), isUnlicensed(), licenseServerNamePtr(), licenseServerNameSize(), port(), setAccepted(), setLicenseServerNameSize(), setPort(), and setUnlicensed().
|
protectedvirtual |
|
virtual |
Get/Set the license server port.
References netAssistantLicQueryMsg(), and DtNetAssistantLicQueryMsg::port.
Referenced by licenseServer(), printData(), DtAssistantLicenseQueryMgr::processLicQueryMsg(), setLicenseServer(), and setPort().
|
virtual |
Print the data section.
Reimplemented from DtAssistantMsg.
References isAccepted(), isUnlicensed(), licenseServerName(), and port().
|
static |
References DtAssistantLicQueryMsgKind, and DtRtiAssistantServer::removeMsgCallback().
Referenced by DtAssistantLicenseQueryMgr::~DtAssistantLicenseQueryMgr().
|
static |
References DtAssistantLicQueryMsgKind, and DtAssistantMsgQueue::removeMsgCallback().
|
virtual |
References DtNetAssistantLicQueryMsg::accepted, and netAssistantLicQueryMsg().
Referenced by DtAssistantLicQueryMsg(), and DtRtiAssistantServer::sendLicRespMsg().
|
virtual |
Get/Set the entire license server path, the entire string containing the server name and port which is set in the environment variable.
References port(), setLicenseServerName(), and setPort().
|
virtual |
Set/Get server name.
References rti1516e::insertBytes(), licenseServerNamePtr(), licenseServerNameSize(), and setLicenseServerNameSize().
Referenced by DtAssistantLicQueryMsg(), DtRtiAssistantServer::sendLicRespMsg(), and setLicenseServer().
|
protectedvirtual |
Set/Get server name size.
References DtNetAssistantLicQueryMsg::licenseServerNameSize, and netAssistantLicQueryMsg().
Referenced by setLicenseServerName(), and setMinSize().
|
protectedvirtual |
Sets the field sizes for the variant components and returns the minimum size needed for the message, including header.
DOES NOT allocate memory for the components.
References licenseServerNameSize(), and setLicenseServerNameSize().
Referenced by DtAssistantLicQueryMsg().
|
virtual |
References netAssistantLicQueryMsg(), DtNetAssistantLicQueryMsg::port, and port().
Referenced by DtAssistantLicQueryMsg(), DtRtiAssistantServer::sendLicRespMsg(), and setLicenseServer().
|
virtual |
References netAssistantLicQueryMsg(), and DtNetAssistantLicQueryMsg::unlicensed.
Referenced by DtRtiAssistantClient::sendLicQueryMsg(), and DtRtiAssistantServer::sendLicRespMsg().