MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 <lgrCmds/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 
101  DT_FACTORY_COMMAND_EXT(13,SetRecheckpointOnExport,
102  (bool recheckpointOnExport),
103  (const DtCommand& command, bool& recheckpointOnExport))
104 
106  static const DtLgrCommandId Last_Command = 100;
107 
108  //Responses
109 
110  DT_FACTORY_RESPONSE_EXT(-1,ExportTypeAdded,
111  (const DtString& fileFormat, const DtString& fileFilter,
112  bool offsetData, bool generateData, int exportType),
113  (DtResponse response, DtString& fileFormat,DtString& fileFilter,
114  bool& offsetData, bool& generateData, int& exportType))
115 
116  DT_FACTORY_RESPONSE_EXT(-2,FileDataMoved,
117  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
118  const DtRelativeTime& offset),
120  DtRelativeTime& offset))
121 
122  DT_FACTORY_RESPONSE_EXT(-3,FileDataDeleted,
123  (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
124  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end))
125 
126  DT_FACTORY_RESPONSE_EXT(-4,FileDataAdded,
127  (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
128  const DtString& source),
129  (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end,
130  DtString& source))
131 
132  DT_FACTORY_RESPONSE_EXT(-5,ExportCompleted,
133  (const DtString& fileFormat, const DtString& filename,bool completed),
134  (DtResponse, DtString& fileFormat, DtString& filename,bool& completed))
135 
136  DT_FACTORY_RESPONSE_EXT(-6,RecheckpointOnExportChanged,
137  (bool recheckpointOnExport),
138  (DtResponse, bool& recheckpointOnExport))
139 
141  static const DtLgrCommandId Last_Response = -100;
142 
144  static const char* commandToString(int commandId);
145 
147  static const char* responseToString(int responseId);
148 
149 
150  };
151 }

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)