MAK Data Logger API Documentation for HLA
lgrEditorCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrEditorCommandFactory_H_
10 #define lgrEditorCommandFactory_H_
11 
12 #include "lgrCore.h"
13 #include "lgrCommand.h"
14 
15 #include <memory>
16 
17 class DtString;
18 
19 namespace MAKLogger
20 {
21 
22  class DtAbsoluteTime;
23  class DtCommandDefinition;
24  class DtLgrEditorThread;
25  class DtLgrPacketPrinter;
26  class DtRelativeTime;
27 
31  {
32  private:
34 
35  public:
36 
39 
40  DT_FACTORY_COMMAND_EXT(1,ExportFile,
41  (const DtString& fileFormat, const DtString& filename,
42  bool checkpoint,bool openAfterExport
43  ),
44  (const DtCommand& command,DtString& fileFormat, DtString& filename,
45  bool& checkpoint, bool& openAfterExport
46  ))
47 
48  DT_FACTORY_COMMAND_EXT(2,ExportSection,
49  (const DtString& fileFormat, const DtString& filename,
50  const DtAbsoluteTime& start, const DtAbsoluteTime& end,
51  const DtRelativeTime& offset, bool checkpoint, bool openAfterExport
52  ),
53  (const DtCommand& command,DtString& fileFormat, DtString& filename,
54  DtAbsoluteTime& start, DtAbsoluteTime& end,DtRelativeTime& offset,
55  bool& checkpoint, bool& openAfterExport
56  ))
57 
58  DT_FACTORY_COMMAND_EXT(3,ClearSection,
59  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
60  (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
61 
62  DT_FACTORY_COMMAND_EXT(4,CutSection,
63  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
64  (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
65 
66  DT_FACTORY_COMMAND_EXT(5,AddExportType,
67  (const DtString& fileFormat,const DtString& fileFilter,
68  bool offsetData, bool generateData,int exportType,
69  std::auto_ptr<DtLgrPacketPrinter> printer),
70  (const DtCommand& command,DtString& fileFormat,DtString& fileFilter,
71  bool& offsetData, bool& generateData, int& exportType,
72  DtLgrPacketPrinter*& printer))
73 
74  DT_FACTORY_COMMAND_EXT(6,MergeInFile,
75  (const DtString& filename, const DtRelativeTime& offset),
76  (const DtCommand& command,DtString& filename,DtRelativeTime& offset))
77 
78  DT_FACTORY_COMMAND_EXT(7,AppendFileToEnd,
79  (const DtString& filename),
80  (const DtCommand& command, DtString& filename))
81 
82  DT_FACTORY_COMMAND_EXT(8,PrefixFileToStart,
83  (const DtString& filename),
84  (const DtCommand& command, DtString& filename))
85 
86  DT_FACTORY_COMMAND_EXT(9,TrimStart,
87  (),
88  (const DtCommand& command))
89 
90  DT_FACTORY_COMMAND_EXT(10,OffsetTime,
91  (const DtRelativeTime& offset),
92  (const DtCommand& command,DtRelativeTime& offset))
93 
94  DT_FACTORY_COMMAND_EXT(11,ConvertFile,
95  (),
96  (const DtCommand& command))
97 
98  DT_FACTORY_COMMAND_EXT(12,FinishEditorThread,
99  (DtLgrEditorThread* thread),
100  (const DtCommand& command,DtLgrEditorThread*& thread))
101 
102  //Responses
103 
104  DT_FACTORY_RESPONSE_EXT(-1,ExportTypeAdded,
105  (const DtString& fileFormat, const DtString& fileFilter,
106  bool offsetData, bool generateData, int exportType),
107  (DtResponse response, DtString& fileFormat,DtString& fileFilter,
108  bool& offsetData, bool& generateData, int& exportType))
109 
110  DT_FACTORY_RESPONSE_EXT(-2,FileDataMoved,
111  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
112  const DtRelativeTime& offset),
114  DtRelativeTime& offset))
115 
116  DT_FACTORY_RESPONSE_EXT(-3,FileDataDeleted,
117  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
118  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end))
119 
120  DT_FACTORY_RESPONSE_EXT(-4,FileDataAdded,
121  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
122  const DtString& source),
123  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end,
124  DtString& source))
125 
126  DT_FACTORY_RESPONSE_EXT(-5,ExportCompleted,
127  (const DtString& fileFormat, const DtString& filename,bool completed),
128  (DtResponse, DtString& fileFormat, DtString& filename,bool& completed))
129 
131  static const char* commandToString(int commandId);
132 
134  static const char* responseToString(int responseId);
135 
136 
137  };
138 }
139 
140 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)