MAK Data Logger API Documentation for DIS
 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-2010 VT MAK
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

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)