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 #pragma once
10 
11 #include "lgrCmds.h"
12 #include "lgrCommand.h"
13 
14 #include <memory>
15 
16 class DtString;
17 
18 namespace MAKLogger
19 {
20 
21  class DtAbsoluteTime;
22  class DtCommandDefinition;
23  class DtRelativeTime;
24 
28  {
29  private:
31 
32  public:
33 
36 
37  DT_FACTORY_COMMAND_EXT(1,ExportFile,
38  (const DtString& fileFormat, const DtString& filename,
39  bool checkpoint,bool openAfterExport
40  ),
41  (const DtCommand& command,DtString& fileFormat, DtString& filename,
42  bool& checkpoint, bool& openAfterExport
43  ))
44 
45  DT_FACTORY_COMMAND_EXT(2,ExportSection,
46  (const DtString& fileFormat, const DtString& filename,
47  const DtAbsoluteTime& start, const DtAbsoluteTime& end,
48  const DtRelativeTime& offset, bool checkpoint, bool openAfterExport
49  ),
50  (const DtCommand& command,DtString& fileFormat, DtString& filename,
51  DtAbsoluteTime& start, DtAbsoluteTime& end,DtRelativeTime& offset,
52  bool& checkpoint, bool& openAfterExport
53  ))
54 
55  DT_FACTORY_COMMAND_EXT(3,ClearSection,
56  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
57  (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
58 
59  DT_FACTORY_COMMAND_EXT(4,CutSection,
60  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
61  (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
62 
63  // Pointer is a DtLgrPacketPrinter
64  DT_FACTORY_COMMAND_EXT(5,AddExportType,
65  (const DtString& fileFormat,const DtString& fileFilter,
66  bool offsetData, bool generateData,int exportType,
67  void* printer),
68  (const DtCommand& command,DtString& fileFormat,DtString& fileFilter,
69  bool& offsetData, bool& generateData, int& exportType,
70  void*& printer))
71 
72  DT_FACTORY_COMMAND_EXT(6,MergeInFile,
73  (const DtString& filename, const DtRelativeTime& offset),
74  (const DtCommand& command,DtString& filename,DtRelativeTime& offset))
75 
76  DT_FACTORY_COMMAND_EXT(7,AppendFileToEnd,
77  (const DtString& filename),
78  (const DtCommand& command, DtString& filename))
79 
80  DT_FACTORY_COMMAND_EXT(8,PrefixFileToStart,
81  (const DtString& filename),
82  (const DtCommand& command, DtString& filename))
83 
84  DT_FACTORY_COMMAND_EXT(9,TrimStart,
85  (),
86  (const DtCommand& command))
87 
88  DT_FACTORY_COMMAND_EXT(10,OffsetTime,
89  (const DtRelativeTime& offset),
90  (const DtCommand& command,DtRelativeTime& offset))
91 
92  DT_FACTORY_COMMAND_EXT(11,ConvertFile,
93  (),
94  (const DtCommand& command))
95 
96  // Pointer is a DtLgrEditorThread
97  DT_FACTORY_COMMAND_EXT(12,FinishEditorThread,
98  (void* thread),
99  (const DtCommand& command, void*& thread))
100 
102  static const DtLgrCommandId Last_Command = 100;
103 
104  //Responses
105 
106  DT_FACTORY_RESPONSE_EXT(-1,ExportTypeAdded,
107  (const DtString& fileFormat, const DtString& fileFilter,
108  bool offsetData, bool generateData, int exportType),
109  (DtResponse response, DtString& fileFormat,DtString& fileFilter,
110  bool& offsetData, bool& generateData, int& exportType))
111 
112  DT_FACTORY_RESPONSE_EXT(-2,FileDataMoved,
113  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
114  const DtRelativeTime& offset),
116  DtRelativeTime& offset))
117 
118  DT_FACTORY_RESPONSE_EXT(-3,FileDataDeleted,
119  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
120  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end))
121 
122  DT_FACTORY_RESPONSE_EXT(-4,FileDataAdded,
123  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
124  const DtString& source),
125  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end,
126  DtString& source))
127 
128  DT_FACTORY_RESPONSE_EXT(-5,ExportCompleted,
129  (const DtString& fileFormat, const DtString& filename,bool completed),
130  (DtResponse, DtString& fileFormat, DtString& filename,bool& completed))
131 
133  static const DtLgrCommandId Last_Response = -100;
134 
136  static const char* commandToString(int commandId);
137 
139  static const char* responseToString(int responseId);
140 
141 
142  };
143 }

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)