![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: assistantPrinter.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef assistantPrinter_H_ 00010 #define assistantPrinter_H_ 00011 00015 00016 #include "rtiMsConfig.h" 00017 #include <vlutil/vlPrint.h> 00018 #include <vlutil/vlSmartPointers.h> 00019 #include <vlutil/vlString.h> 00020 #include <vlutil/vlMutex.h> 00021 #include <set> 00022 00023 class DtRtiAssistantClient; 00024 00033 class DT_DLL_ASSISTANT DtAssistantPrinter : public MAKRti::DtPrinter 00034 { 00035 public: 00036 00038 DtAssistantPrinter( DtBoost::shared_ptr<DtRtiAssistantClient> client ); 00039 00041 virtual ~DtAssistantPrinter(); 00042 00043 private: 00044 00046 DtAssistantPrinter( DtAssistantPrinter const&); 00047 00049 DtAssistantPrinter& operator=(DtAssistantPrinter const&); 00050 00051 public: 00052 00056 virtual void write(const std::string &st, int notifyLevel); 00057 00060 virtual void ignoreNotifyMsg( const MAKRti::DtString& text ); 00061 00062 protected: 00063 00065 DtBoost::shared_ptr<DtRtiAssistantClient> myClient; 00066 00068 mutable MAKRti::DtMutex myMutex; 00069 00071 std::multiset< MAKRti::DtString > myMsgsToIgnore; 00072 }; 00073 00074 #endif