MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrEditorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrEditorInterface_H_
11 #define lgrEditorInterface_H_
12 
13 #include "lgrSystemInterface.h"
14 #include "lgrExportType.h"
16 
17 #include <memory>
18 #include <map>
19 #include <vlutil/vlString.h>
20 
21 namespace MAKLogger
22 {
23 
24  class DtLogger;
25  class DtLgrPacketPrinter;
26  class DtLgrEditorCommandFactory;
27  class DtLgrEditorDriver;
28 
32  {
33  public:
34 
37  {
40  DataMoved
41  };
42 
44  {
47  InternalExport
48  };
49 
50  //Used to shorten code.
52 
53  //Used to shorten code.
55 
56  //Map used to store export types.
57  typedef std::map<DtString,DtLgrExportType> ExportTypeMap;
58 
60  static DtLgrEditorInterface* create(DtLogger&);
61 
64  static DtLgrEditorInterface* createNonThreadsafe(DtLogger& logger,
65  const DtLgrEditorDriver& driver);
66 
68  virtual ~DtLgrEditorInterface();
69 
71  virtual void clearSection(const DtAbsoluteTime& start,
72  const DtAbsoluteTime& stop) const;
73 
75  virtual void cutSection(const DtAbsoluteTime& start,
76  const DtAbsoluteTime& stop) const;
77 
79  virtual void exportFile(const DtString& exportType,
80  const DtString& filename, bool recheckpoint,
81  bool openAfterExport) const;
82 
84  virtual void exportSection(const DtString& exportType,
85  const DtString& filename, const DtAbsoluteTime& start,
86  const DtAbsoluteTime& stop, const DtRelativeTime& offset,
87  bool recheckpoint,bool openAfterExport) const;
88 
90  virtual void mergeInFile(const DtString& filename, const DtRelativeTime&
91  offset) const;
92 
94  virtual void appendFileToEnd( const DtString& filename) const;
95 
97  virtual void prefixFileToStart( const DtString& filename) const;
98 
100  virtual void trimStart() const;
101 
103  virtual void offsetTime(const DtRelativeTime& offset) const;
104 
106  virtual void convertFile() const;
107 
111  virtual void addExportType(const DtString& fileFormat,
112  const DtString& fileFilter, bool offsetData,bool generateData,
113  ExportType exportType, std::auto_ptr<DtLgrPacketPrinter> printer) const;
114 
116  virtual const ExportTypeMap& exportTypes() const;
117 
119  virtual const DtAbsoluteTime& lastOperationStart() const;
120 
122  virtual const DtAbsoluteTime& lastOperationEnd() const;
123 
125  virtual const DtRelativeTime& lastOperationOffset() const;
126 
128  virtual const DtString& lastOperationSource() const;
129 
131  virtual const DtString& completedExportType() const;
132 
134  virtual const DtString& completedExportDestination() const;
135 
137  virtual void setRecheckpointOnExport( bool recheckpoint ) const;
138 
140  virtual bool recheckpointOnExport() const;
141 
142  public:
143 
146 
149 
152 
155 
156  protected:
157 
159  void exportTypeAdded(DtResponse response);
160 
162  void dataAdded(DtResponse response);
163 
165  void dataDeleted(DtResponse response);
166 
168  void dataMoved(DtResponse response);
169 
171  void exportCompleted(DtResponse response);
172 
174  void recheckpointOnExportChanged( DtResponse response);
175 
177  DtLgrEditorInterface(DtLogger& logger,const DtLgrEditorDriver& driver);
178 
180  void connectResponse(DtLgrCommandId id,
181  void (DtLgrEditorInterface::* function)(DtResponse));
182 
183  private:
187  DtLgrEditorInterface& operator=(const DtLgrEditorInterface&);
188 
189  protected:
193 
201 
202  };
203 
204 }
205 
206 #endif
DtAbsoluteTime myLastOperationEnd
Definition: lgrEditorInterface.h:195
DtValueSignal< DtString > exportCompletedSignal
Signal that a export has been completed, value is export type.
Definition: lgrEditorInterface.h:148
Contains MAKLogger::DtLgrSystemInterface subclass of MAKLogger::DtCommandInterface.
The class which controls the logger editor functionality.
Definition: lgrEditorDriver.h:40
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks ...
Definition: absoluteTime.h:28
DtAbsoluteTime myLastOperationStart
Definition: lgrEditorInterface.h:194
ExportType
Definition: lgrEditorInterface.h:43
DtValueSignal< DtString > exportCanceledSignal
Signal that a export has been completed, value is export type.
Definition: lgrEditorInterface.h:151
DtBoost::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:174
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
DtRelativeTime myLastOperationOffset
Definition: lgrEditorInterface.h:196
bool myRecheckpointOnExport
Definition: lgrEditorInterface.h:200
The class which interfaces with the logger editor functionality.
Definition: lgrEditorInterface.h:31
FileDataOperations
Data operation types.
Definition: lgrEditorInterface.h:36
DtString myLastExportType
Definition: lgrEditorInterface.h:198
DtString myNewestExportType
Definition: lgrEditorInterface.h:191
Definition: lgrEditorInterface.h:45
Contains MAKLogger::ExportType class.
DtValueSignal< DtString > exportTypeAddedSignal
Signal that a export type has been added.
Definition: lgrEditorInterface.h:145
DtLgrEditorCommandFactory Factory
Definition: lgrEditorInterface.h:51
FileDataOperations myLastOperation
Definition: lgrEditorInterface.h:192
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
DtValueSignal< FileDataOperations > dataOperationSignal
Signal that a data operation has occurred.
Definition: lgrEditorInterface.h:154
The class responsible for interfacing with the low level logger system functions. ...
Definition: lgrSystemInterface.h:31
The factory which creates logger editor commands.
Definition: lgrEditorCommandFactory.h:28
ExportTypeMap myExportTypes
Definition: lgrEditorInterface.h:190
DtString myLastExportName
Definition: lgrEditorInterface.h:199
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
std::map< DtString, DtLgrExportType > ExportTypeMap
Definition: lgrEditorInterface.h:57
DtString myLastOperationSource
Definition: lgrEditorInterface.h:197
short DtLgrCommandId
Definition: lgrCommand.h:25
DtLgrEditorInterface ThisClass
Definition: lgrEditorInterface.h:54
Definition: lgrEditorInterface.h:39
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
Definition: lgrEditorInterface.h:38

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)