MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
DtAssistantPrinter Class Reference

Sends data from an output stream to the RTI Assistant. More...

+ Inheritance diagram for DtAssistantPrinter:
+ Collaboration diagram for DtAssistantPrinter:

Public Member Functions

 DtAssistantPrinter (std::shared_ptr< DtRtiAssistantClient > client)
 Constructor. More...
 
virtual ~DtAssistantPrinter ()
 Destructor. More...
 
virtual void write (const std::string &st, int notifyLevel, bool sync)
 Packages the data into a message and sends to the RTI Assistant to be displayed as a notification. More...
 
virtual void ignoreNotifyMsg (const MAKRti::DtString &text)
 The next notify message which matches the given message will not be sent to the assistant. More...
 

Protected Attributes

std::shared_ptr
< DtRtiAssistantClient
myClient
 The Assistant client connection through which messages are sent. More...
 
MAKRti::DtMutex myMutex
 Used for locking the client connection. More...
 
std::multiset< MAKRti::DtString > myMsgsToIgnore
 Messages to be ignored the next time they are sent. More...
 

Private Member Functions

 DtAssistantPrinter (DtAssistantPrinter const &)
 Copy constructor not implemented. More...
 
DtAssistantPrinteroperator= (DtAssistantPrinter const &)
 Assignment operator not implemented. More...
 

Detailed Description

Sends data from an output stream to the RTI Assistant.

DtAssistantPrinter may be attached to DtOutputStream objects. It will and will package output into messages and send them to the RTI Assistant. This class is thread safe, multiple threads may write data to it at any time, all functions are locked with mutex.

Constructor & Destructor Documentation

DtAssistantPrinter::DtAssistantPrinter ( std::shared_ptr< DtRtiAssistantClient client)

Constructor.

virtual DtAssistantPrinter::~DtAssistantPrinter ( )
virtual

Destructor.

DtAssistantPrinter::DtAssistantPrinter ( DtAssistantPrinter const &  )
private

Copy constructor not implemented.

Member Function Documentation

virtual void DtAssistantPrinter::ignoreNotifyMsg ( const MAKRti::DtString &  text)
virtual

The next notify message which matches the given message will not be sent to the assistant.

DtAssistantPrinter& DtAssistantPrinter::operator= ( DtAssistantPrinter const &  )
private

Assignment operator not implemented.

virtual void DtAssistantPrinter::write ( const std::string &  st,
int  notifyLevel,
bool  sync 
)
virtual

Packages the data into a message and sends to the RTI Assistant to be displayed as a notification.

Multiple threads may call this at the same time.

Member Data Documentation

std::shared_ptr<DtRtiAssistantClient> DtAssistantPrinter::myClient
protected

The Assistant client connection through which messages are sent.

std::multiset< MAKRti::DtString > DtAssistantPrinter::myMsgsToIgnore
protected

Messages to be ignored the next time they are sent.

MAKRti::DtMutex DtAssistantPrinter::myMutex
mutableprotected

Used for locking the client connection.


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

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)