MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrCore
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
31
class
DT_DLL_LGRCORE
DtLgrEditorInterface
:
public
virtual
DtLgrSystemInterface
32
{
33
public
:
34
36
enum
FileDataOperations
37
{
38
DataAdded
,
39
DataDeleted
,
40
DataMoved
41
};
42
43
enum
ExportType
44
{
45
UserExport
,
46
UserExportSelectionOnly
,
47
InternalExport
48
};
49
50
//Used to shorten code.
51
typedef
DtLgrEditorCommandFactory
Factory
;
52
53
//Used to shorten code.
54
typedef
DtLgrEditorInterface
ThisClass
;
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
119
DtValueSignal<DtString>
exportTypeAddedSignal
;
120
122
DtValueSignal<DtString>
exportCompletedSignal
;
123
125
DtValueSignal<DtString>
exportCanceledSignal
;
126
128
DtValueSignal<FileDataOperations>
dataOperationSignal
;
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
:
174
DtLgrEditorInterface
(
const
DtLgrEditorInterface
&);
176
DtLgrEditorInterface
& operator=(
const
DtLgrEditorInterface
&);
177
178
protected
:
179
ExportTypeMap
myExportTypes
;
180
DtString
myNewestExportType
;
181
FileDataOperations
myLastOperation
;
182
183
DtAbsoluteTime
myLastOperationStart
;
184
DtAbsoluteTime
myLastOperationEnd
;
185
DtRelativeTime
myLastOperationOffset
;
186
DtString
myLastOperationSource
;
187
DtString
myLastExportType
;
188
DtString
myLastExportName
;
189
190
};
191
192
}
193
194
#endif
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
)