MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
logFileMgr.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rtiMsConfig.h"
13 #include "assistantMgr.h"
14 #include "rtiAssistantClient.h"
15 #include <QtGui/QIcon>
16 #include <QSystemTrayIcon>
17 #include <vlutil/vlSmartPointers.h>
18 #include <vlutil/vlPrint.h>
19 #include <map>
20 
22 class DtRtiAssistantPeer;
23 class DtConsoleDialog;
29 
34 { Q_OBJECT;
35 public:
36 
38  DtAssistantLogFileMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
39  DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
40  DtAssistantSignalRouter& signalRouter,
41  DtBoost::shared_ptr<DtAssistantComponentMgr> compMgr );
42 
44  virtual ~DtAssistantLogFileMgr();
45 
46 private:
47 
50 
53 
54 protected:
55 
57  void enableComponentLog( int id, const MAKRti::DtString& compName,
58  const MAKRti::DtString& logName, MAKRti::DtNotifyLevelType level );
59 
61  void disableComponentLog( int id );
62 
63 public slots:
64 
66  void removeComponent( const DtAssistantComponentInfo* compInfo );
67 
69  void renameComponent( const DtAssistantComponentInfo* compInfo );
70 
72  void processComponentUpdate( const DtAssistantComponentInfo* compInfo );
73 
75  void sendComponentUpdateNotifyLevel( int id, MAKRti::DtNotifyLevelType level );
76 
79  void setLogUpdateInterval( unsigned int interval );
80 
82  void showComponentConsole( int id );
83 
84 protected:
85 
86  typedef std::map< int, DtConsoleDialog*> DtIdToFileConsoleMap;
87 
89  DtBoost::shared_ptr<DtAssistantComponentMgr> myCompMgr;
90 
93 
96  std::set< int > myViewLogCompIds;
97 
99  unsigned int myLogUpdateInterval;
100 
103 
104 };

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)