MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrAnnotations
lgrAnnotationManager.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 lgrAnnotationManager_H_
10
#define lgrAnnotationManager_H_
11
12
#include "
lgrAnn.h
"
13
14
#include <list>
15
#include <set>
16
17
class
DtEnvironment;
18
19
namespace
MAKLogger
20
{
21
class
DtAbsoluteTime
;
22
class
DtLgrAnnotation;
23
class
DtLgrAnnotationSlots;
24
class
DtLgrAnnotationBaseView;
25
class
DtRelativeTime;
26
28
class
DT_DLL_LGRANN
DtLgrAnnotationManager
29
{
30
public
:
31
typedef
std::list<DtLgrAnnotation*>
AnnotationList
;
32
33
DtLgrAnnotationManager
();
34
35
virtual
~
DtLgrAnnotationManager
();
36
37
private
:
39
DtLgrAnnotationManager
(
const
DtLgrAnnotationManager
&);
41
DtLgrAnnotationManager
& operator=(
const
DtLgrAnnotationManager
&);
42
public
:
43
45
virtual
void
setAllowChanges(
bool
allowed);
46
48
virtual
bool
allowChanges()
const
;
49
52
virtual
void
addAnnotation(
DtLgrAnnotation
* annotation);
53
55
virtual
void
removeAnnotation(
DtLgrAnnotation
* annotation);
56
58
virtual
void
clearAnnotations();
59
62
virtual
void
deleteTimeRange(
const
DtAbsoluteTime
& start,
63
const
DtAbsoluteTime
& end);
64
66
virtual
void
moveTimeRange(
const
DtAbsoluteTime
& start,
67
const
DtAbsoluteTime
& end,
const
DtRelativeTime
& offset);
68
70
virtual
void
annotationsStartingAt(
DtAbsoluteTime
,
AnnotationList
& output);
71
73
virtual
void
annotationsEndingAt(
DtAbsoluteTime
,
AnnotationList
& output);
74
77
virtual
void
annotationsDuring(
DtAbsoluteTime
,
AnnotationList
& output);
78
80
virtual
const
AnnotationList
& annotations();
81
84
virtual
void
annotationChanged(
DtLgrAnnotation
* annotation);
85
87
virtual
void
annotationsChanged();
88
90
virtual
bool
isAnnotationStateSaved()
const
;
91
93
virtual
void
saveAnnotationState(DtEnvironment environment);
94
101
virtual
void
setAnnotationState(
const
DtEnvironment environment,
102
bool
clear =
true
);
103
106
virtual
void
addView(
DtLgrAnnotationBaseView
* view);
107
110
virtual
void
removeView(
DtLgrAnnotationBaseView
* view);
111
113
virtual
void
annotationsSaved();
114
116
virtual
bool
autoLoad()
const
;
117
120
virtual
void
setAutoLoad(
bool
autoLoad );
121
123
virtual
bool
empty()
const
;
124
125
protected
:
126
128
AnnotationList
myAnnotations
;
129
134
bool
myAnnotationStateSaved
;
135
136
bool
myUnlockedState
;
137
139
typedef
std::set<DtLgrAnnotationBaseView*>
ViewSet
;
140
142
ViewSet
myViews
;
143
144
bool
myAutoLoadFlag
;
145
146
};
147
}
148
149
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)