MAK RTIspy API Documentation for HLA 1.3
 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( std::shared_ptr<DtRtiAssistantServer> server,
39  std::shared_ptr<DtRtiAssistantPeer> peer,
40  DtAssistantSignalRouter& signalRouter,
41  std::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  std::shared_ptr<DtAssistantComponentMgr> myCompMgr;
90 
93 
96  std::set< int > myViewLogCompIds;
97 
99  unsigned int myLogUpdateInterval;
100 
103 
104 };
Dialog to hold a DtConsoleWidget.
Definition: consoleWidget.h:176
At startup all of the assistant manager classes will register their signals and slots with the signal...
Definition: assistantSignalRouter.h:29
std::set< int > myViewLogCompIds
The set of component IDs whose logs should immediately be opened once log viewing is enabled...
Definition: logFileMgr.h:96
DtIdToFileConsoleMap myComponentConsoles
Map from component IDs to console widgets.
Definition: logFileMgr.h:92
unsigned int myLogUpdateInterval
Interval at which log consoles will be updated.
Definition: logFileMgr.h:99
std::shared_ptr< DtAssistantComponentMgr > myCompMgr
The manager that keeps track of all local RTI components.
Definition: logFileMgr.h:89
Provides the GUI for a console which displays the contents of a log file.
Definition: fileConsoleWidget.h:27
Responsible for maintaining the console dialogs to display log files for local RTI components...
Definition: logFileMgr.h:33
Stores information on any RTI components.
Definition: compInfo.h:25
Base class for all classes which perform management activities for the Assistant. ...
Definition: assistantMgr.h:31
This file contains the declaration of DtAssistantMgr.
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Contains the DtRtiAssistantClient class declaration.
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
DtAssistantMgr & operator=(DtAssistantMgr const &)
Assignment not implemented – Assignment Not Allowed!
DtAssistantEnableLoggingDialog * myEnableLoggingDialog
Dialog to verify user wants to enable logging when disabled.
Definition: logFileMgr.h:102
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
std::map< int, DtConsoleDialog * > DtIdToFileConsoleMap
Definition: logFileMgr.h:86
Dialog to prompt user if they would like to enable logging when an attempt is made to view a log for ...
Definition: enableLoggingDialog.h:20
Processes information on each local RTI component that is connected to this Assistant.
Definition: componentMgr.h:38

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)