MAK RTIspy API Documentation for HLA Evolved
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtAssistantLicQueryMsg Class Reference

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:

List of all members.

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 DtAssistantMsgclone (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.

Static Public Member Functions

static DtAssistantMsgcreate (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creators.
static DtAssistantMsgcreate (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)

Protected Member Functions

virtual DtNetAssistantLicQueryMsgnetAssistantLicQueryMsg ()
 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 ()

Detailed Description

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.


Constructor & Destructor Documentation

DtAssistantLicQueryMsg::DtAssistantLicQueryMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructors.

References DtAssistantMsg::initAssistantMsg(), internalMsgKind(), and minSize().

Referenced by clone(), and create().

DtAssistantLicQueryMsg::DtAssistantLicQueryMsg ( const DtNetAssistantLicQueryMsg netRep,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtAssistantLicQueryMsg::DtAssistantLicQueryMsg ( const MAKRti::DtString &  serverName,
int  port,
bool  accepted,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Destructor.


Member Function Documentation

void DtAssistantLicQueryMsg::addCallback ( DtRtiAssistantServer conn,
DtAssistantLicQueryCb  cb,
void *  usr 
) [static]
void DtAssistantLicQueryMsg::addCallback ( DtAssistantMsgQueue queue,
DtAssistantLicQueryCb  cb,
void *  usr 
) [static]
DtAssistantMsg * DtAssistantLicQueryMsg::clone ( bool  copy = true) const [virtual]

Return a copy/empty object of the same type as this.

Implements DtAssistantMsg.

References DtAssistantLicQueryMsg(), and netAssistantLicQueryMsg().

DtAssistantMsg * DtAssistantLicQueryMsg::create ( const DtNetAssistantMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creators.

References DtAssistantLicQueryMsg().

DtAssistantMsg * DtAssistantLicQueryMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER) [static]

Returns the kind of a DtAssistantLicQueryMsg Msg.

Implements DtAssistantMsg.

References DtAssistantLicQueryMsgKind.

Referenced by DtAssistantLicQueryMsg().

Get/Set whether the license query resulted in user accepted license server data.

References DtNetAssistantLicQueryMsg::accepted, and netAssistantLicQueryMsg().

Referenced by printData(), and DtRtiAssistantClient::sendLicQueryMsg().

DtString DtAssistantLicQueryMsg::licenseServer ( ) const [virtual]
DtString DtAssistantLicQueryMsg::licenseServerName ( ) const [virtual]
const char * DtAssistantLicQueryMsg::licenseServerNamePtr ( ) const [protected, virtual]

Return pointer to text location in message.

References netAssistantLicQueryMsg().

Referenced by licenseServerName(), and setLicenseServerName().

char * DtAssistantLicQueryMsg::licenseServerNamePtr ( ) [protected, virtual]
unsigned long DtAssistantLicQueryMsg::licenseServerNameSize ( ) const [protected, virtual]
int DtAssistantLicQueryMsg::minSize ( ) const [protected, virtual]

Returns minimum size of a message, including header.

Referenced by DtAssistantLicQueryMsg().

int DtAssistantLicQueryMsg::port ( ) const [virtual]
void DtAssistantLicQueryMsg::printData ( ) const [virtual]

Print the data section.

Reimplemented from DtAssistantMsg.

References isAccepted(), isUnlicensed(), licenseServerName(), and port().

void DtAssistantLicQueryMsg::removeCallback ( DtRtiAssistantServer conn,
DtAssistantLicQueryCb  cb,
void *  usr 
) [static]
void DtAssistantLicQueryMsg::removeCallback ( DtAssistantMsgQueue queue,
DtAssistantLicQueryCb  cb,
void *  usr 
) [static]
void DtAssistantLicQueryMsg::setAccepted ( bool  val) [virtual]
void DtAssistantLicQueryMsg::setLicenseServer ( const MAKRti::DtString &  licServer) [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().

void DtAssistantLicQueryMsg::setLicenseServerName ( const MAKRti::DtString &  name) [virtual]
void DtAssistantLicQueryMsg::setLicenseServerNameSize ( unsigned long  size) [protected, virtual]
int DtAssistantLicQueryMsg::setMinSize ( const MAKRti::DtString &  name) [protected, virtual]

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().

void DtAssistantLicQueryMsg::setPort ( int  licenseServerPort) [virtual]

The documentation for this class was generated from the following files:

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)