MAK Data Logger API Documentation for HLA
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"
15 #include "virtualConstructor.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  const ExportTypeMap& exportTypes() const;
117 
120 
123 
126 
129 
131  const DtAbsoluteTime& lastOperationStart() const;
132 
134  const DtAbsoluteTime& lastOperationEnd() const;
135 
137  const DtRelativeTime& lastOperationOffset() const;
138 
140  const DtString& lastOperationSource() const;
141 
143  const DtString& completedExportType() const;
144 
146  const DtString& completedExportDestination() const;
147 
148  protected:
149 
151  void exportTypeAdded(DtResponse response);
152 
154  void dataAdded(DtResponse response);
155 
157  void dataDeleted(DtResponse response);
158 
160  void dataMoved(DtResponse response);
161 
163  void exportCompleted(DtResponse response);
164 
166  DtLgrEditorInterface(DtLogger& logger,const DtLgrEditorDriver& driver);
167 
169  void connectResponse(DtLgrCommandId id,
170  void (DtLgrEditorInterface::* function)(DtResponse));
171 
172  private:
176  DtLgrEditorInterface& operator=(const DtLgrEditorInterface&);
177 
178  protected:
182 
189 
190  };
191 
192 }
193 
194 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)