MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrSystemCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <lgrCmds/lgrCmds.h>
12 #include <lgrCmds/lgrCommand.h>
13 #include <lgrUtil/collectors.h>
14 #include <vlutil/vlTime.h>
15 #include <utility>
16 class DtString;
17 
18 namespace MAKLogger
19 {
20 
21  class DtCommandDefinition;
22  class DtLgrMessageOutputListener;
23 
27  {
28  private:
30 
31  public:
32 
35 
37 
38 
40  DT_FACTORY_COMMAND_EXT(1, Shutdown,
41  (),
42  (const DtCommand&))
44 
46  DT_FACTORY_COMMAND_EXT(3, CreateDriver,
47  (DtLgrCommandType driverType),
48  (const DtCommand& command,DtLgrCommandType& driverType))
49 
52  (const DtString& pluginName),
53  (const DtCommand& command,DtString& pluginName))
54 
56  DT_FACTORY_COMMAND_EXT(6, SetNotifyLevel,
57  (int vlLevel,int lgrLevel),
58  (const DtCommand& command,int& vlLevel,int& lgrLevel))
59 
61  DT_FACTORY_COMMAND_EXT(7, SetPipelineDriver,
62  (DtLgrDomainId domain),
63  (const DtCommand& command,DtLgrDomainId& domain))
64 
66  DT_FACTORY_COMMAND_EXT(8, IssueTextCommand,
67  (const DtString& textCommand),
68  (const DtCommand& command,DtString& textCommand))
69 
71  DT_FACTORY_COMMAND_EXT(9,Help,
72  (),
73  (const DtCommand&))
74 
76  DT_FACTORY_COMMAND_EXT(10, DeleteFile
77  ,(const DtString& filename),
78  (const DtCommand&,DtString& filename))
79 
81  DT_FACTORY_COMMAND_EXT(11, Info,
82  (),
83  (const DtCommand&))
84 
86  DT_FACTORY_COMMAND_EXT(12, InstallOutputListener,
87  (DtLgrMessageOutputListener* listener),
88  (const DtCommand&,DtLgrMessageOutputListener*& listener))
89 
91  DT_FACTORY_COMMAND_EXT(13, SetTempDir,
92  (const DtString& directory),
93  (const DtCommand&,DtString& directory))
94 
96  DT_FACTORY_COMMAND_EXT(14, SetBasicGuiFlag,
97  (bool basic),
98  (const DtCommand& command,bool& basic))
99 
101  DT_FACTORY_COMMAND_EXT(15, SetNasmpMode,
102  (const DtString& nasmpMode),
103  (const DtCommand& command,DtString& nasmpMode))
104 
106  DT_FACTORY_COMMAND_EXT(16, SetEntityTracking,
107  (bool enableEntityTracking),
108  (const DtCommand& command, bool& enableEntityTracking))
109 
111  DT_FACTORY_COMMAND_EXT(17, SetFastJumpsWithoutDiff,
112  (bool enableFastJumpsWithoutDiff),
113  (const DtCommand& command, bool& enableFastJumpsWithoutDiff))
114 
116  DT_FACTORY_COMMAND_EXT(18, SetPlaybackReadTimeLimit,
117  (double playbackReadTimeLimit),
118  (const DtCommand& command, double& playbackReadTimeLimit))
119 
121  DT_FACTORY_COMMAND_EXT(19, SetDefaultTapeDirectory,
122  (const DtString& defaultTapeDirectory),
123  (const DtCommand&,DtString& defaultTapeDirectory))
124 
126  DT_FACTORY_COMMAND_EXT(20, SetGuiConfigFilename,
127  (const DtString& defaultGuiConfigFilename),
128  (const DtCommand&, DtString& defaultGuiConfigFilename))
129 
131  DT_FACTORY_COMMAND_EXT(21, SetPerformanceThreshold,
132  (const double& performanceThreshold),
133  (const DtCommand&, double& performanceThreshold))
134 
136  static const DtLgrCommandId theLastCommandId = 100;
139 
141 
142 
144  DT_FACTORY_RESPONSE_EXT(-1, LoadPluginFailed,
145  (const DtString& filename,const DtString& reason),
146  (DtResponse,DtString& filename,DtString& reason))
147 
149  DT_FACTORY_RESPONSE_EXT(-2, PluginLoaded,
150  (const DtString& filename),
151  (DtResponse,DtString& filename))
152 
154  DT_FACTORY_RESPONSE_EXT(-3, Message,
155  (const DtString& message),
156  (DtResponse,DtString& message))
157 
159  DT_FACTORY_RESPONSE_EXT(-4, ConsoleMessage,
160  (const DtString& message),
161  (DtResponse,DtString& message))
162 
164  DT_FACTORY_RESPONSE_EXT(-6,Shutdown,
165  (),
166  (DtResponse))
167 
168  DT_FACTORY_RESPONSE_EXT(-7, StartLongOperation,
169  (const DtString& name, bool interruptible),
170  (DtResponse,DtString& name,bool& interruptible))
171 
172  DT_FACTORY_RESPONSE_EXT(-8, FinishLongOperation,
173  (bool canceled),
174  (DtResponse,bool& canceled))
175 
176  DT_FACTORY_RESPONSE_EXT(-9, UpdateLongOperation,
177  (const DtString& message,int percent),
178  (DtResponse,DtString& message,int& percent))
179 
180  DT_FACTORY_RESPONSE_EXT(-10, SetBasicGuiFlag,
181  (bool basic),
182  (DtResponse,bool& basic))
183 
184  // Result: 1 - success, 0 file not found, -1 failed, -2 rejected
185  DT_FACTORY_RESPONSE_EXT(-11,FileDelete,
186  (const DtString& fileName, int deleteResult),
187  (DtResponse,DtString& fileName,int& deleteResult))
188 
189  DT_FACTORY_RESPONSE_EXT(-12, SetGuiConfigFilename,
190  (DtString guiConfigFilename),
191  (DtResponse, DtString& guiConfigFilename))
192 
193  DT_FACTORY_RESPONSE_EXT(-13, PerformanceWarning,
194  (bool behind, DtTime amountBehind),
195  (DtResponse, bool& behind, DtTime& amountBehind))
196 
197  DT_FACTORY_RESPONSE_EXT(-14, SetPerformanceThreshold,
198  (double performanceThreshold),
199  (DtResponse, double& performanceThreshold))
200 
202 
205  static const DtLgrCommandId theLastResponseId = 100;
206 
208  static const char* commandToString(int commandId);
209 
211  static const char* responseToString(int responseId);
212 
213  };
214 
215 }
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
#define DT_FACTORY_COMMAND_EXT(commandId, commandName, createParams, decodeParams)
Utility Macros for declaring Command in Factory.
Definition: lgrCommand.h:184
#define DT_DLL_LGR_CMDS
Definition: lgrCmds.h:18
DT_LGR_PLUGIN_EXPORT_MACRO void LoadPlugin()
unsigned char DtLgrDomainId
Definition: lgrCommand.h:23
The factory for creating logger system commands.
Definition: lgrSystemCommandFactory.h:26
Contains MAKLogger::DtLgrCommandType and MAKLogger::DtCommand classes.
static const DtLgrCommandType theCommandType
Static type that all System commands will be created with.
Definition: lgrSystemCommandFactory.h:34
#define DT_FACTORY_RESPONSE_EXT(responseId, responseName, createParams, decodeParams)
Utility Macros for declaring Response in Factory.
Definition: lgrCommand.h:199
Base class for an output listener.
Definition: messageOutputListener.h:20
Contains lgrCmds library definitions.
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
short DtLgrCommandId
Definition: lgrCommand.h:25

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)