DtAssistantPopupHelper inherits from DtPopupHelper.
More...
Protected Member Functions |
| | DtAssistantPopupHelper (const MAKRti::DtString &text, const MAKRti::DtString &advancedText) |
| | Constructor.
|
| virtual void | sendPopupMessage (const MAKRti::DtString &message, const MAKRti::DtString &advancedText) |
| | Packages the data into a message and sends to the RTI Assistant to be displayed as a popup dialog.
|
Static Protected Attributes |
| static DtRtiAssistantClient * | theClient |
| | The Assistant client connection through which messages are sent.
|
| static DtAssistantPrinter * | thePrinter |
| | The printer that sends notifications to the assistant.
|
| static bool | theQueuePopups |
| | Indicates whether or not popup message queuing is enabled.
|
| static bool | thePopupsDisabled |
| | Are popups disabled?
|
static std::list< std::pair
< MAKRti::DtString,
MAKRti::DtString > > | thePopupQueue |
| | The queue of messages which need to be sent to the Assistant.
|
| static MAKRti::DtMutex | theMutex |
| | The mutex protecting thePopupQueue.
|
Detailed Description
DtAssistantPopupHelper inherits from DtPopupHelper.
It sets the DtPopupHelper factory method to use DtAssistantPopupHelper. After the factory method is set, calls to DtAssistantPopupHelper::popupAssistantMessage will result in an Assistant popup.
Constructor & Destructor Documentation
| DtAssistantPopupHelper::DtAssistantPopupHelper |
( |
const MAKRti::DtString & |
text, |
|
|
const MAKRti::DtString & |
advancedText |
|
) |
| |
|
protected |
| virtual DtAssistantPopupHelper::~DtAssistantPopupHelper |
( |
| ) |
|
|
virtual |
| DtAssistantPopupHelper::DtAssistantPopupHelper |
( |
| ) |
|
|
private |
Copy and assignment operators are disabled.
Member Function Documentation
| static void DtAssistantPopupHelper::popupAssistantMessage |
( |
const MAKRti::DtString & |
text, |
|
|
MAKRti::DtOutputStream & |
stream, |
|
|
const MAKRti::DtString & |
advancedText |
|
) |
| |
|
static |
Call theCreator function to create a popupMessage to the assistant.
Also outputs the text to the given output stream.
Reimplemented from DtPopupHelper.
| static void DtAssistantPopupHelper::popupAssistantMessage |
( |
const MAKRti::DtString & |
text, |
|
|
MAKRti::DtOutputStream & |
stream = MAKRti::DtWarn |
|
) |
| |
|
static |
| static bool DtAssistantPopupHelper::popupsDisabled |
( |
| ) |
|
|
static |
returns whether popups are disabled
| static void DtAssistantPopupHelper::queuePopups |
( |
| ) |
|
|
static |
Tells the popup helper to queue up popup messages, but not to send them yet.
Messages will be sent when DtAssistantPopupHelper::sendAllPopups is called. This is useful if you want to delay the sending of popup messages to the assistant until some point in the future without losing the messages.
| static void DtAssistantPopupHelper::removeAssistantPrinter |
( |
| ) |
|
|
static |
Remove reference to assistant printer.
| static void DtAssistantPopupHelper::removeClientReference |
( |
| ) |
|
|
static |
| static void DtAssistantPopupHelper::sendAllPopups |
( |
MAKRti::DtTime |
sleepTime = 0.0 | ) |
|
|
static |
Tells the popup helper to send all queued popup messages.
This also disables popup message queuing. If sleep time is greater than 0, this call will sleep before returning
| virtual void DtAssistantPopupHelper::sendPopupMessage |
( |
const MAKRti::DtString & |
message, |
|
|
const MAKRti::DtString & |
advancedText |
|
) |
| |
|
protectedvirtual |
Packages the data into a message and sends to the RTI Assistant to be displayed as a popup dialog.
Store a pointer to the printer used to send notifications to the assistant.
| static void DtAssistantPopupHelper::setPopupsDisabled |
( |
bool |
popupsDisabled | ) |
|
|
static |
Ignore calls to popupAssistantMsg if popupsDisabled is set.
Popups are enabled by default.
Member Data Documentation
The Assistant client connection through which messages are sent.
| MAKRti::DtMutex DtAssistantPopupHelper::theMutex |
|
staticprotected |
The mutex protecting thePopupQueue.
| std::list<std::pair<MAKRti::DtString, MAKRti::DtString> > DtAssistantPopupHelper::thePopupQueue |
|
staticprotected |
The queue of messages which need to be sent to the Assistant.
Only used when queuing is turned on.
| bool DtAssistantPopupHelper::thePopupsDisabled |
|
staticprotected |
The printer that sends notifications to the assistant.
| bool DtAssistantPopupHelper::theQueuePopups |
|
staticprotected |
Indicates whether or not popup message queuing is enabled.
The documentation for this class was generated from the following file: